* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Liberation Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* LANGUAGE SELECTOR */
.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.lang-selector a {
    padding: 6px 12px;
    text-decoration: none;
    color: #595959;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-selector a:hover {
    background: #F0F2F5;
    color: #262626;
}

.lang-selector a.active {
    background: #1890FF;
    color: white;
}

/* LOGIN PAGE - Style exact du fichier uploadé */
.login-container {
    width: 100%;
    max-width: 400px;
    background: transparent;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #BFBFBF;
    font-size: 14px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 20px 12px 35px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    color: #6f6f6f;
    background: white;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #BFBFBF;
}

.input-group input:focus {
    outline: none;
    border-color: #1890FF;
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.4);
}

.login-button {
    width: 100%;
    padding: 10px;
    background: #1890FF;
    border: 1px solid #1890FF;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.login-button:active {
    background-color: #096dd9;
    transform: translateY(0);
}

.login-button i {
    font-size: 14px;
}

/* DASHBOARD */
.container {
    width: 100%;
    max-width: 900px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F2F5;
}

.header h1 {
    font-size: 24px;
    color: #262626;
    margin-bottom: 5px;
    font-weight: 600;
}

.header p {
    color: #8C8C8C;
    font-size: 14px;
}

.stats-bar {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #FAFAFA;
    border-radius: 4px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #8C8C8C;
    font-size: 13px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.stat-success {
    color: #52c41a;
}

.stat-danger {
    color: #ff4d4f;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.action-buttons .btn {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8C8C8C;
    font-size: 14px;
}

/* FILES LIST */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    background: #FAFAFA;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
}

/* HOVER REMOVED - No border change on hover */

.file-item.disabled {
    opacity: 0.6;
}

.file-main {
    margin-bottom: 15px;
}

.file-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.file-title h3 {
    font-size: 16px;
    color: #262626;
    font-weight: 600;
    margin: 0;
}

.file-description {
    color: #595959;
    font-size: 13px;
    line-height: 1.6;
}

.file-details {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #F0F2F5;
}

.detail-label {
    color: #8C8C8C;
    font-weight: 500;
}

.detail-value {
    color: #262626;
    text-align: right;
}

.file-key-box {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #D9D9D9;
}

.file-key-box:hover {
    border-color: #1890FF;
    background: #f0f5ff;
}

.key-label {
    color: #8C8C8C;
    font-size: 11px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-value {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #262626;
    word-break: break-all;
}

/* BOUTONS D'ACTION AMELIORES */
.file-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #D9D9D9;
}

.btn-action {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-action:active {
    transform: translateY(0);
}

/* Update button - Bleu */
.btn-update {
    background: #1890FF;
    color: white;
}

.btn-update:hover {
    background: #40a9ff;
}

/* Enable button - Vert */
.btn-enable {
    background: #52c41a;
    color: white;
}

.btn-enable:hover {
    background: #73d13d;
}

/* Disable button - Orange */
.btn-disable {
    background: #faad14;
    color: white;
}

.btn-disable:hover {
    background: #ffc53d;
}

/* Delete button - Rouge */
.btn-delete {
    background: #ff4d4f;
    color: white;
}

.btn-delete:hover {
    background: #ff7875;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #1890FF;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: #8C8C8C;
    color: white;
}

.btn-secondary:hover {
    background: #595959;
}

.btn-success {
    background: #52c41a;
    color: white;
}

.btn-success:hover {
    background: #73d13d;
}

.btn-danger {
    background: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background: #ff7875;
}

.btn-warning {
    background: #faad14;
    color: white;
}

.btn-warning:hover {
    background: #ffc53d;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.badge-danger {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #595959;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    color: #262626;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1890FF;
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.4);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.help-text {
    font-size: 12px;
    color: #8C8C8C;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* MODE SELECTOR */
.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-option {
    padding: 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.mode-option:hover {
    border-color: #1890FF;
    background: #f0f5ff;
}

.mode-option.selected {
    border-color: #1890FF;
    background: #e6f7ff;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-content strong {
    display: block;
    color: #262626;
    margin-bottom: 4px;
    font-size: 14px;
}

.mode-content p {
    color: #8C8C8C;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

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

.alert-danger {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.alert-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0050b3;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #262626;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .lang-selector {
        top: 10px;
        right: 10px;
    }

    .card {
        padding: 20px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .file-actions {
        flex-direction: column;
    }

    .file-actions .btn-action {
        width: 100%;
    }

    .mode-selector {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}
