@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body { 
    background-color: #0d1313; 
    color: #e0f0ed; 
    font-family: 'Share Tech Mono', monospace; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 0; 
    margin: 0;
}

/* Header */
.hq-header { text-align: center; margin: 25px 0 15px 0; }
.hq-header h1 { color: #00ffcc; margin: 0; font-size: 26px; letter-spacing: 1px; }
.subtitle { font-size: 11px; letter-spacing: 3px; color: #88a09c; margin-top: 4px; }

/* Navigation Onglets */
.tab-container { display: flex; width: 100%; max-width: 420px; border-bottom: 2px solid #1a2626; margin-bottom: 15px; }
.tab-btn { 
    flex: 1; background: transparent; border: none; color: #88a09c; 
    padding: 12px; font-family: inherit; font-size: 14px; font-weight: bold; 
    cursor: pointer; transition: all 0.2s; text-align: center;
}
.tab-btn.active { color: #00ffcc; border-bottom: 2px solid #00ffcc; background: rgba(0, 255, 204, 0.03); }

/* Conteneurs */
.container { width: 100%; max-width: 420px; padding: 0 10px; box-sizing: border-box; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.card { background: #111a1a; border: 1px solid #1a2626; padding: 20px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.input-group label { font-size: 13px; color: #a2b7b4; }
.highlight { color: #00ffcc; font-weight: bold; }

/* Inputs */
input[type="text"] { 
    background: #080d0d; color: #fff; border: 1px solid #243535; 
    padding: 12px; border-radius: 4px; outline: none; font-family: inherit; font-size: 15px; box-sizing: border-box; width: 100%;
}
input[type="text"]:focus { border-color: #00ffcc; }

/* Barre de recherche spécifique */
.search-group { margin-bottom: 15px; }
.search-group input { border-color: #00ffcc44; background: #060a0a; text-align: left; padding-left: 15px; color: #00ffcc; }

/* Slider */
input[type="range"] { -webkit-appearance: none; width: 100%; background: #080d0d; height: 6px; border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #00ffcc; border-radius: 50%; cursor: pointer; }

/* Checkboxes */
.section-label { display: block; font-size: 13px; color: #a2b7b4; margin-bottom: 10px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.cyber-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: #ccdcd9; }
.cyber-check input { display: none; }
.cyber-check .square { width: 14px; height: 14px; border: 1px solid #243535; background: #080d0d; border-radius: 2px; display: inline-block; }
.cyber-check input:checked + .square { background: #00ffcc; border-color: #00ffcc; }

/* Boutons */
.main-btn { 
    background: #00ffcc; color: #010a08; border: none; padding: 14px; width: 100%; 
    font-weight: bold; font-family: inherit; font-size: 14px; cursor: pointer; border-radius: 4px; transition: background 0.2s;
}
.main-btn:hover { background: #00e6b8; }

/* Resultats */
.result-box { margin-top: 25px; border-top: 1px dashed #243535; padding-top: 15px; }
.result-box label { font-size: 12px; color: #a2b7b4; display: block; margin-bottom: 6px; }
.output-wrapper { display: flex; gap: 8px; }
.output-wrapper input { flex-grow: 1; font-size: 16px; font-weight: bold; border-color: #00ffcc; background: #060a0a; color: #00ffcc; text-align: center; }
#copyBtn { background: #1a2626; color: #00ffcc; border: 1px solid #00ffcc; border-radius: 4px; padding: 0 15px; font-family: inherit; font-weight: bold; cursor: pointer; }
#copyBtn:hover { background: #00ffcc; color: #000; }
.strength-indicator { font-size: 12px; margin-top: 10px; color: #a2b7b4; }

/* Historique elements */
.history-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #243535; padding-bottom: 10px; }
.history-top h3 { margin: 0; font-size: 15px; color: #00ffcc; }
.clear-btn { background: transparent; color: #ff5555; border: 1px solid #ff5555; padding: 4px 8px; font-family: inherit; font-size: 11px; cursor: pointer; border-radius: 3px; }
.clear-btn:hover { background: rgba(255,85,85,0.1); }

.history-list { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; }
.history-item { 
    background: #080d0d; border: 1px solid #243535; padding: 12px; border-radius: 4px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s;
}
.history-item:hover { background: #101919; border-color: #00ffcc88; }
.item-meta { color: #88a09c; font-size: 11px; display: block; margin-bottom: 2px; }
.item-user { color: #00ffcc; font-weight: bold; margin-left: 5px; }
.item-pass { color: #fff; font-size: 14px; font-weight: bold; word-break: break-all; font-family: monospace; }
.copy-badge { font-size: 10px; color: #00ffcc; border: 1px solid #00ffcc44; padding: 4px 8px; border-radius: 2px; white-space: nowrap; }
