/* Zoho Books E-Book Stylesheet */

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(230, 245, 255));
    color: rgb(30, 30, 30);
    line-height: 1.8;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.2);
    border: 3px solid rgb(0, 102, 204);
}

/* ===== HEADER STYLES ===== */
.header {
    background: linear-gradient(135deg, rgb(0, 102, 204), rgb(0, 153, 255));
    color: rgb(255, 255, 255);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid rgb(0, 76, 153);
    position: relative;
}

.header h1 {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.header h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.95;
}

.print-btn {
    background-color: rgb(0, 153, 51);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 102, 34);
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 800;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(0, 204, 68);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION STYLES ===== */
.navigation {
    background-color: rgb(245, 250, 255);
    padding: 25px 30px;
    border-bottom: 3px solid rgb(0, 102, 204);
    border-top: 3px solid rgb(0, 102, 204);
}

.navigation h3 {
    color: rgb(0, 76, 153);
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(0, 102, 204), rgb(0, 153, 255));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 76, 153);
    padding: 14px 20px;
    font-size: 1em;
    font-weight: 800;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(0, 153, 255), rgb(51, 153, 255));
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.nav-buttons button:active {
    transform: translateY(0);
}

/* ===== CONTENT STYLES ===== */
.content {
    padding: 30px 40px;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgb(250, 252, 255);
    border: 3px solid rgb(0, 102, 204);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.1);
}

.section-title {
    color: rgb(0, 76, 153);
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(0, 102, 204);
    text-transform: uppercase;
}

.sub-heading {
    color: rgb(0, 102, 153);
    font-size: 1.8em;
    font-weight: 800;
    margin: 30px 0 20px 0;
    padding-left: 15px;
    border-left: 6px solid rgb(0, 153, 255);
}

.text-content {
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.9;
    color: rgb(40, 40, 40);
    margin-bottom: 25px;
    text-align: justify;
}

/* ===== TABLE STYLES ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 102, 204);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.info-table thead {
    background: linear-gradient(135deg, rgb(0, 102, 204), rgb(0, 153, 255));
    color: rgb(255, 255, 255);
}

.info-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 900;
    font-size: 1.1em;
    border: 2px solid rgb(0, 76, 153);
    letter-spacing: 0.5px;
}

.info-table tbody tr {
    border-bottom: 2px solid rgb(200, 220, 240);
    transition: background-color 0.3s ease;
}

.info-table tbody tr:hover {
    background-color: rgb(240, 248, 255);
}

.info-table tbody tr:nth-child(even) {
    background-color: rgb(250, 252, 255);
}

.info-table tbody td {
    padding: 15px 15px;
    color: rgb(30, 30, 30);
    font-weight: 700;
    border: 2px solid rgb(220, 235, 250);
    font-size: 1em;
    vertical-align: top;
}

.info-table tbody td strong {
    color: rgb(0, 76, 153);
    font-weight: 900;
}

/* ===== FLOWCHART STYLES ===== */
.flowchart {
    margin: 30px 0;
    padding: 25px;
    background-color: rgb(245, 250, 255);
    border: 3px solid rgb(0, 153, 255);
    border-radius: 10px;
}

.flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 0;
}

.flow-box {
    background: linear-gradient(135deg, rgb(255, 255, 255), rgb(240, 248, 255));
    border: 3px solid rgb(0, 102, 204);
    padding: 18px 30px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1em;
    text-align: center;
    min-width: 200px;
    color: rgb(0, 76, 153);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(0, 153, 51), rgb(0, 204, 68));
    color: rgb(255, 255, 255);
    border-color: rgb(0, 102, 34);
    font-weight: 900;
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(204, 0, 0), rgb(255, 51, 51));
    color: rgb(255, 255, 255);
    border-color: rgb(153, 0, 0);
    font-weight: 900;
}

.flow-box.process {
    background: linear-gradient(135deg, rgb(255, 153, 0), rgb(255, 204, 0));
    color: rgb(51, 51, 51);
    border-color: rgb(204, 102, 0);
    font-weight: 900;
}

