/* admin/css/admin.css */
:root {
    --primary-color: #760202;
    --secondary-color: #5d5d5d;
    --accent-color: #f4e1e1;
    --success-color: #107c10;
    --warning-color: #d83b01;
    --danger-color: #e81123;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

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

.sidebar-header {
    padding: 20px;
    background-color: #760202;
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 600;
}

.sidebar-menu {
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s;
}

.header {
    background-color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stats-card h3 {
    font-size: 1.8rem;
    margin: 10px 0;
    font-weight: 600;
}

.stats-card p {
    color: var(--secondary-color);
    margin: 0;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0063b1;
    border-color: #0063b1;
}

/* Table Styles */
.table th {
    background-color: var(--accent-color);
    border-top: none;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 215, 0.25);
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-scheduled {
    background-color: #e1ecf4;
    color: #0078d7;
}

.status-active {
    background-color: #dff6dd;
    color: #107c10;
}

.status-completed {
    background-color: #f4f4f4;
    color: #5d5d5d;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #dff6dd;
    color: #107c10;
    border-left: 4px solid #107c10;
}

.alert-danger {
    background-color: #fde7e9;
    color: #e81123;
    border-left: 4px solid #e81123;
}

/* Modal Styles */
.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        text-align: center;
    }

    .sidebar-header h3 {
        display: none;
    }

    .sidebar-menu a span {
        display: none;
    }

    .sidebar-menu i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .main-content {
        margin-left: 70px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
    }

    .sidebar.active {
        width: var(--sidebar-width);
    }

    .sidebar.active .sidebar-header h3 {
        display: block;
    }

    .sidebar.active .sidebar-menu a span {
        display: inline;
    }

    .main-content {
        margin-left: 0;
    }

    .toggle-sidebar {
        display: block;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Toggle Button for Mobile */
.toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* List Group Styles */
.list-group-item {
    border: 1px solid #eaeaea;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for alerts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-in-out;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}