/* General Styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0054b4, #007bff);
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    color: #0054b4;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #007bff;
    margin-top: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    color: #0054b4;
    margin-bottom: 0.75rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 1.5rem;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

/* Buttons */
.btn-primary {
    background-color: #0054b4;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #003d80;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #0054b4;
}
nav{
    position: fixed;
}

/* Tables */
.table {
    margin-top: 1rem;
}

.table th {
    background-color: #e9ecef;
    color: #0054b4;
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, #ffffff, #e9ecef);
    padding: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card .card {
    border: none;
    border-radius: 8px;
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-form .invalid-feedback {
    font-size: 0.875rem;
}

/* Admin and Message Log */
#message-log {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.message-timestamp {
    color: #6c757d;
    font-size: 0.8rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Footer */
footer {
    background-color: #343a40;
    padding: 2rem 0;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e9ecef;
}

/* Sidebar Specific Styles */
.sidebar {
    width: 250px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    background-color: #0054b4;
}

.sidebar .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar .profile-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar .avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .nav-link {
    transition: background 0.3s;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
}