/* ============================================
   ZAPIER E-BOOK STYLESHEET
   Background: RGB(31, 224, 199) - Turquoise
   Border: RGB(208, 31, 224) - Purple/Magenta
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(41, 200, 180) 100%);
    color: #1a1a1a;
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 6px solid rgb(208, 31, 224);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgb(208, 31, 224) 0%, rgb(180, 20, 200) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid rgb(31, 224, 199);
}

.header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.4em;
    font-weight: bold;
    opacity: 0.95;
    margin-bottom: 20px;
}

.print-btn {
    background: rgb(31, 224, 199);
    color: #1a1a1a;
    font-weight: bold;
    padding: 12px 30px;
    border: 3px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: white;
    color: rgb(208, 31, 224);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Table of Contents */
.toc {
    background: rgba(31, 224, 199, 0.15);
    padding: 30px;
    border-bottom: 4px solid rgb(208, 31, 224);
}

.toc h2 {
    font-size: 2em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 20px;
    text-align: center;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.toc li button {
    width: 100%;
    background: white;
    color: rgb(208, 31, 224);
    font-weight: bold;
    padding: 15px 20px;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05em;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.toc li button:hover {
    background: rgb(208, 31, 224);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(208, 31, 224, 0.4);
}

/* Main Content */
.content {
    padding: 40px 30px;
}

/* Sections */
.section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 224, 199);
}

.section h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: rgb(31, 150, 160);
    margin: 25px 0 15px 0;
}

.section h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(50, 50, 50);
    margin: 15px 0 10px 0;
}

/* Content Boxes */
.content-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border: 3px solid rgb(31, 224, 199);
    border-radius: 12px;
    margin-bottom: 20px;
}

.content-box p {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #2a2a2a;
}

.content-box ul,
.content-box ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-box li {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2a2a2a;
    font-size: 1.02em;
}

.content-box li strong {
    color: rgb(208, 31, 224);
}

/* Special Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(31, 224, 199, 0.3) 0%, rgba(31, 224, 199, 0.1) 100%);
    padding: 20px;
    border-left: 6px solid rgb(208, 31, 224);
    border-radius: 8px;
    margin: 20px 0;
}

.highlight-box p,
.highlight-box li {
    font-weight: bold;
    color: #1a1a1a;
}

.example-box {
    background: rgba(208, 31, 224, 0.1);
    padding: 20px;
    border: 3px dashed rgb(208, 31, 224);
    border-radius: 10px;
    margin: 20px 0;
}

.example-box p,
.example-box li {
    font-weight: bold;
}

.step-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 3px solid rgb(31, 224, 199);
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-box h4 {
    color: rgb(208, 31, 224);
    font-weight: bold;
    margin-bottom: 12px;
}

.advanced-box {
    background: linear-gradient(135deg, rgba(208, 31, 224, 0.15) 0%, rgba(208, 31, 224, 0.05) 100%);
    padding: 25px;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 12px;
    margin: 20px 0;
}

.use-case-box {
    background: rgba(31, 224, 199, 0.15);
    padding: 20px;
    border-left: 5px solid rgb(31, 224, 199);
    border-radius: 8px;
    margin: 15px 0;
}

.recommendation-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    margin: 20px 0;
}

.recommendation-box p {
    font-weight: bold;
    margin-bottom: 10px;
}

.error-box {
    background: rgba(255, 230, 230, 0.5);
    padding: 20px;
    border-left: 5px solid rgb(208, 31, 224);
    border-radius: 8px;
    margin: 15px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgb(208, 31, 224);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, rgb(208, 31, 224) 0%, rgb(180, 20, 200) 100%);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
}

td {
    padding: 15px;
    border-bottom: 2px solid rgba(31, 224, 199, 0.3);
    font-weight: bold;
    color: #2a2a2a;
}

tr:hover {
    background: rgba(31, 224, 199, 0.1);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Flowcharts */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid rgb(31, 224, 199);
    border-radius: 15px;
}

.horizontal-flow {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    margin: 10px;
}

.flow-box {
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2em;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid rgb(208, 31, 224);
}

.flow-box.trigger {
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(41, 200, 180) 100%);
    color: #1a1a1a;
}

.flow-box.process {
    background: linear-gradient(135deg, rgb(208, 31, 224) 0%, rgb(180, 20, 200) 100%);
    color: white;
}

.flow-box.action {
    background: linear-gradient(135deg, rgb(255, 193, 7) 0%, rgb(255, 152, 0) 100%);
    color: #1a1a1a;
}

.flow-label {
    margin-top: 12px;
    font-weight: bold;
    color: #2a2a2a;
    font-size: 1em;
}

.flow-arrow {
    font-size: 3em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin: 10px 0;
}

.flow-arrow-right {
    font-size: 3em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin: 0 10px;
    align-self: center;
}

/* Q&A Section */
.qa-item {
    margin: 20px 0;
    border: 3px solid rgb(208, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.qa-question {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgb(31, 224, 199) 0%, rgb(41, 200, 180) 100%);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(41, 234, 209) 0%, rgb(51, 210, 190) 100%);
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    transition: transform 0.3s ease;
}

.qa-question.active .toggle-icon {
    transform: rotate(45deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
}

.qa-answer.show {
    max-height: 800px;
    padding: 25px;
    border-top: 3px solid rgb(208, 31, 224);
}

.qa-answer p {
    font-weight: bold;
    color: #2a2a2a;
    line-height: 1.8;
}

.qa-answer strong {
    color: rgb(208, 31, 224);
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, rgba(208, 31, 224, 0.1) 0%, rgba(31, 224, 199, 0.1) 100%);
    padding: 30px;
    border: 4px solid rgb(208, 31, 224);
    border-radius: 15px;
}

.final-message {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    margin-top: 25px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgb(208, 31, 224) 0%, rgb(180, 20, 200) 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-top: 5px solid rgb(31, 224, 199);
}

.footer p {
    font-weight: bold;
    margin: 5px 0;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        border: none;
        box-shadow: none;
    }
    
    .print-btn {
        display: none;
    }
    
    .toc {
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .qa-answer {
        max-height: none;
        padding: 20px;
    }
    
    .toggle-icon {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .toc ul {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .section h3 {
        font-size: 1.3em;
    }
    
    .horizontal-flow {
        flex-direction: column;
    }
    
    .flow-arrow-right {
        transform: rotate(90deg);
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 224, 199, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(208, 31, 224);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(180, 20, 200);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(208, 31, 224);
    color: white;
}