:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.scheme-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.scheme-info h2 {
    color: var(--secondary);
    margin-top: 0;
    padding-top: 0;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.scheme-info h3 {
    color: var(--primary);
    margin-top: 25px;
    font-size: 1.3rem;
}

.search-box {
    position: relative;
    z-index: 1;
}

.search-box .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-box .card-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.search-box .card-body {
    padding: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2185d0;
    border-color: #2185d0;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Badge Styles */
.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-success {
    background-color: var(--success);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-primary {
    background-color: var(--primary);
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    padding: 15px;
}

.alert-info {
    background-color: #e7f6fd;
    border-color: #b8e7fb;
    color: #0c5460;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--secondary);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100%;
    z-index: 1;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.admin-sidebar-header h4 {
    color: white;
    margin-bottom: 5px;
}

.admin-sidebar-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    text-decoration: none;
}

.admin-sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.admin-content {
    flex: 1;
    padding: 30px;
    margin-left: 250px;
    background-color: #f5f7fa;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h2 {
    color: var(--secondary);
    margin: 0;
    font-weight: 600;
}

.admin-header p {
    color: #6c757d;
    margin: 5px 0 0;
}

/* Stat Cards */
.stat-card {
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary);
}

.stat-info p {
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--secondary);
}

.table td, .table th {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.card-header h4 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Activity Feed */
.activity-feed {
    list-style: none;
    padding: 0;
}

.feed-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feed-content {
    flex: 1;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.feed-body {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Progress Bars */
.progress {
    border-radius: 3px;
    height: 6px;
    background-color: #f0f3f5;
}

.progress-bar {
    border-radius: 3px;
}

/* List Group */
.list-group-item {
    border: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px !important;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 220px;
    }
    .admin-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    .admin-content {
        margin-left: 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .last-login {
        margin-top: 10px;
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}