/* Styles pour la gestion des événements inspirés de la frise */

.events-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 112px);
    padding: 20px 0;
}

.events-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.events-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
}

.events-header .subtitle {
    text-align: center;
    opacity: 0.9;
    margin-top: 10px;
    font-size: 1.1rem;
}

.events-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.events-actions .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.events-actions .btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}

.events-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.events-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow: hidden;
    overflow-x: hidden;
}

/* Override Bootstrap table-responsive to hide horizontal scroll */
.table-responsive {
    overflow-x: hidden !important;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.events-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.events-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.events-table th.col-id {
    width: auto;
    text-align: center;
    min-width: 35px;
}

.events-table th.col-title {
    width: auto;
}

.events-table th.col-date {
    width: auto;
}

.events-table th.col-count {
    width: auto;
    text-align: center;
    min-width: 100px;
}

.events-table th.col-events {
    width: auto;
    text-align: center;
}

.events-table th.col-themes {
    width: auto;
    text-align: center;
}

.events-table th.col-periods {
    width: auto;
    text-align: center;
}

.events-table th.col-status {
    width: auto;
    text-align: center;
}

.events-table th.col-actions {
    width: auto;
    text-align: center;
}

.events-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

/* Hover désactivé pour les tableaux de génération IA */
.ai-generation-layout .events-table tbody tr:hover {
    background: inherit;
    transform: none;
}

/* Hover normal pour les autres tableaux */
.events-table tbody tr:hover:not(.ai-generation-layout .events-table tbody tr) {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    transform: scale(1.005);
}

.events-table tbody tr.bc-event {
    position: relative;
}

.events-table tbody tr.bc-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.events-table td {
    padding: 20px;
    border: none;
    vertical-align: top;
}

.event-id {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
}

.event-main-cell {
    padding-right: 25px;
}

.event-main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 5px;
}

