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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.password-display input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.password-display input:focus {
    border-color: #ff6b35;
}

.password-display button {
    padding: 15px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.password-display button:hover {
    background: #e55a1f;
}

.password-display button:active {
    transform: scale(0.95);
}

#generate-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    margin-bottom: 30px;
}

#generate-btn:hover {
    opacity: 0.9;
}

#generate-btn:active {
    transform: scale(0.98);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-container label {
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.slider-container label span {
    color: #ff6b35;
    font-weight: 700;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    user-select: none;
}

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

.checkbox-container input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-container label:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast notification for copy feedback */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 50;
}

.toast.show {
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
}
.footer a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.footer a svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}
.footer a:hover {
    text-decoration: underline;
}

/* Bottom footer style: subtle, centered, slightly transparent */
.footer-bottom {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    z-index: 40;
    font-size: 0.9rem;
}
.footer-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #e5e7eb;
    background: rgba(55, 65, 81, 0.9);
    padding: 8px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.footer-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.footer-link:hover {
    background: rgba(31, 41, 55, 0.95);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.footer-link:hover svg {
    transform: scale(1.1);
}

@media (max-width: 420px) {
    .footer-bottom {
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;
        padding: 7px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .password-display input {
        font-size: 0.95rem;
        padding: 12px;
    }
}