.flow-arrow {
    font-size: 2.5em;
    font-weight: 900;
    color: rgb(0, 102, 204);
    margin: 8px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== MIND MAP STYLES ===== */
.mindmap-container {
    position: relative;
    width: 100%;
    height: 900px;
    background: linear-gradient(135deg, rgb(250, 252, 255), rgb(240, 248, 255));
    border: 3px solid rgb(0, 102, 204);
    border-radius: 12px;
    margin: 30px 0;
    overflow: visible;
}

.mindmap-center {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mindmap-node {
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mindmap-node:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.mindmap-node.central {
    background: linear-gradient(135deg, rgb(0, 102, 204), rgb(0, 153, 255));
    color: rgb(255, 255, 255);
    border: 4px solid rgb(0, 76, 153);
    font-size: 1.6em;
    padding: 30px 40px;
    letter-spacing: 2px;
}

.mindmap-node.main {
    background: linear-gradient(135deg, rgb(0, 153, 255), rgb(51, 153, 255));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 102, 204);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.mindmap-node.sub {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 76, 153);
    border: 3px solid rgb(0, 153, 255);
    font-size: 0.95em;
    margin: 8px 0;
    padding: 12px 20px;
}

.mindmap-branch {
    position: absolute;
    min-width: 250px;
}

.mindmap-subbranch {
    display: flex;
    flex-direction: column;
}

/* ===== DISCLAIMER STYLES ===== */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 245, 230), rgb(255, 250, 240));
    border: 4px solid rgb(255, 140, 0);
    border-radius: 12px;
    padding: 30px 40px;
    margin: 40px 30px;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

.disclaimer h3 {
    color: rgb(204, 85, 0);
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
}

.disclaimer p {
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.8;
    color: rgb(51, 51, 51);
    margin-bottom: 15px;
}

.disclaimer ul {
    margin-left: 40px;
    margin-bottom: 15px;
}

.disclaimer ul li {
    font-weight: 700;
    margin: 10px 0;
    color: rgb(51, 51, 51);
    font-size: 1.05em;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, rgb(0, 76, 153), rgb(0, 102, 204));
    color: rgb(255, 255, 255);
    padding: 30px;
    text-align: center;
    border-top: 5px solid rgb(0, 51, 102);
}

.footer p {
    font-weight: 800;
    font-size: 1.1em;
    margin: 8px 0;
}

.footer a {
    color: rgb(153, 255, 255);
    font-weight: 900;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        border: none;
    }
    
    .navigation,
    .print-btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .flow-box,
    .mindmap-node {
        border: 2px solid black !important;
    }
    
    .info-table {
        border: 2px solid black;
    }
    
    .info-table thead {
        background-color: lightgray !important;
        color: black !important;
    }
    
    .info-table tbody td {
        border: 1px solid gray;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .header h1 {
        font-size: 2.5em;
    }
    
    .section-title {
        font-size: 2em;
    }
}

@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .header h2 {
        font-size: 1.2em;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .sub-heading {
        font-size: 1.4em;
    }
    
    .text-content {
        font-size: 1em;
    }
    
    .info-table {
        font-size: 0.9em;
    }
    
    .info-table thead th,
    .info-table tbody td {
        padding: 10px 8px;
    }
    
    .flow-box {
        min-width: 150px;
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .mindmap-container {
        height: 1200px;
    }
    
    .mindmap-node.central {
        font-size: 1.2em;
        padding: 20px 25px;
    }
    
    .mindmap-node.main {
        font-size: 1em;
    }
    
    .mindmap-node.sub {
        font-size: 0.85em;
        padding: 10px 15px;
    }
    
    .mindmap-branch {
        min-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .header h2 {
        font-size: 1em;
    }
    
    .print-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.4em;
    }
    
    .sub-heading {
        font-size: 1.2em;
    }
    
    .info-table {
        font-size: 0.8em;
    }
    
    .flow-box {
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION STYLES ===== */
::selection {
    background-color: rgb(0, 153, 255);
    color: rgb(255, 255, 255);
}

::-moz-selection {
    background-color: rgb(0, 153, 255);
    color: rgb(255, 255, 255);
}