/* TallyPrime Accounting E-Book Stylesheet */
/* Professional color scheme with RGB values */

/* Color Palette */
:root {
    --primary-bg: rgb(240, 248, 255);           /* Alice Blue - Light background */
    --secondary-bg: rgb(230, 240, 250);         /* Light Steel Blue */
    --header-bg: rgb(25, 60, 100);              /* Dark Blue */
    --nav-bg: rgb(245, 245, 250);               /* Lavender White */
    --border-color: rgb(70, 130, 180);          /* Steel Blue */
    --text-primary: rgb(30, 30, 30);            /* Dark Gray */
    --text-white: rgb(255, 255, 255);           /* White */
    --accent-color: rgb(220, 120, 50);          /* Orange */
    --table-header: rgb(70, 130, 180);          /* Steel Blue */
    --table-alt-row: rgb(245, 250, 255);        /* Very Light Blue */
    --flow-box-bg: rgb(135, 206, 250);          /* Light Sky Blue */
    --flow-box-start: rgb(144, 238, 144);       /* Light Green */
    --flow-box-end: rgb(255, 160, 122);         /* Light Salmon */
    --flow-box-decision: rgb(255, 218, 185);    /* Peach Puff */
    --shadow-color: rgba(0, 0, 0, 0.15);        /* Shadow */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--text-white);
    box-shadow: 0 0 20px var(--shadow-color);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgb(25, 60, 100), rgb(70, 130, 180));
    color: var(--text-white);
    padding: 40px;
    text-align: center;
    border: 4px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.print-btn {
    background-color: var(--accent-color);
    color: var(--text-white);
    padding: 15px 35px;
    border: 3px solid rgb(180, 100, 40);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.print-btn:hover {
    background-color: rgb(200, 110, 40);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--shadow-color);
}

/* Navigation Styles */
.navigation {
    background-color: var(--nav-bg);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.navigation h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--header-bg);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: 12px;
}

.navigation button {
    width: 100%;
    text-align: left;
    background-color: var(--text-white);
    color: var(--header-bg);
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: var(--border-color);
    color: var(--text-white);
    transform: translateX(5px);
    box-shadow: 0 3px 6px var(--shadow-color);
}

/* Main Content Styles */
.content {
    padding: 20px;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--secondary-bg);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 3px 6px var(--shadow-color);
}

/* Heading Styles */
h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--header-bg);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--border-color);
}

h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: rgb(50, 90, 130);
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
}

/* Paragraph Styles */
p {
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* List Styles */
ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Strong Text */
strong {
    font-weight: bold;
    color: var(--header-bg);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--text-white);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px var(--shadow-color);
}

thead {
    background-color: var(--table-header);
    color: var(--text-white);
}

thead th {
    padding: 18px;
    font-size: 1.15em;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid var(--border-color);
}

tbody tr {
    border-bottom: 2px solid rgb(200, 220, 240);
}

tbody tr:nth-child(even) {
    background-color: var(--table-alt-row);
}

tbody tr:hover {
    background-color: rgb(230, 240, 255);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

tbody td {
    padding: 15px;
    font-weight: bold;
    border-right: 1px solid rgb(220, 230, 240);
}

tbody td:last-child {
    border-right: none;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background-color: var(--text-white);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.flow-box {
    padding: 18px 30px;
    margin: 10px 0;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 3px 6px var(--shadow-color);
    background-color: var(--flow-box-bg);
    color: var(--text-primary);
}

.flow-box.start {
    background-color: var(--flow-box-start);
    border-color: rgb(100, 200, 100);
}

.flow-box.end {
    background-color: var(--flow-box-end);
    border-color: rgb(220, 100, 80);
}

.flow-box.process {
    background-color: var(--flow-box-bg);
}

.flow-box.decision {
    background-color: var(--flow-box-decision);
    border-color: rgb(220, 150, 100);
    border-radius: 50px;
}

.arrow {
    font-size: 2em;
    font-weight: bold;
    color: var(--border-color);
    margin: 5px 0;
}

.arrow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 20px 0;
}

.left-branch, .right-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.left-branch span, .right-branch span {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2em;
    margin: 10px 0;
}

/* Mind Map Styles */
.mindmap-container {
    margin: 40px 0;
    padding: 40px;
    background-color: var(--text-white);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.mindmap {
    position: relative;
    min-height: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.central-node .node-content {
    background: linear-gradient(135deg, rgb(70, 130, 180), rgb(100, 150, 200));
    color: var(--text-white);
    padding: 30px 50px;
    border: 4px solid rgb(50, 100, 150);
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 12px var(--shadow-color);
    min-width: 280px;
}

.branch {
    position: absolute;
}

.main-branch-node {
    margin-bottom: 20px;
}

.main-branch-node .node-content {
    background-color: rgb(100, 160, 220);
    color: var(--text-white);
    padding: 20px 35px;
    border: 3px solid var(--border-color);
    border-radius: 25px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    min-width: 200px;
}

.sub-branches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-node {
    background-color: rgb(200, 230, 255);
    color: var(--text-primary);
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 6px var(--shadow-color);
    min-width: 180px;
}

/* Branch Positioning - 8 branches around center */
.branch-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.branch-2 {
    top: 20%;
    right: 8%;
}

.branch-3 {
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
}

.branch-4 {
    bottom: 20%;
    right: 8%;
}

.branch-5 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.branch-6 {
    bottom: 20%;
    left: 8%;
}

.branch-7 {
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
}

.branch-8 {
    top: 20%;
    left: 8%;
}

/* Disclaimer Styles */
.disclaimer {
    background-color: rgb(255, 250, 240);
    border: 3px solid rgb(220, 120, 50);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.disclaimer h3 {
    color: rgb(180, 80, 30);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: none;
    padding-left: 0;
}

.disclaimer p, .disclaimer li {
    font-weight: bold;
    color: rgb(80, 50, 30);
}

/* Footer Styles */
.footer {
    background-color: var(--header-bg);
    color: var(--text-white);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.footer p {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-white);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .print-btn {
        display: none;
    }

    .navigation {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        border: 2px solid black;
        box-shadow: none;
    }

    h2 {
        page-break-after: avoid;
    }

    table {
        page-break-inside: avoid;
    }

    .flowchart {
        page-break-inside: avoid;
    }

    .mindmap-container {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .header h2 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .navigation button {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    table {
        font-size: 0.85em;
    }

    .flow-box {
        min-width: 200px;
        padding: 12px 20px;
    }

    .central-node .node-content {
        font-size: 1.3em;
        padding: 20px 30px;
        min-width: 200px;
    }

    .main-branch-node .node-content {
        font-size: 1.1em;
        padding: 15px 25px;
        min-width: 150px;
    }

    .sub-node {
        font-size: 0.9em;
        padding: 10px 20px;
        min-width: 140px;
    }

    .mindmap {
        min-height: 1400px;
    }

    .branch-1, .branch-5 {
        left: 50%;
    }

    .branch-2, .branch-4 {
        right: 5%;
    }

    .branch-6, .branch-8 {
        left: 5%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Scroll Margin for Navigation */
.section {
    scroll-margin-top: 20px;
}