/* ICDS III - Construction Contracts Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(212, 113, 245);
    color: #1a1a1a;
    line-height: 1.8;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    padding: 40px;
    border-radius: 15px;
    border: 5px solid rgb(100, 242, 148);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

header .subtitle {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 10px;
}

header .disclaimer {
    font-size: 1em;
    font-weight: bold;
    color: #d32f2f;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

/* Print Button Section */
.print-section {
    text-align: center;
    margin: 20px 0;
}

.print-btn {
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    color: #1a1a1a;
    font-weight: bold;
    padding: 15px 40px;
    font-size: 1.2em;
    border: 3px solid rgb(100, 242, 148);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(223, 242, 148), rgb(100, 242, 148));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Navigation Menu */
.nav-menu {
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(223, 242, 148);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.nav-menu h2 {
    font-size: 2em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 4px solid rgb(100, 242, 148);
    padding-bottom: 10px;
}

.nav-menu ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.nav-menu li button {
    width: 100%;
    background: linear-gradient(135deg, rgb(212, 113, 245), rgb(190, 90, 220));
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    font-size: 1em;
    border: 3px solid rgb(100, 242, 148);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-menu li button:hover {
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    color: #1a1a1a;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content Area */
main {
    background-color: rgba(255, 255, 255, 0.95);
    border: 6px solid rgb(223, 242, 148);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(212, 113, 245, 0.1);
    border: 4px solid rgb(100, 242, 148);
    border-radius: 12px;
    scroll-margin-top: 20px;
}

.content-section h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    border-radius: 8px;
    border: 3px solid rgb(100, 242, 148);
}

.content-section h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(223, 242, 148, 0.5);
    border-left: 6px solid rgb(100, 242, 148);
}

.content-section h4 {
    font-size: 1.4em;
    font-weight: bold;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid rgb(212, 113, 245);
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section ul li {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-section p {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Table Styles */
.table-container {
    margin: 25px 0;
    overflow-x: auto;
    border: 4px solid rgb(100, 242, 148);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

table caption {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
    padding: 15px;
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    border-bottom: 3px solid rgb(100, 242, 148);
}

table thead {
    background: linear-gradient(135deg, rgb(212, 113, 245), rgb(190, 90, 220));
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #ffffff;
    border: 2px solid rgb(100, 242, 148);
}

table td {
    padding: 12px;
    font-weight: bold;
    color: #1a1a1a;
    border: 2px solid rgb(223, 242, 148);
}

table tbody tr:nth-child(even) {
    background-color: rgba(212, 113, 245, 0.1);
}

table tbody tr:hover {
    background-color: rgba(100, 242, 148, 0.3);
}

.inner-table {
    margin: 15px 0;
    width: 100%;
    border: 3px solid rgb(100, 242, 148);
}

/* Example Boxes */
.example-box {
    background: linear-gradient(135deg, rgba(223, 242, 148, 0.3), rgba(100, 242, 148, 0.3));
    border: 4px solid rgb(100, 242, 148);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.example-box p {
    font-weight: bold;
    color: #1a1a1a;
}

.example-box ul {
    margin-left: 25px;
}

/* Formula Box */
.formula-box {
    background: linear-gradient(135deg, rgba(212, 113, 245, 0.2), rgba(190, 90, 220, 0.2));
    border: 4px solid rgb(100, 242, 148);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.formula-box p {
    font-size: 1.2em;
    font-weight: bold;
    color: #1a1a1a;
    margin: 10px 0;
}

/* Flowchart Styles */
.flowchart-container {
    margin: 25px 0;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid rgb(223, 242, 148);
    border-radius: 12px;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flow-box {
    padding: 20px 30px;
    border: 4px solid rgb(100, 242, 148);
    border-radius: 10px;
    background-color: rgba(212, 113, 245, 0.3);
    font-weight: bold;
    color: #1a1a1a;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flow-box.success {
    background-color: rgba(100, 242, 148, 0.5);
}

.flow-box.warning {
    background-color: rgba(255, 193, 7, 0.5);
}

.flow-arrow {
    font-size: 2em;
    font-weight: bold;
    color: #1a1a1a;
}

/* Question Blocks */
.question-block {
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgb(100, 242, 148);
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.question-block h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, rgb(212, 113, 245), rgb(190, 90, 220));
    color: #ffffff;
    border-radius: 8px;
}

.question-block p {
    font-weight: bold;
    color: #1a1a1a;
}

.question-block ul,
.question-block ol {
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.question-block li {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Toggle Button for Solutions */
.toggle-btn {
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    color: #1a1a1a;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1.1em;
    border: 3px solid rgb(100, 242, 148);
    border-radius: 8px;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
    background: linear-gradient(135deg, rgb(212, 113, 245), rgb(190, 90, 220));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Solution Styles */
.solution {
    background: linear-gradient(135deg, rgba(223, 242, 148, 0.4), rgba(100, 242, 148, 0.4));
    border: 4px solid rgb(100, 242, 148);
    border-radius: 10px;
    padding: 25px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.solution.hidden {
    display: none;
}

.solution h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.solution p {
    font-weight: bold;
    color: #1a1a1a;
}

.solution ul {
    margin-left: 25px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(100, 242, 148), rgb(223, 242, 148));
    border: 5px solid rgb(100, 242, 148);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

footer p {
    font-weight: bold;
    color: #1a1a1a;
    margin: 10px 0;
    font-size: 1.1em;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .nav-menu ul {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 1.8em;
    }

    .content-section h3 {
        font-size: 1.4em;
    }

    table {
        font-size: 0.9em;
    }

    .flow-box {
        min-width: 250px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .print-section,
    .nav-menu {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 10px;
    }

    .content-section {
        page-break-inside: avoid;
        border: 2px solid #000;
    }

    header,
    footer {
        background: white;
        border: 2px solid #000;
    }

    .toggle-btn {
        display: none;
    }

    .solution {
        display: block !important;
    }

    table {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(100, 242, 148);
    color: #1a1a1a;
}

/* Link Styles within Content */
a {
    color: rgb(212, 113, 245);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: rgb(100, 242, 148);
    text-decoration: underline;
}

/* Strong emphasis */
strong {
    font-weight: bold;
    color: #1a1a1a;
}