/* ========================================
   E-INVOICE & E-WAYBILL - STYLESHEET
   Professional Educational Resource Design
   ======================================== */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    background: linear-gradient(135deg, rgb(240, 247, 255) 0%, rgb(220, 237, 252) 50%, rgb(240, 247, 255) 100%);
    color: rgb(28, 35, 49);
    padding: 20px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    padding: 40px;
    border: 4px solid rgb(41, 128, 185);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(41, 128, 185, 0.2);
}

/* ========== HEADER ========== */
header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, rgb(41, 128, 185), rgb(52, 152, 219));
    color: rgb(255, 255, 255);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(31, 97, 141);
}

header h1 {
    font-size: 2.8em;
    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: 10px;
}

.subtitle {
    font-size: 1.2em;
    font-weight: bold;
    font-style: italic;
}

/* ========== PRINT BUTTON ========== */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgb(46, 204, 113), rgb(39, 174, 96));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(30, 130, 76);
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(39, 174, 96), rgb(46, 204, 113));
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(46, 204, 113, 0.6);
}

/* ========== NAVIGATION MENU ========== */
.navigation {
    position: fixed;
    left: 20px;
    top: 100px;
    width: 280px;
    background-color: rgb(236, 240, 241);
    border: 3px solid rgb(149, 165, 166);
    border-radius: 10px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navigation h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(41, 128, 185);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 3px solid rgb(41, 128, 185);
    padding-bottom: 10px;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: 8px;
}

.navigation button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgb(52, 152, 219), rgb(41, 128, 185));
    color: rgb(255, 255, 255);
    border: 2px solid rgb(31, 97, 141);
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.navigation button:hover {
    background: linear-gradient(135deg, rgb(41, 128, 185), rgb(52, 152, 219));
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(41, 128, 185, 0.4);
}

/* ========== DISCLAIMER ========== */
.disclaimer {
    background-color: rgb(255, 243, 205);
    border: 3px solid rgb(243, 156, 18);
    border-left: 8px solid rgb(243, 156, 18);
    padding: 20px;
    margin: 20px 0 30px 0;
    border-radius: 8px;
}

.disclaimer p {
    font-weight: bold;
    color: rgb(152, 96, 0);
    font-size: 1.1em;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: rgb(250, 251, 252);
    border: 3px solid rgb(189, 195, 199);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.section-heading {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(41, 128, 185);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(52, 152, 219);
}

/* ========== SUBSECTIONS ========== */
.subsection {
    margin-bottom: 30px;
}

.subsection-heading {
    font-size: 1.6em;
    font-weight: bold;
    color: rgb(52, 73, 94);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 6px solid rgb(52, 152, 219);
}

/* ========== PARAGRAPHS & TEXT ========== */
p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
    color: rgb(44, 62, 80);
}

strong {
    font-weight: 900;
    color: rgb(41, 128, 185);
}

/* ========== LISTS ========== */
ul, ol {
    margin-left: 40px;
    margin-bottom: 20px;
}

li {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 12px;
    color: rgb(44, 62, 80);
    line-height: 1.8;
}

.procedure-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgb(235, 245, 251);
    border-left: 5px solid rgb(52, 152, 219);
    border-radius: 5px;
}

.procedure-list li ul {
    margin-top: 10px;
}

