/* Custom styles for Voters Management System */

/* General styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1, h2, h3 {
        font-size: calc(1.2rem + 1vw);
    }
    
    .display-3 {
        font-size: calc(1.5rem + 1.5vw);
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile statistics cards */
    .row > .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Mobile charts */
    .chart-container {
        height: 250px !important;
    }
    
    /* Table responsiveness */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Form controls */
    .form-control, .form-select, .btn {
        font-size: 0.95rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Navigation styling */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 15px 20px;
    background-color: #fff;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0143a3 0%, #0d6efd 100%) !important;
    color: white;
}

.card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.card-body {
    padding: 20px;
}

/* Table styling */
.table {
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.table-hover tbody tr {
    transition: all 0.2s ease;
    border-radius: 8px;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
}

/* Form styling */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

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

/* Button styling */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0143a3 0%, #0d6efd 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Custom alert styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
}

/* Chart Card Styles */
.chart-card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chart-container {
    margin: 0 auto;
}

/* Welcome Card Styles */
.welcome-card {
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .welcome-card .row {
        flex-direction: column;
    }
    
    .welcome-bg {
        display: none !important;
    }
    
    .welcome-card .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.welcome-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0143a3 0%, #0d6efd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.welcome-bg {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8) 0%, rgba(1, 67, 163, 0.9) 100%), url('../img/voting-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    text-decoration: none;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-item:hover {
    transform: translateY(-5px);
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.quick-action-item:hover .quick-action-icon {
    transform: scale(1.1);
}

.quick-action-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Color variations for quick actions */
.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-secondary-light {
    background-color: rgba(108, 117, 125, 0.1);
}

.bg-dark-light {
    background-color: rgba(52, 58, 64, 0.1);
}

.bg-purple-light {
    background-color: rgba(111, 66, 193, 0.1);
}

.text-purple {
    color: #6f42c1;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Sample table styling */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-light {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
}

/* Admin dashboard panels */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

/* Login form styling */
.login-container {
    max-width: 400px;
    margin: 60px auto;
}

/* Error text */
.text-error {
    color: #dc3545;
}

/* Success text */
.text-success {
    color: #198754;
}
