.tools-layout {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

.tools-sidebar {
    width: 220px;
    background: #fffbe6;
    padding: 60px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.tools-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-menu li {
    margin: 0;
}

.tools-menu-link {
    display: block;
    width: 100%;
    padding: 18px 32px;
    font-size: 14px;
    color: #D84315;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    margin-top: 2px;
}

.tools-menu-link.active,
.tools-menu-link:hover {
    background: #ffd180;
    color: #b32d0f;
    margin-top: 2px;
}

.tools-content {
    flex: 1;
    padding: 56px 40px 40px 40px;
    background: #fff;
    min-width: 0;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Password Generator Styles - Modern, Clean, Responsive */
.pw-title {
    font-size: 2.0rem;
    font-weight: 700;
    color: #D84315;
    margin-top: 50px;
    margin-bottom: 10px;
    text-align: center;
}

.pw-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 28px;
    text-align: center;
}

.pw-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: #fffbe6;
    border-radius: 18px;
    padding: 10px 18px 10px 18px;
    margin: 0 auto 18px auto;
    box-shadow: 0 2px 8px rgba(216, 67, 21, 0.07);
    justify-content: center;
    overflow-x: auto;
    min-width: 0;
}

.pw-input {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-family: 'Inter', monospace;
    font-weight: 600;
    color: #222;
    min-width: 0;
    width: 100%;
    flex: 1 1 0%;
    overflow-x: hidden;
    white-space: nowrap;
    background: transparent;
    border: none;
    outline: none;
    text-overflow: unset;
    transition: font-size 0.2s;
}

.pw-input:focus {
    outline: none;
}

.pw-strength {
    margin-left: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 4px 12px;
    background: #e6f9e6;
    color: #1b7e1b;
    min-width: 70px;
    text-align: center;
}

.pw-refresh {
    margin-left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #D84315;
    transition: color 0.2s;
}

.pw-refresh:hover {
    color: #b32d0f;
}

.pw-copy-btn {
    margin-left: 18px;
    background: #D84315;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(216, 67, 21, 0.07);
}

.pw-copy-btn:hover {
    background: #b32d0f;
}

.pw-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 18px auto;
}

.pw-label {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 8px;
    color: #222;
}

.pw-length {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 8px;
    color: #D84315;
}

.pw-slider {
    flex: 1;
    margin: 0 12px;
}

.pw-char-group {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    justify-content: center;
}

.pw-checkbox {
    accent-color: #D84315;
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.pw-char-label {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Hiệu ứng mặt trời mọc cho logo trong about-header */
.about-header {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.about-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.about-header-logo {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(255, 193, 7, 0.3);
    opacity: 0;
    animation: sunriseLogo 4s linear infinite;
    z-index: 2;
    background: #fff;
    object-fit: contain;
    transform: none;
}

@keyframes sunriseLogo {
    0% {
        opacity: 0;
        top: 100%;
    }

    10% {
        opacity: 1;
        top: 60%;
    }

    30% {
        opacity: 1;
        top: 50px;
    }

    70% {
        opacity: 1;
        top: 50px;
    }

    90% {
        opacity: 0.5;
        top: 0px;
    }

    100% {
        opacity: 0;
        top: -60px;
    }
}

@media (max-width: 900px) {
    .tools-layout {
        flex-direction: column;
    }

    .tools-sidebar {
        width: 100%;
        margin-top: 55px;
        flex-direction: column;
        border-right: none;
        padding: 0;
        justify-content: center;
    }

    .tools-menu {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .tools-menu-link {
        padding: 14px 18px;
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .main-header {
        margin-bottom: 8px;
    }

    .tools-content {
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center;
        padding: 16px !important;
    }

    .pw-box,
    .pw-controls,
    .pw-char-group {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .pw-box {
        flex-direction: column;
        align-items: center;
        padding: 8px 4px;
    }

    .pw-input {
        text-align: center;
    }

    .pw-copy-btn {
        width: 50vw;
        min-width: 120px;
        max-width: 220px;
        font-size: 1rem;
        padding: 10px 0;
        margin-left: 0;
        margin-top: 10px;
    }

    .tools-menu {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100vw;
        margin: 0;
        padding: 0;
        background: #fffbe6;
        border-bottom: 2px solid #ffd180;
    }

    .tools-sidebar {
        width: 100%;
        flex-direction: column;
        margin-top: 55px;
        border-bottom: 2px solid #ffd180;
        padding: 0;
        justify-content: center;
    }
}