/* Admin Dashboard Styles */
:root {
    --primary-color: #0052a1;
    --secondary-color: #004081;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .sidebar-header img {
    max-height: 50px;
}

.sidebar .sidebar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    padding: 0.7rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-nav .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Content Area */
.content {
    margin-left: 250px;
    padding: 1.5rem;
    transition: all 0.3s;
}

/* Mobile view */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        margin-left: 0;
    }
    
    .content.active {
        margin-left: 250px;
    }
}

/* Toggle Button */
#sidebarCollapse {
    background-color: var(--primary-color);
    border: none;
}

#sidebarCollapse:focus {
    box-shadow: none;
}

/* Navbar */
.admin-navbar {
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Cards */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: var(--light-color);
    font-weight: 600;
}

.table .actions {
    white-space: nowrap;
}

/* Stats Cards */
.stats-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stats-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.stats-card .title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.stats-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 161, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 5px;
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 60px;
}

/* Image Preview */
.img-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: 5px;
}

/* Footer */
.admin-footer {
    margin-left: 250px;
    padding: 1rem 1.5rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-color);
}

@media (max-width: 768px) {
    .admin-footer {
        margin-left: 0;
    }
    
    .admin-footer.active {
        margin-left: 250px;
    }
}
