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

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #0d1117, #161b22);
    color: white;
    padding: 20px;
}

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="password"] {
    padding: 12px 20px;
    width: 100%;
    font-size: 1.1em;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

.password-input-container {
    position: relative;
}

#toggle-visibility {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
}

.strength-bar-container {
    background: #333;
    border-radius: 6px;
    margin-top: 10px;
    position: relative;
    height: 8px;
}

.strength-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #e74c3c, #f1c40f, #2ecc71);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.criteria-cards {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.card {
    flex: 1;
    margin: 0 5px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    font-weight: bold;
}

.card.fail { background: rgba(255,0,0,0.2); }
.card.warn { background: rgba(255,165,0,0.2); }
.card.pass { background: rgba(0,255,0,0.2); }

button {
    background-color: #00c6ff;
    border: none;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
}

.recommendations-list li {
    margin: 10px 0;
    font-size: 0.95em;
}

.generator-config {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.config-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.config-options label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.length-selector {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.length-selector input[type="range"] {
    width: 100%;
}

.history-list {
    margin-top: 10px;
}

.history-entry {
    padding: 10px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-entry .password-info {
    flex-grow: 1;
}

.history-entry .timestamp {
    font-size: 0.8em;
    color: #888;
}
