/* Xero Accounting Ebook CSS */
/* Professional styling with RGB color scheme */

/* 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) 0%, rgb(230, 240, 250) 100%);
    color: rgb(25, 25, 45);
    line-height: 1.6;
    padding: 20px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* Print Button */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: linear-gradient(135deg, rgb(65, 105, 225) 0%, rgb(25, 65, 185) 100%);
    color: white;
    border: 3px solid rgb(25, 65, 185);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(25, 65, 185) 0%, rgb(15, 45, 145) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    background: linear-gradient(135deg, rgb(65, 105, 225) 0%, rgb(100, 149, 237) 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    border: 5px solid rgb(25, 65, 185);
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 245, 220) 0%, rgb(255, 235, 200) 100%);
    border: 4px solid rgb(255, 165, 0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.disclaimer p {
    color: rgb(139, 69, 0);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.8;
}

/* Table of Contents */
#table-of-contents {
    background: linear-gradient(135deg, rgb(245, 255, 250) 0%, rgb(230, 250, 240) 100%);
    border: 5px solid rgb(50, 205, 50);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#table-of-contents h2 {
    color: rgb(0, 100, 0);
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 4px solid rgb(50, 205, 50);
    padding-bottom: 15px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.toc-btn {
    background: linear-gradient(135deg, rgb(50, 205, 50) 0%, rgb(34, 139, 34) 100%);
    color: white;
    border: 3px solid rgb(34, 139, 34);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.toc-btn:hover {
    background: linear-gradient(135deg, rgb(34, 139, 34) 0%, rgb(0, 100, 0) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    background: white;
    border: 5px solid rgb(100, 149, 237);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Headings */
h2 {
    color: rgb(25, 65, 185);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 5px solid rgb(65, 105, 225);
    text-transform: uppercase;
}

h3 {
    color: rgb(50, 50, 150);
    font-size: 26px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 6px solid rgb(100, 149, 237);
}

/* Paragraphs */
p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: rgb(40, 40, 60);
    line-height: 1.8;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 4px solid rgb(100, 149, 237);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, rgb(65, 105, 225) 0%, rgb(100, 149, 237) 100%);
}

thead tr th {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    padding: 18px 15px;
    border-right: 2px solid rgb(25, 65, 185);
}

thead tr th:last-child {
    border-right: none;
}

tbody tr {
    border-bottom: 2px solid rgb(220, 230, 245);
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background: rgb(245, 250, 255);
}

tbody tr:hover {
    background: rgb(230, 240, 255);
}

tbody td {
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: rgb(40, 40, 60);
    border-right: 2px solid rgb(220, 230, 245);
}

tbody td:last-child {
    border-right: none;
}

/* Flowchart Container */
.flowchart {
    background: linear-gradient(135deg, rgb(250, 250, 255) 0%, rgb(240, 245, 255) 100%);
    border: 5px solid rgb(100, 149, 237);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flowchart h3 {
    color: rgb(25, 65, 185);
    text-align: center;
    margin-bottom: 20px;
    border-left: none;
    padding-left: 0;
}

.flowchart svg {
    display: block;
    margin: 0 auto;
}

/* Mind Map Container */
#mindmap-container {
    background: white;
    border: 5px solid rgb(148, 0, 211);
    border-radius: 12px;
    padding: 20px;
    min-height: 800px;
    margin-top: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(40, 40, 60) 0%, rgb(60, 60, 80) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    border: 5px solid rgb(25, 25, 45);
    margin-top: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

footer p {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    color: white;
}

.disclaimer-footer {
    font-size: 14px;
    font-style: italic;
    color: rgb(255, 235, 200);
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 13px;
    }
    
    thead tr th,
    tbody td {
        padding: 10px 8px;
    }
    
    .content-section {
        padding: 20px;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(100, 149, 237);
    color: white;
}

/* Link Styles */
a {
    color: rgb(65, 105, 225);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: rgb(25, 65, 185);
    text-decoration: underline;
}