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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

main {
    padding: 3rem 0;
}

.hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-single {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.generator-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

.generator-card h2 {
    color: #1e3c72;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.password-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.password-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1e3c72;
    background-color: #f8f9ff;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.copy-btn {
    padding: 1rem 1.5rem;
    background-color: #64b5f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover:not(:disabled) {
    background-color: #42a5f5;
    transform: scale(1.05);
}

.copy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings {
    background-color: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.option {
    margin-bottom: 1rem;
}

.option:last-child {
    margin-bottom: 0;
}

.option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
    font-weight: 500;
    color: #333;
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.option input[type="checkbox"]:hover {
    scale: 1.1;
}

.slider-container {
    margin-bottom: 2rem;
}

.slider-container label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #1e3c72;
}

#lengthValue {
    color: #667eea;
    font-weight: bold;
}

#lengthSlider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 1rem;
}

#lengthSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#lengthSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #667eea;
}

#lengthSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#lengthSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #667eea;
}

.length-indicators {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: bold;
}

.weak {
    color: #ff6b6b;
}

.medium {
    color: #ffa500;
}

.strong {
    color: #51cf66;
}

.btn-generate {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-generate:active:not(:disabled) {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

footer {
    background-color: rgba(30, 60, 114, 0.9);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #bcd7ff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(188,215,255,0.25);
    padding-bottom: 2px;
}

footer a:hover {
    color: #ffffff;
    border-bottom-color: rgba(188,215,255,0.6);
    text-decoration: none;
}

/* Responzivní design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .generator-card {
        padding: 1.5rem;
    }

    .password-display {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: 1rem;
    }

    .generator-card h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .password-input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .settings {
        padding: 1rem;
    }

    .option label {
        font-size: 0.9rem;
    }
}

