/* Floredac - Main Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar .nav-link {
    color: #495057;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom-width: 1px;
}

/* Status badges */
.badge-status-pending { background-color: #ffc107; color: #000; }
.badge-status-active { background-color: #198754; }
.badge-status-inactive { background-color: #6c757d; }
.badge-status-draft { background-color: #6c757d; }
.badge-status-pending_generation { background-color: #0dcaf0; color: #000; }
.badge-status-generating { background-color: #fd7e14; }
.badge-status-generated { background-color: #198754; }
.badge-status-editing { background-color: #0d6efd; }
.badge-status-ready { background-color: #6610f2; }
.badge-status-publishing { background-color: #fd7e14; }
.badge-status-published { background-color: #198754; }
.badge-status-failed { background-color: #dc3545; }

/* Loader overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

/* Thumbnail selection */
.media-card {
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s;
    border-radius: 8px;
    overflow: hidden;
}

.media-card:hover {
    border-color: #0d6efd;
}

.media-card.selected {
    border-color: #198754;
}

.media-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #198754;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.3;
}

/* Thématiques autocomplete */
.thematique-autocomplete {
    position: relative;
}

.thematique-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.thematique-badge {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.thematique-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.thematique-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.thematique-dropdown-item:hover {
    background-color: #e9ecef;
}

.thematique-dropdown-create {
    color: #0d6efd;
    border-top: 1px solid #dee2e6;
}