.event-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.event-meta-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.meta-tag.wikipedia {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.meta-tag.bc {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.event-date-cell {
    text-align: center;
}

.event-stat-cell,
.theme-stat-cell,
.period-stat-cell {
    text-align: center;
    padding: 12px 8px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid;
    min-width: 60px;
    justify-content: center;
}

.stat-badge.events {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.stat-badge.themes {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.stat-badge.periods {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.stat-badge i {
    font-size: 0.9rem;
}

.stat-badge .stat-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.event-date {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
    margin-bottom: 8px;
}

.event-date.bc-date {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.event-created {
    color: #888;
    font-size: 0.75rem;
    margin-top: 5px;
}

.event-status-cell {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
}

.status-badge.public {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-badge.private {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.event-count-cell {
    text-align: center;
}

.event-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.count-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.event-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    z-index: 10;
}

.event-importance-cell {
    text-align: center;
}

.importance-badge {
    display: inline-flex;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.importance-badge i {
    font-size: 0.8rem;
}

.events-table th.col-importance {
    width: auto;
    text-align: center;
    min-width: 120px;
}

.event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.event-detail-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0 !important;
    font-weight: normal !important;
}

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.preselected-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.event-actions-cell {
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.action-btn.view {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.action-btn.view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.action-btn.edit {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
}

.action-btn.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.action-btn.delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.action-btn.delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Bulk Selection Styles */
.bulk-actions {
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-actions .btn {
    margin: 0;
}

.bulk-actions .btn-danger {
    background: rgba(255, 255, 255, 0.9);
    color: #dc3545;
    border: none;
    font-weight: 600;
}

.bulk-actions .btn-danger:hover {
    background: white;
    color: #dc3545;
}

.bulk-actions .btn-outline-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.bulk-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.col-select {
    width: 40px;
    text-align: center;
}

.col-select input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #007bff;
}

.event-checkbox {
    transform: scale(1.2);
    accent-color: #007bff;
}

.action-btn.impersonate {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white;
}

.action-btn.impersonate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.event-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
}

.event-badge.public {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.event-badge.private {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.event-badge.wikipedia {
    background: #cce5ff;
    color: #0066cc;
    border-color: #99d6ff;
}

.event-badge.bc {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.event-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.event-actions .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid;
    min-width: 80px;
}

.event-actions .btn-view {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.event-actions .btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.event-actions .btn-edit {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    border-color: #ffc107;
}

.event-actions .btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.event-actions .btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

.event-actions .btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    margin-bottom: 30px;
}

.empty-state .btn {
    padding: 12px 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* Styles pour la page de détail */
.event-detail-container {
    margin-top: 30px;
}

.event-detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.event-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}

.event-detail-card.bc-event::before {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 30px 20px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-bottom: 1px solid #eee;
}

.event-detail-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.event-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-detail-date {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    white-space: nowrap;
}

.event-detail-date.bc-date {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.event-detail-body {
    padding: 30px;
}

.event-detail-section {
    margin-bottom: 30px;
}

.event-detail-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.event-detail-section h4 {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-detail-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007aff;
    line-height: 1.6;
    color: #555;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.event-detail-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.compact-info-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.compact-info-group h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #2c3e50;
}

.compact-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.compact-info-row:last-child {
    border-bottom: none;
}

.compact-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.compact-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.mini-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.mini-badge.wikipedia {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.mini-badge.bc {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.mini-badge.secondary {
    background: #f8f9fa;
    color: #666;
    border-color: #ddd;
}

.event-detail-info,
.event-detail-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.event-detail-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.event-badge.secondary {
    background: #f8f9fa;
    color: #666;
    border-color: #ddd;
}

/* Styles pour le formulaire d'édition */
.event-form-container {
    margin-top: 30px;
}

.event-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
}

.event-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}

.event-form-card.bc-event::before {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.event-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-compact-grid .form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-control[readonly] {
    background: #f8f9fa;
    color: #666;
}

.form-control::placeholder {
    color: #999;
}

.form-check-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-check-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: #e8f0ff;
    border-color: #007aff;
}

.form-check-input {
    margin: 0;
    transform: scale(1.2);
}

.form-check-label {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.btn.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn.btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* Styles pour le formulaire compact inspiré de la vue */
.compact-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.compact-form-row:last-child {
    border-bottom: none;
}

.form-control-compact {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    max-width: 200px;
}

.form-control-compact:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.compact-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-label-compact {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Styles ultra-compacts */
.event-form-ultra-compact {
    padding: 20px;
}

.ultra-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ultra-compact-group {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ultra-compact-group h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.ultra-compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}

.ultra-compact-row:last-child {
    border-bottom: none;
}

.ultra-label {
    font-weight: 500;
    color: #666;
    font-size: 0.8rem;
    min-width: 60px;
}

.ultra-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.8rem;
}

.ultra-input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 120px;
    transition: all 0.3s ease;
}

.ultra-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.ultra-textarea {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 120px;
    resize: vertical;
    min-height: 40px;
    transition: all 0.3s ease;
}

.ultra-textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.ultra-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ultra-check-label {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    font-size: 0.8rem;
}

.ultra-form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-ultra {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ultra-primary {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
}

.btn-ultra-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-ultra-secondary {
    background: #6c757d;
    color: white;
}

.btn-ultra-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Styles medium-compact (entre-deux) */
.event-form-medium-compact {
    padding: 25px;
}

.medium-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.medium-compact-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.medium-compact-group h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.medium-compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.medium-compact-row:last-child {
    border-bottom: none;
}

.medium-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    min-width: 80px;
}

.medium-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.medium-input {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 140px;
    transition: all 0.3s ease;
}

/* Plus de place pour les champs du bloc Informations générales */
.medium-compact-group:first-child .medium-input {
    width: 280px;
}

.medium-compact-group:first-child .medium-textarea {
    width: 280px;
    min-height: 80px;
}

.medium-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.medium-textarea {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 140px;
    resize: vertical;
    min-height: 45px;
    transition: all 0.3s ease;
}

.medium-textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.medium-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.medium-check-label {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    font-size: 0.9rem;
}

.medium-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-medium {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-medium-primary {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
}

.btn-medium-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-medium-secondary {
    background: #6c757d;
    color: white;
}

.btn-medium-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-medium-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.btn-medium-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1c6d32 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .events-table-container {
        border-radius: 0;
        margin: 20px -15px;
    }
    
    .events-header h1 {
        font-size: 2rem;
    }
    
    .events-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .events-table th,
    .events-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .event-title-cell .event-title {
        font-size: 1rem;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .event-actions .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Disposition 3 colonnes pour les formulaires avec thèmes */
.event-form-three-columns .medium-compact-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Section thèmes qui s'étend sur 2 lignes */
.theme-group-tall {
    grid-row: span 2;
}

/* Styles pour la sélection des thèmes */
.theme-selector-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.theme-search-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.theme-search-container {
    position: relative;
    width: 100%;
}

.theme-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-search-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.theme-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007aff;
    font-size: 16px;
}

.theme-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #007aff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.3);
}

.selected-count {
    font-size: 16px;
    font-weight: 700;
}

.total-count {
    opacity: 0.8;
}

.themes-selection {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}

.themes-selection::-webkit-scrollbar {
    width: 6px;
}

.themes-selection::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.themes-selection::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.themes-selection::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.theme-checkbox {
    margin: 0;
    transform: scale(1.2);
}

.theme-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.importance-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    min-width: 80px;
}

.importance-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Animation pour l'apparition des sélecteurs d'importance */
.importance-select[style*="display: inline-block"] {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Message "Aucun thème trouvé" */
.no-results-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
}

.no-results-message i {
    margin-right: 8px;
    opacity: 0.7;
}

/* Message "Aucun thème disponible" */
.no-themes-message {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
}

.no-themes-message i {
    font-size: 2rem;
    color: #007aff;
    margin-bottom: 10px;
    display: block;
}

.no-themes-message p {
    margin: 0;
    font-size: 1.1rem;
}

.no-themes-message a {
    color: #007aff;
    text-decoration: none;
    font-weight: 600;
}

.no-themes-message a:hover {
    text-decoration: underline;
}

/* Styles pour les badges de statistiques larges (utilisés dans chat admin) */
.stat-badge-large {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid;
    transition: all 0.3s ease;
}

.stat-badge-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-badge-large.primary {
    border-color: #007aff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8faff 100%);
}

.stat-badge-large.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.stat-badge-large.warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #fffef8 100%);
}

.stat-badge-large.info {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #f8fdff 100%);
}

.stat-badge-large .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.stat-badge-large .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Carte de maintenance pour les actions administratives */
.maintenance-section {
    margin-top: 30px;
}

.maintenance-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffc107;
}

.maintenance-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-card h4 i {
    color: #ffc107;
    font-size: 1.2rem;
}

.maintenance-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.maintenance-card .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.maintenance-card .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
}

/* Style pour les textes des badges de statistiques */
.stat-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Style spécifique pour le bouton Chronos (gamepad) */
.action-btn.view:has(.fa-gamepad) {
    background: linear-gradient(135deg, #66a9ea 0%, #000000 100%) !important;
}