/* assets/css/custom.css */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --warning-gradient: linear-gradient(135deg, #fad961 0%, #f76b1c 100%);
    --danger-gradient: linear-gradient(135deg, #f43b47 0%, #453a94 100%);
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-primary-gradient {
    background: var(--primary-gradient);
}

.bg-secondary-gradient {
    background: var(--secondary-gradient);
}

.bg-success-gradient {
    background: var(--success-gradient);
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 250px;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    border: none;
}

.card-header.bg-success {
    background: var(--success-gradient) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #3b8dff 0%, #6b3bff 100%) !important;
}

.card-header.bg-warning {
    background: var(--warning-gradient) !important;
}

/* Stats Cards */
.stats-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.stats-card:hover::before {
    transform: rotate(45deg) translate(10%, 10%);
}

.stats-card i {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: #333;
}

.btn-info {
    background: linear-gradient(135deg, #3b8dff 0%, #6b3bff 100%);
    color: white;
}

.btn-action {
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Tables */
.table-responsive {
    border-radius: 15px;
    background: white;
    padding: 15px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
    color: #333;
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
    color: #333;
}

.badge.bg-info {
    background: linear-gradient(135deg, #3b8dff 0%, #6b3bff 100%) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

/* Alert Customization */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: var(--success-gradient);
    color: #333;
}

.alert-danger {
    background: var(--danger-gradient);
    color: white;
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Time Slots */
.time-slot {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 0;
    border-left: 4px solid #667eea;
}

.time-slot.available {
    border-left-color: #28a745;
}

.time-slot.unavailable {
    border-left-color: #dc3545;
    opacity: 0.6;
}

/* Print Styles */
@media print {
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}