/* Styles pour le modal de version - Dark theme */

/* Le modal de version utilise .modal.show + .modal-dialog (Bootstrap-like) */
/* Les styles génériques .modal / .modal-content sont dans style.css */

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 800px;
}

/* Override spécifique pour le modal de version (structure Bootstrap-like) */
.modal-dialog .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-dialog .modal-header {
    border-bottom: 1px solid var(--border-subtle, #28283a);
}

.modal-dialog .modal-header.bg-primary {
    background-color: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.modal-dialog .modal-header.text-white {
    color: var(--text-primary, #e8e8ee);
}

.modal-dialog .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-dialog .modal-footer {
    border-top: 1px solid var(--border-subtle, #28283a);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.btn-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-secondary, #a0a0b0);
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 1em;
    height: 1em;
}

.btn-close:hover {
    color: var(--danger, #ef4444);
    opacity: 1;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Badges version */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge.bg-success {
    background-color: var(--success, #10b981);
}

.badge.bg-primary {
    background-color: var(--accent-primary, #00d9ff);
    color: #0a0a0f;
}

.badge.bg-danger {
    background-color: var(--danger, #ef4444);
}

.badge.bg-secondary {
    background-color: rgba(160, 160, 176, 0.2);
    color: var(--text-secondary, #a0a0b0);
}

/* Utilities */
.fs-5 { font-size: 1.25rem; }
.ms-2 { margin-left: 0.5rem; }
.me-2 { margin-right: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.fw-bold { font-weight: 700; }

.text-muted {
    color: var(--text-tertiary, #707080);
}

.text-success {
    color: var(--success, #10b981);
}

.text-warning {
    color: var(--warning, #f59e0b);
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-warning {
    color: var(--warning, #f59e0b);
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

body.modal-open {
    overflow: hidden;
}
