/* /Panel_Dayz/InitCBuilder/css/InitCBuilder.css */
/* Styles pour l'application Init.c Builder */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(20, 25, 45, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* HEADER */
.app-header {
    background: linear-gradient(90deg, #ff5522 0%, #cc3300 100%);
    padding: 25px 30px;
    color: #fff;
}

.app-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.app-header .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-actions button,
.header-actions a {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.header-actions button:hover,
.header-actions a:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ONGLETS */
.tabs-nav {
    display: flex;
    background: #0f1729;
    overflow-x: auto;
    border-bottom: 2px solid #ff5522;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 85, 34, 0.1);
}

.tab-btn.active {
    color: #ff5522;
    border-bottom-color: #ff5522;
    background: rgba(255, 85, 34, 0.15);
}

/* CONTENU ONGLETS */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    color: #ff5522;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.tab-content h3 {
    color: #00bcd4;
    margin: 20px 0 10px 0;
}

/* INFO BOXES */
.info {
    background: rgba(0, 188, 212, 0.1);
    border-left: 3px solid #00bcd4;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* CARDS DÉMARRAGE */
.start-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.start-card {
    background: #1f2640;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.start-card:hover {
    transform: translateY(-3px);
    border-color: #ff5522;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.start-card h3 {
    color: #fff;
    margin-bottom: 8px;
}

.start-card p {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.start-card select,
.start-card input[type="file"] {
    width: 100%;
    margin-bottom: 10px;
}

/* MODULES (boxes avec toggle) */
.module-box {
    background: #1f2640;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff5522;
}

.module-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #333;
}

.module-content.hidden {
    display: none;
}

/* FORM ROWS */
.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.form-row label {
    min-width: 200px;
    color: #ccc;
    font-size: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: #0f1729;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #ff5522;
}

textarea {
    width: 100%;
    background: #0f1729;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #ff5522;
}

/* BOUTONS */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-back,
.btn-save,
.btn-load,
.btn-reset {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #ff5522;
    color: #fff;
}

.btn-primary:hover {
    background: #e64a1e;
}

.btn-secondary {
    background: #555;
    color: #fff;
}

.btn-secondary:hover {
    background: #666;
}

.btn-success {
    background: #4caf50;
    color: #fff;
}

.btn-success:hover {
    background: #45a045;
}

/* ÉQUIPEMENT CASES */
.equipment-case {
    background: #161b30;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.equipment-case h4 {
    color: #ff5522;
    margin-bottom: 10px;
}

.equipment-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.table-container {
    background: #0f1729;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
}

.table-container span {
    font-weight: 600;
    color: #00bcd4;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.table-container select {
    width: 100%;
    background: #1a1f35;
    border: 1px solid #333;
    color: #fff;
    padding: 5px;
    font-size: 12px;
}

/* CLASSE BOX */
.class-box {
    background: #161b30;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.class-box .class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.class-box .class-header h4 {
    color: #ff5522;
}

.btn-remove-class,
.btn-remove-teleport {
    background: #c0392b;
    color: #fff;
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove-class:hover,
.btn-remove-teleport:hover {
    background: #a93022;
}

/* APERÇU */
.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preview-box {
    background: #0a0e1f;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow: auto;
}

.preview-box pre {
    color: #b8c7e0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideIn 0.3s;
}

.notification.error {
    background: #f44336;
}

.notification.hidden {
    display: none;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row label {
        min-width: 100%;
    }
}

code {
    background: #0f1729;
    color: #ff5522;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}
