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

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

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #fa709a;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
    font-size: 1rem;
}

.password-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #fa709a;
}

#passwordOutput {
    flex: 1;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    color: #333;
    word-break: break-all;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.btn-copy {
    background: #fa709a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #e85d8b;
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.options {
    margin-bottom: 25px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

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

#lengthSlider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    background: #ddd;
}

#lengthSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fa709a;
    cursor: pointer;
}

#lengthSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fa709a;
    cursor: pointer;
    border: none;
}

#lengthValue {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fa709a;
    min-width: 40px;
    text-align: center;
}

.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fa709a;
}

.checkbox-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.checkbox-item span {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

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

.strength-label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.strength-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    text-align: center;
    margin-top: 8px;
    font-weight: bold;
    font-size: 0.95rem;
}

.btn-generate {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(250, 112, 154, 0.4);
}

.btn-generate:active {
    transform: translateY(-1px);
}

.history-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.btn-clear-history {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-clear-history:hover {
    background: #c82333;
}

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

.history-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}