/* Variables */
:root {
    --sidebar-width: 250px;
    --header-height: 60px;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-color: #1f2937;
    --sidebar-bg: #ffffff;
    --body-bg: #f3f4f6;
}

/* Layout */
body {
    background-color: var(--body-bg);
    font-family: 'Inter', sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-item {
    padding: 0 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f9fafb;
    color: var(--primary-color);
}

.nav-link.active {
    background-color: #f3f4ff;
    color: var(--primary-color);
}

.nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

/* Header */
.content-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Cards */
.stats-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-card-title {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stats-card-value {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stats-card-trend {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

/* Charts and Tables */
.chart-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Activités récentes */
.data-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.data-list-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.data-list-item:last-child {
    border-bottom: none;
}

.data-list-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.data-list-icon i {
    font-size: 1rem;
}

.data-list-content {
    flex-grow: 1;
    min-width: 0;
}

.data-list-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #212529;
}

.data-list-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}

.data-list-subtitle span {
    display: inline-block;
    margin-right: 1rem;
}

.data-list-subtitle i {
    opacity: 0.5;
}

/* Couleurs des icônes */
.text-success { color: #28a745; }
.text-info { color: #17a2b8; }
.text-danger { color: #dc3545; }
.text-primary { color: #007bff; }
.text-warning { color: #ffc107; }
.text-secondary { color: #6c757d; }

/* Animation d'apparition */
.data-list-item {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .data-list-subtitle span {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* État vide */
.data-list-item .text-center {
    width: 100%;
}

.data-list-item .text-center i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

.lead {
    font-size: 12px;
    margin-bottom: 1rem;
}

/* FullCalendar Custom Styles */
.fc {
    --fc-border-color: #e5e7eb;
    --fc-button-bg-color: #fff;
    --fc-button-border-color: #e5e7eb;
    --fc-button-hover-bg-color: #f3f4f6;
    --fc-button-hover-border-color: #d1d5db;
    --fc-button-active-bg-color: #2563eb;
    --fc-button-active-border-color: #2563eb;
    --fc-event-bg-color: #3b82f6;
    --fc-event-border-color: #3b82f6;
    --fc-today-bg-color: #eff6ff;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header/Toolbar Styles */
.fc .fc-toolbar {
    background: #f8fafc;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem !important;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0.5rem 0.5rem 0 0;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #1e293b;
}

/* Button Styles */
.fc .fc-button {
    padding: 0.625rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    height: auto;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fc .fc-button-primary {
    background: #fff;
    border-color: #e5e7eb;
    color: #4b5563;
}

.fc .fc-button-primary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Calendar Header */
.fc .fc-col-header {
    background: #f8fafc;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.fc .fc-col-header-cell {
    padding: 1rem 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: transparent;
}

/* Day Cells */
.fc .fc-daygrid-day {
    min-height: 100px;
}

.fc .fc-daygrid-day-frame {
    padding: 0.5rem;
}

.fc .fc-daygrid-day-top {
    padding: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.fc .fc-day-today {
    background: #eff6ff !important;
}

.fc .fc-day-today .fc-daygrid-day-top a {
    background: #2563eb;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Events */
.fc .fc-event {
    background: #3b82f6;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    margin: 2px 0;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.fc .fc-event-time {
    font-weight: 600;
}

.fc .fc-event-title {
    font-weight: 500;
}

.fc .fc-daygrid-event-dot {
    display: none;
}

/* More Link */
.fc .fc-more-link {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.fc .fc-more-link:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Other Days */
.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.4;
}

/* Button Groups */
.fc .fc-button-group {
    gap: 0.375rem;
}

.fc .fc-button-group .fc-button {
    border-radius: 0.5rem !important;
}

/* Week Numbers */
.fc .fc-daygrid-week-number {
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fc {
        padding: 1rem;
    }

    .fc .fc-toolbar {
        margin: -1rem -1rem 1rem -1rem !important;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.25rem !important;
        text-align: center;
    }

    .fc .fc-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
} 