body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f5f7fb;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #111;
    color: white;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.85;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.side-menu {
    position: fixed;
    right: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background: #222;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 900;
}

.side-menu a {
    display: block;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
}

.side-menu a:hover {
    background: #444;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 120px 40px 40px 40px;
}

h1 {
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
}

#vectorButton,
.primary-button {
    display: block;
    margin: 20px auto;
    padding: 12px 28px;
    font-size: 16px;
    background: #3a6df0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#vectorButton:disabled,
.primary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.doc-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-box h3 {
    margin-top: 0;
}

#resumePreview,
#coverPreview {
    text-align: center;
    color: #444;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-image {
    width: 220px;
    max-width: 100%;
    margin-top: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-image:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.profile-card {
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.card-description {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.profile-textarea {
    min-height: 220px;
}

.profile-save-row {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hidden {
    display: none;
}
 .password-gate {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .password-box {
        background: #1e293b;
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        width: 300px;
    }

    .password-box h2 {
        color: #ffffff;
        margin-bottom: 15px;
    }

    .password-box input,
    .password-box button {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
        border: none;
        box-sizing: border-box;
    }

    .password-box input {
        background: #0f172a;
        color: white;
    }

    .password-box button {
        background: #2563eb;
        color: white;
        cursor: pointer;
    }

    .hidden {
        display: none;
    }