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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.password-display {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.password-display input {
    flex: 1;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 1px;
    min-width: 0;
}

.password-display input:focus {
    outline: none;
    border-color: #00d9ff;
}

.copy-btn {
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
}

.copy-btn.copied {
    background: #00ff88;
    border-color: #00ff88;
    color: #1a1a2e;
}

.strength-meter {
    margin-bottom: 25px;
}

.strength-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--strength, 0%);
    background: var(--strength-color, #ff4757);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.options-section {
    margin-bottom: 25px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.option-row label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.length-control input[type="range"] {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.length-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.4);
}

.length-control span {
    min-width: 30px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Consolas', monospace;
}

.checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-color: transparent;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: bold;
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-icon {
    font-size: 16px;
}

.history-section {
    margin-top: 25px;
}

.history-section h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    word-break: break-all;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.history-item::after {
    content: 'Click to copy';
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.history-item:hover::after {
    opacity: 1;
}

.footer {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00d9ff;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
    }
    
    .checkboxes {
        grid-template-columns: 1fr;
    }
    
    .password-display input {
        font-size: 14px;
        padding: 14px;
        letter-spacing: 0.5px;
    }
    
    .option-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .length-control {
        width: 100%;
    }
    
    .length-control input[type="range"] {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 360px) {
    .password-display {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}