/* Agricultural Income - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(101, 201, 10);
    color: #1a1a1a;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 5px solid rgb(206, 230, 168);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgb(101, 201, 10), rgb(70, 150, 5));
    color: white;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

header h3 {
    font-size: 1.2em;
    font-weight: bold;
}

/* Disclaimer */
.disclaimer {
    background-color: #fff3cd;
    border: 3px solid rgb(206, 230, 168);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #856404;
}

/* Print Button */
.print-btn {
    background-color: rgb(70, 150, 5);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: rgb(50, 120, 5);
    transform: scale(1.05);
}

/* Navigation */
.navigation {
    background-color: rgb(206, 230, 168);
    border: 3px solid rgb(101, 201, 10);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.navigation h3 {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: rgb(50, 100, 5);
}

.navigation button {
    background-color: rgb(101, 201, 10);
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid rgb(70, 150, 5);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: rgb(70, 150, 5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.content-section {
    background-color: white;
    border: 4px solid rgb(206, 230, 168);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-weight: bold;
    font-size: 2em;
    color: rgb(50, 100, 5);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(206, 230, 168);
}

.content-section h3 {
    font-weight: bold;
    font-size: 1.5em;
    color: rgb(70, 120, 10);
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-weight: bold;
    font-size: 1.2em;
    color: rgb(80, 130, 15);
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-section p, .content-section li {
    font-weight: bold;
    margin-bottom: 10px;
}

.content-section ul, .content-section ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

/* Subsections */
.subsection {
    margin-bottom: 25px;
}

/* Special Boxes */
.definition-box, .explanation-box, .principle-box {
    background-color: #e8f5e9;
    border: 3px solid rgb(101, 201, 10);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.definition-box h4, .explanation-box h4, .principle-box h4 {
    font-weight: bold;
    color: rgb(50, 100, 5);
    margin-bottom: 10px;
}

/* Key Points */
.key-points {
    background-color: #fff9c4;
    border: 3px solid rgb(206, 230, 168);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.key-points ul li {
    font-weight: bold;
    margin-bottom: 12px;
    padding-left: 10px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid rgb(206, 230, 168);
    background-color: white;
}

thead {
    background-color: rgb(101, 201, 10);
    color: white;
}

th {
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border: 2px solid rgb(206, 230, 168);
    font-size: 1.1em;
}

td {
    font-weight: bold;
    padding: 12px;
    border: 2px solid rgb(206, 230, 168);
}

tbody tr:nth-child(even) {
    background-color: rgba(206, 230, 168, 0.3);
}

tbody tr:hover {
    background-color: rgba(101, 201, 10, 0.2);
}

/* Example Boxes */
.example-box {
    border: 3px solid rgb(206, 230, 168);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.example-box.agricultural {
    background-color: #e8f5e9;
    border-color: rgb(101, 201, 10);
}

.example-box.non-agricultural {
    background-color: #ffebee;
    border-color: #f44336;
}

.example-box ol li {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    margin-left: -10px;
    padding-left: 20px;
}

/* Calculation Boxes */
.calculation-box {
    background-color: #e3f2fd;
    border: 3px solid rgb(101, 201, 10);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.calculation-steps {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid rgb(206, 230, 168);
    margin-top: 10px;
}

.calculation-steps p, .calculation-steps ul, .calculation-steps li {
    font-weight: bold;
}

/* Flowchart */
.flowchart-container {
    background-color: #f5f5f5;
    border: 3px solid rgb(206, 230, 168);
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.flow-box {
    background-color: white;
    border: 3px solid rgb(101, 201, 10);
    padding: 15px;
    margin: 10px auto;
    border-radius: 8px;
    max-width: 400px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-box.start {
    background-color: rgb(206, 230, 168);
    font-size: 1.2em;
}

.flow-box.decision {
    background-color: #fff9c4;
    border-color: #fbc02d;
    font-size: 1.1em;
}

.flow-box.end-yes {
    background-color: #c8e6c9;
    border-color: rgb(101, 201, 10);
    font-size: 1.2em;
}

.flow-box.end-no {
    background-color: #ffcdd2;
    border-color: #f44336;
    font-size: 1.1em;
}

.flow-box.partial {
    background-color: #ffe082;
    border-color: #ffa000;
    font-size: 1.1em;
}

.flow-arrow {
    font-size: 2em;
    font-weight: bold;
    color: rgb(70, 150, 5);
    margin: 10px 0;
}

.flow-arrow-side {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(70, 150, 5);
    margin: 10px;
}

.flow-split {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.flow-branch {
    flex: 1;
    max-width: 400px;
}

/* Case Laws */
.case-law {
    background-color: #f3e5f5;
    border: 4px solid rgb(206, 230, 168);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.case-law h3 {
    background-color: rgb(101, 201, 10);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.case-details {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgb(206, 230, 168);
}

.case-details h4 {
    font-weight: bold;
    color: rgb(70, 120, 10);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.case-details ul li, .case-details p {
    font-weight: bold;
    margin-bottom: 10px;
}

.case-summary-table {
    margin-top: 30px;
}

/* Questions */
.question-box {
    background-color: white;
    border: 4px solid rgb(206, 230, 168);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.question {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgb(101, 201, 10);
}

.question h3 {
    font-weight: bold;
    color: rgb(50, 100, 5);
    margin-bottom: 15px;
}

.question p, .question ul, .question li {
    font-weight: bold;
    margin-bottom: 10px;
}

.solution-btn {
    background-color: rgb(101, 201, 10);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.solution-btn:hover {
    background-color: rgb(70, 150, 5);
    transform: scale(1.05);
}

.solution {
    display: none;
    background-color: #c8e6c9;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    border: 3px solid rgb(101, 201, 10);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution h4 {
    font-weight: bold;
    color: rgb(50, 100, 5);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.solution p, .solution ul, .solution ol, .solution li {
    font-weight: bold;
    margin-bottom: 10px;
}

.classification-table {
    margin-top: 15px;
}

/* Summary */
.summary {
    background: linear-gradient(135deg, rgba(206, 230, 168, 0.5), rgba(101, 201, 10, 0.3));
    border: 4px solid rgb(101, 201, 10);
}

.summary-box {
    background-color: white;
    border: 3px solid rgb(206, 230, 168);
    padding: 20px;
    border-radius: 8px;
}

.summary-box ul li {
    font-weight: bold;
    margin-bottom: 12px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 5px;
    border-left: 5px solid rgb(101, 201, 10);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgb(206, 230, 168);
    border: 3px solid rgb(101, 201, 10);
    border-radius: 10px;
    margin-top: 30px;
}

footer p {
    font-weight: bold;
    margin: 5px 0;
    color: rgb(50, 100, 5);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        border: 2px solid black;
        box-shadow: none;
    }
    
    .print-btn, .navigation, .solution-btn {
        display: none;
    }
    
    .solution {
        display: block !important;
    }
    
    .content-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .navigation button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 8px;
    }
}