/* ==========================================================================
   AI Project Planner — Main Stylesheet
   Author : vanshsankat28
   Version: 1.0.0
   ========================================================================== */


/* === Base / Reset === */

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    padding: 40px;
}


/* === Layout === */

.container {
    background: white;
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Output panel displayed after plan generation */
#output {
    margin-top: 20px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #2563eb;
    overflow-x: auto;
}

#output ul {
    padding-left: 20px;
}

#output li {
    margin-bottom: 5px;
}


/* === Form Elements === */

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #1d4ed8;
}


/* === Typography === */

h1 {
    color: #1e293b;
}

h2 {
    color: #2563eb;
    margin-top: 25px;
}

h3 {
    color: #334155;
}


/* === Progress Bar === */

.progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 20px;
    background: #22c55e;
}


/* === Tables === */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
    background: white;
}

th {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 12px;
    border: 1px solid #2563eb;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

td {
    padding: 10px;
    border: 1px solid #d1d5db;
    color: #1e293b;
}

/* Ensures Gemini-generated table cells use the correct text colour */
table td {
    color: #1e293b !important;
}

tr:nth-child(even) {
    background: #f8fafc;
}

tr:hover {
    background: #e0f2fe;
}


/* === Animations === */

/* Used by the AI loading indicator */
@keyframes pulse {
    0%   { opacity: 0.5; }
    50%  { opacity: 1; }
    100% { opacity: 0.5; }
}


/* === Print / PDF Styles === */

@media print {
    /* Force colour rendering in print mode */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        font-family: Arial, sans-serif;
        padding: 20px;
    }

    h1 {
        text-align: center;
        color: #2563eb;
        margin-bottom: 30px;
    }

    h2,
    h3 {
        color: #2563eb;
    }

    p {
        line-height: 1.6;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    th {
        background: #2563eb !important;
        color: #ffffff !important;
        padding: 10px;
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    td {
        padding: 10px;
        border: 1px solid #ccc;
        color: #1e293b;
    }
}
