@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hiA.woff2) format('woff2');
}

.content {
    background: #eaf6fd;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #49b5e7;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(73, 181, 231, 0.25);
}

.btn:hover {
    background-color: #3a9fd1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(73, 181, 231, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #49b5e7;
    color: #49b5e7;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #49b5e7;
    color: #fff;
}

.heros {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.heros::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(73, 181, 231, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.heros h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 20px;
    color: #0f394c;
    line-height: 1.2;
    font-weight: 700;
}

.heros p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
    margin: 0 auto 40px;
    color: #0f394c;
    opacity: 0.9;
}

.password-generator {
    background-color: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.password-display {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

#password {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px 0 0 8px;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

#password:focus {
    border-color: #49b5e7;
    box-shadow: 0 0 0 3px rgba(73, 181, 231, 0.2);
}

#copy-btn {
    padding: 0 24px;
    background-color: #49b5e7;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

#copy-btn:hover {
    background-color: #3a9fd1;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 24px;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5fbff;
    border: 1px dashed rgba(73, 181, 231, 0.4);
    margin-bottom: 20px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.control-group label:hover {
    background: #e1f2fd;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d9e0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.custom-checkbox .check-icon {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: white;
    font-size: 12px;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #49b5e7;
    border-color: #49b5e7;
}

input[type="checkbox"]:checked + .custom-checkbox .check-icon {
    opacity: 1;
    transform: scale(1);
}

input[type="checkbox"]:focus + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(73, 181, 231, 0.3);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

#length {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

#length::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #49b5e7;
    cursor: pointer;
    transition: all 0.3s ease;
}

#length::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(73, 181, 231, 0.2);
}

#length-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #0f394c;
}

#generate-btn:hover {
    color: #fff;
}

.strength-meter {
    height: 8px;
    background-color: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.strength-bar {
    height: 100%;
    width: 0;
    background-color: #ff6b6b;
    transition: all 0.3s ease;
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #7a8a99;
}

.features {
    background-color: #fff;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 0;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: #0f394c;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #0f394c;
    opacity: 0.8;
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: #f5fbff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(73, 181, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #49b5e7;
    font-size: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #49b5e7;
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: #0f394c;
    font-size: 20px;
    font-weight: 600;
}

.feature-card p {
    color: #0f394c;
    opacity: 0.8;
    font-size: 16px;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.controls {
    gap: 20px;
}

.controls .control-group label {
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {

    .controls {
        gap: 0;
    }

    .control-group {
        margin-bottom: 0;
    }
    
    .password-generator {
        padding: 24px;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .slider-container {
        margin-bottom: 32px;
    }
}

@media (min-width: 768px) {
    
    .control-group:first-child {
        grid-column: 1 / -1;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f394c;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
}