/* ============================================
   Dindigul Kurai Portal - Main Stylesheet
   ============================================ */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* General */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; }
a { text-decoration: none; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #084298 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.stat-card .icon-box {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

/* Complaint Cards */
.complaint-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform .15s;
    border-left: 4px solid var(--primary);
}
.complaint-card:hover { transform: translateY(-2px); }
.complaint-card.priority-high { border-left-color: var(--danger); }
.complaint-card.priority-medium { border-left-color: var(--warning); }
.complaint-card.priority-low { border-left-color: var(--success); }

/* Status Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: .75rem;
    top: 0; bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: .25rem;
    width: 1rem; height: 1rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px currentColor;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.auth-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
    color: white;
}

/* Feature Icons */
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

/* Complaint Status Colors */
.status-pending    { color: #856404; background: #fff3cd; }
.status-assigned   { color: #084298; background: #cfe2ff; }
.status-in_progress { color: #0a3622; background: #d1e7dd; }
.status-completed  { color: #0f5132; background: #d1e7dd; }
.status-rejected   { color: #842029; background: #f8d7da; }

/* Responsive table */
.table-responsive { border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); }
.table { margin-bottom: 0; }
.table thead th { background: #f8f9fa; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border: none; }
.table tbody tr:hover { background: rgba(13, 110, 253, .04); }

/* Page Hero Banner */
.page-banner {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* Print Styles */
@media print {
    .navbar, .sidebar, .btn, .no-print { display: none !important; }
    body { background: white; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; }
