/* -- VIBRANT STYLING (styles.css) -- */

/* Loading Animation Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s;
}

.loader-container.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.loading-text {
    text-align: center;
    font-family: var(--font-family);
    font-size: 18px;
    color: #555;
    margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    /* Vibrant sky-blue theme */
    --primary-color: #00A6FF;       /* Vibrant Sky Blue */
    --secondary-color: #00D1FF;     /* Bright Cyan */
    --accent-color: #7FCEFF;        /* Soft Sky Accent */
    --high-priority: #FF5C7A;       /* Warm alert color */
    --low-priority: #36D1DC;        /* Teal-ish low priority */
    --bg-light: #EAF8FF;            /* Very light sky background */
    --bg-dark: #032B4A;             /* Deep navy for header/footer */
    --card-bg: #ffffff;
    --text-dark: #04293A;           /* Dark slate for text */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --gradient-1: linear-gradient(120deg, #00A6FF, #00D1FF, #7FCEFF, #EAF8FF);
    --gradient-2: linear-gradient(135deg, #00A6FF 0%, #00D1FF 50%, #7FCEFF 100%);
    --gradient-animated: linear-gradient(270deg, #00A6FF, #00D1FF, #7FCEFF, #EAF8FF, #00A6FF);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    /* Animated vibrant sky-blue gradient background */
    min-height: 100vh;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientMove 12s ease-in-out infinite;
    color: var(--text-dark);
    line-height: 1.6;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header & Navigation */
header {
    background: var(--bg-dark);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--bg-light);
}

/* --- General Card & Button Styles --- */
/* Card with vibrant border and glow on hover */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 166, 255, 0.08);
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px 0 rgba(0, 166, 255, 0.18), 0 1.5px 8px 0 rgba(0, 209, 255, 0.10);
    border: 2px solid var(--primary-color);
}

button, .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

/* Vibrant button styles */
.btn-primary {
    background: linear-gradient(90deg, #00A6FF 0%, #00D1FF 100%);
    color: white;
    box-shadow: 0 2px 8px 0 rgba(0, 166, 255, 0.10);
    border: none;
}

.btn-primary:hover, button:hover, .btn:hover {
    background: linear-gradient(90deg, #00D1FF 0%, #00A6FF 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(0, 166, 255, 0.18);
    transform: scale(1.04);
    border: none;
}
.hero-btn {
    padding: 15px 30px; 
    font-size: 0.8em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- HOME PAGE STYLES --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 { font-size: 2.8em; margin-bottom: 15px; }
.hero p { font-size: 1.2em; margin-bottom: 30px; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card { text-align: center; }
.stat-card h2 { font-size: 1.1em; opacity: 0.7; }
.stat-card p { font-size: 3em; font-weight: 700; margin-top: 10px; }

/* --- Analytics Section (NEW) --- */
.analytics-section {
    padding: 40px 30px;
}
.analytics-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.response-time-display {
    text-align: center;
}
.response-time-display h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    opacity: 0.8;
}
.response-time-display p {
    font-size: 4em;
    font-weight: 800;
    margin-top: 10px;
    line-height: 1;
}
.response-time-display span {
    font-size: 1.2em;
    font-weight: bold;
}
.chart-container {
    display: flrex;
    justify-content: center;
        display: flex;
        /* width: 100%; */
        /* max-width: 600px; */
        /* height: 300px; */
}

@media (min-width: 768px) {
    .analytics-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
    .response-time-display {
        flex: 1;
        text-align: left;
        align-self: center;
    }
    .chart-container {
        flex: 1;
    }
}


/* --- COMPLAINTS TABLE & FORM STYLES (FROM PREVIOUS VERSIONS) --- */
.priority-high { background-color: rgba(220, 53, 69, 0.1); color: var(--high-priority); font-weight: bold; padding: 3px 6px; border-radius: 4px; }
.status-resolved { background-color: rgba(40, 167, 69, 0.1); color: var(--secondary-color); font-weight: bold; padding: 3px 6px; border-radius: 4px; }
.status-pending { background-color: rgba(108, 117, 125, 0.1); color: #6c757d; font-weight: bold; padding: 3px 6px; border-radius: 4px; }
.status-in-progress { background-color: rgba(255, 152, 0, 0.1); color: #ff9800; font-weight: bold; padding: 3px 6px; border-radius: 4px; }

/* Form & Login Styles */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: var(--bg-dark);
    color: white;
    margin-top: 20px;
}
category option:hover{
    color: rgba(0, 0, 0, 1.0);
 }