/* Custom Styles for Grievance Management System */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8f9fc;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-section h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-section h5 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.logo-container i {
    color: white !important;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Header Logos */
.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo.logo-main {
    height: 90px;
}

.header-logo.logo-round {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-logos {
        gap: 15px;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .header-logo.logo-main {
        height: 70px;
    }
    
    .header-logo.logo-round {
        height: 60px;
        width: 60px;
    }
}

.option-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.icon-wrapper {
    padding: 20px;
    border-radius: 50%;
    display: inline-block;
}

.card-title {
    color: #333;
    font-size: 1.1rem;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-top: 20px;
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-success {
    background-color: var(--success-color);
    border: none;
    border-radius: 10px;
}

.btn-info {
    background-color: var(--info-color);
    border: none;
    border-radius: 10px;
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
    border-radius: 10px;
}

.btn-danger {
    background-color: var(--danger-color);
    border: none;
    border-radius: 10px;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
}

/* Table Styles */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    padding: 12px 15px;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Status Page */
.status-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.status-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-info-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.contact-info-box i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info-box h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info-box p {
    color: #666;
    margin-bottom: 5px;
}

/* Login Page */
.login-container {
    max-width: 450px;
    margin: 50px auto;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-footer {
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .header-section h5 {
        font-size: 1rem;
    }
    
    .option-card {
        margin-bottom: 20px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.success-animation {
    animation: successPulse 0.5s ease;
}

/* Back to Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card, .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
