/* GST ITC Foreign Tour Expenses - Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(101, 201, 10);
    color: #000000;
    line-height: 1.6;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(101, 201, 10);
}

/* Header Styles */
header {
    background-color: rgb(206, 230, 168);
    border: 4px solid rgb(206, 230, 168);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.2em;
    color: #000000;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.disclaimer {
    font-size: 1em;
    color: #cc0000;
    font-weight: bold;
    font-style: italic;
    margin-top: 10px;
}

/* Navigation Styles */
.navigation {
    background-color: rgb(206, 230, 168);
    border: 4px solid rgb(206, 230, 168);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navigation h2 {
    font-size: 1.5em;
    color: #000000;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.nav-btn {
    background-color: rgb(101, 201, 10);
    color: #000000;
    font-weight: bold;
    border: 3px solid #000000;
    padding: 12px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.print-btn {
    background-color: #ff6600;
    color: #ffffff;
    font-weight: bold;
    border: 3px solid #000000;
    padding: 12px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: #ff8833;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Main Content Styles */
main {
    background-color: rgb(101, 201, 10);
}

.content-section {
    background-color: rgb(206, 230, 168);
    border: 4px solid rgb(206, 230, 168);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-section h2 {
    font-size: 1.8em;
    color: #000000;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 3px solid #000000;
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 1.4em;
    color: #000000;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.2em;
    color: #000000;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-section p {
    font-size: 1em;
    color: #000000;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    font-size: 1em;
    color: #000000;
    font-weight: bold;
    margin-left: 30px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Question and Solution Boxes */
.question-box,
.solution-box {
    background-color: rgb(101, 201, 10);
    border: 3px solid #000000;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.question-box {
    border-left: 8px solid #ff6600;
}

.solution-box {
    border-left: 8px solid #00cc00;
}

.toggle-btn {
    background-color: rgb(206, 230, 168);
    color: #000000;
    font-weight: bold;
    border: 3px solid #000000;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1em;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: #ffffff;
    transform: translateX(5px);
}

.hidden-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 5px;
}

.hidden-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Box Styles */
.legal-box {
    background-color: #ffffcc;
    border: 3px solid #000000;
    border-left: 8px solid #0066cc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.legal-box p {
    color: #000000;
    font-weight: bold;
}

/* Example Box Styles */
.example-box {
    background-color: #e6f7ff;
    border: 3px solid #000000;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box h3,
.example-box h4 {
    color: #000000;
    font-weight: bold;
}

.example-box p,
.example-box li {
    color: #000000;
    font-weight: bold;
}

/* Table Styles */
.example-table,
.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    overflow: hidden;
}

.example-table th,
.analysis-table th {
    background-color: rgb(101, 201, 10);
    color: #000000;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border: 2px solid #000000;
}

.example-table td,
.analysis-table td {
    padding: 12px;
    border: 2px solid #000000;
    color: #000000;
    font-weight: bold;
}

.example-table tbody tr:nth-child(even),
.analysis-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

.example-table tbody tr:hover,
.analysis-table tbody tr:hover {
    background-color: rgb(206, 230, 168);
}

.total-row {
    background-color: rgb(206, 230, 168) !important;
    font-weight: bold;
}

.positive-row {
    background-color: #ccffcc !important;
}

.negative-row {
    background-color: #ffcccc !important;
}

.yes-itc {
    color: #00cc00;
    font-weight: bold;
    font-size: 1.2em;
}

.no-itc {
    color: #cc0000;
    font-weight: bold;
    font-size: 1.2em;
}

/* Calculation Box */
.calculation-box {
    background-color: #fff3cd;
    border: 3px solid #000000;
    border-left: 8px solid #ff6600;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.calculation-box p {
    color: #000000;
    font-weight: bold;
    font-size: 1.1em;
}

/* Alert Box */
.alert-box {
    background-color: #ffe6e6;
    border: 3px solid #cc0000;
    border-left: 8px solid #cc0000;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.alert-box p {
    color: #000000;
    font-weight: bold;
}

/* Case Law Box */
.case-box {
    background-color: #f0f8ff;
    border: 3px solid #000000;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.case-citation {
    background-color: rgb(206, 230, 168);
    padding: 10px;
    border-left: 5px solid #000000;
    font-weight: bold;
    margin-bottom: 15px;
}

.highlight-box {
    background-color: #ffffcc;
    border: 3px solid #ff6600;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.ruling-box {
    background-color: #e6ffe6;
    border: 3px solid #00cc00;
    border-left: 8px solid #00cc00;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.ruling-box p {
    font-size: 1.1em;
    color: #000000;
    font-weight: bold;
}

/* Flowchart Styles */
.flowchart {
    background-color: #ffffff;
    border: 4px solid #000000;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.flow-box {
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    padding: 20px;
    margin: 10px auto;
    border-radius: 8px;
    max-width: 400px;
    font-weight: bold;
    color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.start-box {
    background-color: #99ccff;
    border-color: #0066cc;
}

.decision-box {
    background-color: #ffff99;
    border-color: #ff6600;
    border-radius: 50px;
}

.end-box {
    background-color: #cccccc;
    border-color: #666666;
}

.positive-box {
    background-color: #ccffcc;
    border-color: #00cc00;
}

.negative-box {
    background-color: #ffcccc;
    border-color: #cc0000;
}

.large-box {
    max-width: 500px;
    padding: 25px;
    font-size: 1.1em;
}

.flow-arrow {
    font-size: 2em;
    color: #000000;
    font-weight: bold;
    margin: 10px 0;
}

.flow-arrow-side {
    font-size: 1.2em;
    color: #000000;
    font-weight: bold;
    margin: 10px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.flow-branch {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

.flow-continue {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

.flow-mini-split {
    margin: 10px 0;
}

/* Conclusion Box */
.conclusion-box {
    background-color: #f0f8ff;
    border: 3px solid #000000;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.conclusion-box h3 {
    color: #000000;
    font-weight: bold;
    margin-bottom: 15px;
}

.conclusion-box ol,
.conclusion-box ul {
    color: #000000;
    font-weight: bold;
}

/* Final Note */
.final-note {
    background-color: #ffe6e6;
    border: 3px solid #cc0000;
    border-left: 8px solid #cc0000;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.final-note h3 {
    color: #cc0000;
    font-weight: bold;
    margin-bottom: 15px;
}

.final-note p {
    color: #000000;
    font-weight: bold;
}

/* References */
.references {
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.references h3 {
    color: #000000;
    font-weight: bold;
    margin-bottom: 15px;
}

.references ul {
    color: #000000;
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: rgb(206, 230, 168);
    border: 4px solid rgb(206, 230, 168);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    color: #000000;
    font-weight: bold;
    margin: 5px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        background-color: white;
        max-width: 100%;
        padding: 10px;
    }
    
    .navigation {
        display: none;
    }
    
    .toggle-btn {
        display: none;
    }
    
    .hidden-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid black;
        margin-bottom: 20px;
    }
    
    .print-btn {
        display: none;
    }
    
    header,
    footer {
        border: 2px solid black;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .nav-btn,
    .print-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .example-table,
    .analysis-table {
        font-size: 0.9em;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .flow-branch,
    .flow-continue {
        width: 100%;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .content-section h3 {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .example-table th,
    .example-table td,
    .analysis-table th,
    .analysis-table td {
        padding: 8px;
        font-size: 0.8em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
button:focus,
a:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

/* Animation for Content Sections */
.content-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}