/* ========== SPECIAL BOXES ========== */
.provision-box {
    background-color: rgb(232, 248, 245);
    border: 3px solid rgb(26, 188, 156);
    border-left: 8px solid rgb(26, 188, 156);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.provision-box p {
    color: rgb(22, 160, 133);
    font-weight: bold;
}

.example-box {
    background-color: rgb(255, 250, 240);
    border: 3px solid rgb(230, 126, 34);
    border-left: 8px solid rgb(230, 126, 34);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(211, 84, 0);
    margin-bottom: 15px;
}

.example-box p {
    color: rgb(120, 56, 6);
}

.info-box {
    background-color: rgb(240, 248, 255);
    border: 3px solid rgb(52, 152, 219);
    border-left: 8px solid rgb(52, 152, 219);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box p {
    color: rgb(21, 67, 96);
}

.case-box {
    background-color: rgb(253, 242, 248);
    border: 3px solid rgb(155, 89, 182);
    border-left: 8px solid rgb(155, 89, 182);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.case-box h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(125, 60, 152);
    margin-bottom: 15px;
}

.case-box p {
    color: rgb(74, 35, 90);
}

.amendment-box {
    background-color: rgb(255, 245, 245);
    border: 3px solid rgb(231, 76, 60);
    border-left: 8px solid rgb(231, 76, 60);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.amendment-box h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(192, 57, 43);
    margin-bottom: 15px;
}

.amendment-box p {
    color: rgb(120, 40, 31);
}

/* ========== TABLES ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1.05em;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, rgb(52, 152, 219), rgb(41, 128, 185));
    color: rgb(255, 255, 255);
}

.data-table th {
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    border-right: 2px solid rgb(31, 97, 141);
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 15px;
    border-bottom: 2px solid rgb(189, 195, 199);
    border-right: 2px solid rgb(189, 195, 199);
    font-weight: bold;
    color: rgb(44, 62, 80);
}

.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr:nth-child(even) {
    background-color: rgb(235, 245, 251);
}

.data-table tbody tr:hover {
    background-color: rgb(220, 237, 252);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(155, 89, 182);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, rgb(155, 89, 182), rgb(142, 68, 173));
    color: rgb(255, 255, 255);
}

.comparison-table th {
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    border-right: 2px solid rgb(125, 60, 152);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 2px solid rgb(189, 195, 199);
    border-right: 2px solid rgb(189, 195, 199);
    font-weight: bold;
    color: rgb(44, 62, 80);
    vertical-align: top;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgb(246, 241, 251);
}

.comparison-table tbody tr:hover {
    background-color: rgb(240, 230, 250);
    transform: scale(1.005);
    transition: all 0.2s ease;
}

/* ========== FLOWCHARTS ========== */
.flowchart-container {
    margin: 30px 0;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 10px;
    overflow-x: auto;
}

.flowchart-container svg {
    width: 100%;
    height: auto;
}

.flowchart-start, .flowchart-end {
    fill: rgb(46, 204, 113);
    stroke: rgb(39, 174, 96);
    stroke-width: 3;
}

.flowchart-process {
    fill: rgb(52, 152, 219);
    stroke: rgb(41, 128, 185);
    stroke-width: 3;
}

.flowchart-decision {
    fill: rgb(241, 196, 15);
    stroke: rgb(243, 156, 18);
    stroke-width: 3;
}

.flowchart-line {
    stroke: rgb(52, 73, 94);
    stroke-width: 3;
    fill: none;
}

.flowchart-text {
    fill: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 16px;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* ========== MIND MAP ========== */
.mindmap-container {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgb(250, 251, 252), rgb(236, 240, 241));
    border: 4px solid rgb(52, 152, 219);
    border-radius: 15px;
    overflow-x: auto;
}

.mindmap-container svg {
    width: 100%;
    height: auto;
}

.mindmap-central {
    fill: rgb(231, 76, 60);
    stroke: rgb(192, 57, 43);
    stroke-width: 4;
}

.mindmap-branch1 {
    fill: rgb(52, 152, 219);
    stroke: rgb(41, 128, 185);
    stroke-width: 3;
}

.mindmap-branch2 {
    fill: rgb(46, 204, 113);
    stroke: rgb(39, 174, 96);
    stroke-width: 3;
}

.mindmap-branch3 {
    fill: rgb(155, 89, 182);
    stroke: rgb(142, 68, 173);
    stroke-width: 3;
}

.mindmap-branch4 {
    fill: rgb(230, 126, 34);
    stroke: rgb(211, 84, 0);
    stroke-width: 3;
}

.mindmap-branch5 {
    fill: rgb(26, 188, 156);
    stroke: rgb(22, 160, 133);
    stroke-width: 3;
}

.mindmap-branch6 {
    fill: rgb(241, 196, 15);
    stroke: rgb(243, 156, 18);
    stroke-width: 3;
}

.mindmap-branch7 {
    fill: rgb(52, 73, 94);
    stroke: rgb(44, 62, 80);
    stroke-width: 3;
}

.mindmap-subbranch1 {
    fill: rgb(174, 214, 241);
    stroke: rgb(52, 152, 219);
    stroke-width: 2;
}

.mindmap-subbranch2 {
    fill: rgb(169, 223, 191);
    stroke: rgb(46, 204, 113);
    stroke-width: 2;
}

.mindmap-subbranch3 {
    fill: rgb(210, 180, 222);
    stroke: rgb(155, 89, 182);
    stroke-width: 2;
}

.mindmap-subbranch4 {
    fill: rgb(245, 183, 177);
    stroke: rgb(230, 126, 34);
    stroke-width: 2;
}

.mindmap-subbranch5 {
    fill: rgb(162, 217, 206);
    stroke: rgb(26, 188, 156);
    stroke-width: 2;
}

.mindmap-subbranch6 {
    fill: rgb(249, 231, 159);
    stroke: rgb(241, 196, 15);
    stroke-width: 2;
}

.mindmap-subbranch7 {
    fill: rgb(171, 178, 185);
    stroke: rgb(52, 73, 94);
    stroke-width: 2;
}

.mindmap-line {
    stroke: rgb(52, 73, 94);
    stroke-width: 2;
    fill: none;
}

.mindmap-text-large {
    fill: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 24px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.mindmap-text-medium {
    fill: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 18px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.mindmap-text-small {
    fill: rgb(44, 62, 80);
    font-weight: bold;
    font-size: 13px;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* ========== FOOTER ========== */
footer {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgb(44, 62, 80), rgb(52, 73, 94));
    color: rgb(255, 255, 255);
    text-align: center;
    border-radius: 10px;
    border: 3px solid rgb(34, 47, 62);
}

footer p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(255, 255, 255);
}

.footer-disclaimer {
    font-style: italic;
    font-size: 0.95em;
    margin-top: 15px;
    color: rgb(189, 195, 199);
}

/* ========== PRINT STYLES ========== */
@media print {
    body {
        background: rgb(255, 255, 255);
        padding: 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .container {
        border: none;
        box-shadow: none;
        padding: 20px;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid rgb(52, 73, 94);
        margin-bottom: 20px;
    }
    
    .section-heading {
        page-break-after: avoid;
    }
    
    .data-table, .comparison-table {
        page-break-inside: avoid;
    }
    
    .flowchart-container, .mindmap-container {
        page-break-inside: avoid;
    }
    
    header {
        background: rgb(41, 128, 185) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    footer {
        background: rgb(44, 62, 80) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 1200px) {
    .navigation {
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 20px;
    }
    
    .print-btn {
        position: static;
        display: block;
        margin: 0 auto 20px auto;
        width: fit-content;
    }
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    header h2 {
        font-size: 1.3em;
    }
    
    .section-heading {
        font-size: 1.6em;
    }
    
    .subsection-heading {
        font-size: 1.3em;
    }
    
    .data-table, .comparison-table {
        font-size: 0.85em;
    }
    
    .data-table th, .data-table td,
    .comparison-table th, .comparison-table td {
        padding: 10px;
    }
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ========== SCROLL TO TOP ANIMATION ========== */
.content-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ACCESSIBILITY ========== */
a:focus, button:focus {
    outline: 3px solid rgb(52, 152, 219);
    outline-offset: 3px;
}

/* ========== END OF STYLESHEET ========== */