/* Chronos View Stylesheet - Premium 3-Column Layout */

.chronos-view {
    padding: 80px 32px 32px;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
}

.chronos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.chronos-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.chronos-header h1 i {
    color: var(--primary);
}

.chronos-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* 3-Column Layout */
.chronos-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    align-items: start;
    width: 100%;
    flex: 1;
}

/* Sidebar Asides */
.chronos-aside-left,
.chronos-aside-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Premium Aside Cards */
.chronos-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chronos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.08);
}

.chronos-card-header {
    padding: 16px 20px;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chronos-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chronos-card-header h3 i {
    color: var(--primary);
    font-size: 16px;
}

.chronos-card-body {
    padding: 20px;
}

.placeholder-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Main content panel */
.chronos-main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

/* Sidebar Tabs Navigation */
.chronos-aside-nav {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.chronos-aside-nav .chronos-tab-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.chronos-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.chronos-tab-btn:hover {
    color: var(--text-main);
}

.chronos-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Rules */
@media (max-width: 1366px) {
    .chronos-layout {
        grid-template-columns: 240px 1fr;
    }
    .chronos-aside-right {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .chronos-view {
        padding: 80px 16px 24px;
    }
    .chronos-layout {
        grid-template-columns: 1fr;
    }
    .chronos-aside-left,
    .chronos-aside-right {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
}


/* ============================================================ */
/* Volontariat Existing CSS - Appended & Scoped                 */
/* ============================================================ */

.vol-container {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vol-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 18px;
    color: var(--text-muted);
    padding: 40px 0;
}

.vol-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vol-periods-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

.vol-periods-grid {
    display: flex;
    gap: 20px;
    min-width: 100%;
}

.vol-period-col {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vol-period-header {
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-weight: 700;
}

.period-color-1 {
    background: #ef4444; /* Rouge (Paires) */
}

.period-color-2 {
    background: #f59e0b; /* Orange (Impaires) */
}

.vol-period-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.vol-period-header span {
    font-size: 12px;
    opacity: 0.9;
}

.vol-section {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.vol-section-sat .vol-section-head {
    background: var(--primary);
    color: white;
}

.vol-section-sun .vol-section-head {
    background: #8b5cf6; /* Violet */
    color: white;
}

.vol-section-hol .vol-section-head {
    background: #0ea5e9; /* Cyan */
    color: white;
}

.vol-section-head {
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.vol-col-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-body-secondary);
    border-bottom: 1px solid var(--border-panel);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.vol-day-row {
    display: flex;
    border-bottom: 1px solid var(--border-panel);
    background: var(--bg-card);
}

.vol-day-row:nth-child(even) {
    background: var(--bg-body-secondary);
}

.vol-day-row:last-child {
    border-bottom: none;
}

.vol-day-date {
    width: 90px;
    padding: 8px;
    border-right: 1px solid var(--border-panel);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.vol-day-slots {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vol-slot-box {
    background: var(--bg-hover);
    border: 1px solid var(--border-panel);
    border-radius: 6px;
    padding: 6px 10px;
    min-height: 34px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.vol-slot-box:not(.is-empty) {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.vol-slot-box.is-mine {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.vol-slot-box.is-fixed {
    background: var(--bg-card);
    border-color: var(--border-color);
    opacity: 0.85;
}

.vol-slot-empty {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.vol-select-off {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 11px;
    outline: none;
}

.vol-btn-register {
    background: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vol-btn-register:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.vol-btn-register:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vol-slot-filled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.vol-name {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.vol-off-badge {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.vol-btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.vol-btn-remove:hover {
    opacity: 1;
}

.vol-quota-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-panel);
}

.vol-quota-section h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.vol-quota-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.vol-quota-card {
    flex: 1;
    min-width: 160px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.vol-quota-header {
    padding: 6px 12px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background: var(--primary);
}

.vol-quota-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vol-quota-count {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.vol-quota-text {
    font-size: 11px;
    font-weight: 500;
}

.vol-quota-alert {
    border-color: #ef4444;
}

.vol-quota-alert .vol-quota-text {
    color: #ef4444;
}

.vol-quota-ok .vol-quota-text {
    color: #10b981;
}

.vol-quota-list {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-panel);
    text-align: left;
    color: var(--text-muted);
    font-size: 11px;
}

.vol-tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.vol-tab-btn:hover {
    color: var(--text-main);
}

.vol-tab-active {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
}

.vol-lock-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
    color: var(--text-muted);
}

.vol-lock-btn:hover {
    opacity: 1;
}

.vol-btn-edit-slot {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.vol-btn-edit-slot:hover {
    opacity: 1;
}
