/* StaffAI BD - 首頁樣式（Dark Theme） */

/* ===== Override base for dark theme ===== */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: #0a0a0a;
    color: #e5e5e5;
    min-height: 100vh;
}

/* ===== Top Navigation ===== */
.top-nav {
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.logo-img {
    height: 24px;
    opacity: 0.9;
    filter: brightness(1.1);
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Hero Section ===== */
.hero {
    width: 100%;
    text-align: center;
    padding: 48px 24px 40px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(145, 215, 217, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-greeting {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 620px;
    padding: 0 24px 40px;
    position: relative;
    z-index: 2;
}

/* ===== Steps Form ===== */
.steps-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Step Card ===== */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.step-card:focus-within {
    border-color: rgba(145, 215, 217, 0.3);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

.step-body {
    padding: 12px 20px 20px;
}

/* ===== Region Toggle (Dark) ===== */
.region-toggle {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 12px;
}

.region-btn {
    padding: 7px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.region-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.region-btn.active {
    background: #fff;
    color: #0a0a0a;
    font-weight: 600;
}

/* ===== Dark Inputs ===== */
.step-body input[type="text"],
.step-body input[type="email"],
.step-body textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border-radius: 10px;
}

.step-body input:focus,
.step-body textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(145, 215, 217, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.step-body input::placeholder,
.step-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-wrapper {
    position: relative;
}

/* ===== Input Suffix Group (Dark) ===== */
.step-body .input-suffix-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.step-body .input-suffix-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(145, 215, 217, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.step-body .input-suffix-group input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 12px 16px;
    outline: none;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #e5e5e5;
}

.input-suffix {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px 12px 2px;
    white-space: nowrap;
    user-select: none;
}

.input-suffix-select {
    border: none;
    background: transparent;
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 20px 12px 0;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    flex: 0 0 auto;
    width: auto;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.input-suffix-select option {
    background: #1a1a1a;
    color: #e5e5e5;
}

/* ===== CC Row ===== */
.cc-row {
    margin-top: 12px;
}

.cc-row label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 6px;
}

/* ===== Hints (Dark) ===== */
.step-body .hint {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin-top: 6px;
}

.step-body .hint code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
}

.required {
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

.optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: none;
}

/* ===== Autocomplete (Dark) ===== */
.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    padding: 4px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(145, 215, 217, 0.08);
}

.ac-name {
    font-size: 14px;
    color: #e5e5e5;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-tag {
    font-size: 11px;
    color: var(--primary);
    background: rgba(145, 215, 217, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-tag-gov {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== File Upload (Dark) ===== */
.file-upload-section {
    margin-top: 16px;
}

.file-upload-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.upload-area {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(145, 215, 217, 0.03);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(145, 215, 217, 0.06);
}

.upload-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.upload-content svg {
    flex-shrink: 0;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin-left: auto;
}

.uploaded-files {
    margin-top: 8px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(145, 215, 217, 0.06);
    border: 1px solid rgba(145, 215, 217, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

.uploaded-file .remove-file {
    margin-left: auto;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    border: none;
    font-size: 16px;
    transition: color 0.15s;
}

.uploaded-file .remove-file:hover {
    color: var(--error);
}

/* ===== Submit Button ===== */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.submit-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-btn .spinner {
    border-color: rgba(10, 10, 10, 0.2);
    border-top-color: #0a0a0a;
}

/* ===== Success Card (Dark) ===== */
.success-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: none;
    text-align: center;
    display: none;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon svg {
    stroke: var(--success);
}

.success-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.success-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
}

.success-card .btn-primary {
    background: #fff;
    color: #0a0a0a;
    border: none;
}

.success-card .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Footer (Dark) ===== */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 32px;
    padding-bottom: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.sessions-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.15s;
}

.sessions-link:hover {
    color: var(--primary);
}

.footer a {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.15s;
}

.footer a:hover {
    color: var(--primary);
}

.footer p {
    width: 100%;
    margin-top: 4px;
    text-align: center;
}

.app-version {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    margin-left: 4px;
}

/* ===== Language Switcher (Dark) ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

.lang-btn {
    padding: 4px 12px;
    min-height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.4;
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    font-weight: 600;
}


/* ===== Profile hint (proposal page) ===== */
.profile-hint-group .profile-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.profile-hint-group .profile-hint a {
    color: var(--primary-darker);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.profile-hint-group .profile-hint a:hover {
    color: var(--primary);
}

.profile-hint-group .profile-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--primary-darker);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.profile-hint-group .profile-link:hover {
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero { padding: 36px 20px 32px; }
    .hero-greeting { font-size: 28px; }
    .container { max-width: 100%; padding: 0 16px 32px; }
    .step-card { border-radius: 12px; }
    .autocomplete-list { max-height: 200px; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 12px 12px; gap: 6px; }
    .nav-right { gap: 6px; }
    .nav-left .logo { gap: 6px; }
    .logo-text { font-size: 16px; }
    .logo-img { height: 18px; }
    .logo-divider { height: 16px; }
    .lang-btn { padding: 3px 6px; font-size: 10px; min-height: 24px; }
    .user-login-btn { padding: 4px 10px; font-size: 11px; }

    .hero { padding: 28px 16px 24px; }
    .hero-greeting { font-size: 24px; }
    .hero-subtitle { font-size: 13px; }

    .container { padding: 0 10px 24px; }
    .step-header { padding: 12px 16px 0; }
    .step-body { padding: 10px 16px 16px; }
    .step-title { font-size: 13px; }

    .submit-btn { padding: 14px 20px; border-radius: 10px; }

    .input-suffix { font-size: 11px; }
    .input-suffix-select { font-size: 11px; }
    .autocomplete-item { min-height: 44px; }
    .upload-content { flex-wrap: wrap; }
    .upload-hint { margin-left: 30px; }

}
