/* ---------- Modern CV Portal - Premium Design ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* BPG Nino Mtavruli Georgian Font */
@font-face {
    font-family: 'BPG Nino Mtavruli';
    src: url('bpg-nino-mtavruli.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Dark theme - sophisticated palette */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1c1c1f;
    --bg-elevated: #1f1f23;
    
    /* Accent colors */
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    /* Text colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(99, 102, 241, 0.3);
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Layout ---------- */
.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    min-height: calc(100vh - 80px);
}

/* ---------- Header ---------- */
.header {
    text-align: center;
    margin-bottom: 56px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1;
}

.title {
    font-family: 'BPG Nino Mtavruli', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tag-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    padding: 6px 14px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 16px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ---------- Steps ---------- */
.step {
    opacity: 0;
    transform: translateY(16px);
    transition: var(--transition-slow);
    display: none;
}

.step.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.step-header p {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    font-style: italic;
}

/* ---------- Vacancy Selection - Modern Grid ---------- */
.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 540px) {
    .vacancy-grid {
        grid-template-columns: 1fr;
    }
}

.vacancy-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.vacancy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

.vacancy-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.vacancy-card:hover::before {
    opacity: 0.05;
}

.vacancy-card:active {
    transform: translateY(0);
}

.vacancy-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    color: var(--accent-light);
    transition: var(--transition-base);
}

.vacancy-card:hover .vacancy-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
    transform: scale(1.05);
}

.vacancy-icon .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
}

.vacancy-name {
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.vacancy-card:hover .vacancy-name {
    color: var(--text-primary);
}

/* Arrow indicator */
.vacancy-card::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.vacancy-card:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Disabled vacancy card */
.vacancy-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.vacancy-card.disabled::before {
    display: none;
}

.vacancy-card.disabled::after {
    display: none;
}

.vacancy-disabled-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- Form Styles ---------- */
#step2 {
    display: none;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 24px;
}

.back-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.back-btn .icon {
    width: 16px;
    height: 16px;
}

.selected-vacancy {
    margin-bottom: 32px;
}

.vacancy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

/* ---------- Form Grid ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label .icon {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.form-group label .icon-img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--border-hover);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Date Input Styling */
.form-group input[type="date"] {
    cursor: pointer;
    color-scheme: dark;
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

.form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- File Upload ---------- */
.file-upload {
    position: relative;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.file-upload:hover .file-upload-content {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent-light);
}

.file-icon .icon {
    width: 20px;
    height: 20px;
}

.file-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.file-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-preview {
    display: none;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ---------- Radio Group ---------- */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 1;
}

.radio-option:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--text-primary);
}

.radio-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.onsite-question label:first-child {
    margin-bottom: 4px;
}

/* ---------- Designer Fields ---------- */
.designer-fields {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 8px;
}

.designer-fields .form-grid {
    gap: 16px;
}

.designer-required {
    color: var(--accent-light);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-hint.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.form-hint .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.form-hint.warning .icon {
    color: #fbbf24;
}

.designer-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.designer-hint.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.designer-hint .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.designer-hint.warning .icon {
    color: #fbbf24;
}

/* ---------- Attachment List ---------- */
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.attachment-item .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-light);
}

/* ---------- Form Actions ---------- */
.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary:hover .icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ---------- Messages ---------- */
.success-message {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-radius: var(--radius-full);
    color: #22c55e;
}

.success-icon .icon {
    width: 32px;
    height: 32px;
}

.success-message h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: #fca5a5;
    font-size: 0.875rem;
}

.error-message .icon {
    width: 20px;
    height: 20px;
    color: #ef4444;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ---------- Icons ---------- */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 28px;
    height: 28px;
}

.icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ---------- Custom Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    color: #fbbf24;
    animation: pulse-icon 2s ease-in-out infinite;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-message {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.modal-btn:active {
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }
    
    .container {
        padding: 24px 16px 20px;
        max-width: 100%;
    }
    
    .logo-wrapper {
        margin-bottom: 16px;
    }
    
    .logo-wrapper img {
        width: 48px;
    }
    
    .logo-wrapper span {
        font-size: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .work-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-tag {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .vacancy-grid {
        gap: 12px;
    }
    
    .vacancy-card {
        padding: 16px;
        gap: 12px;
    }
    
    .vacancy-card .icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .vacancy-card span {
        font-size: 0.9rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .step-header {
        margin-bottom: 20px;
    }
    
    .step-header h2 {
        font-size: 1.25rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 16px;
        font-size: 0.75rem;
    }
}

/* ---------- Admin Styles ---------- */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.login-container .logo {
    width: 64px;
    margin-bottom: 24px;
}

.login-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-container p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.security-badge .icon {
    width: 14px;
    height: 14px;
    color: #22c55e;
}

/* Admin Table */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-elevated);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.data-table td {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-new {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
}

.badge-read {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
}

/* Detail View */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.detail-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-info p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.detail-label .icon {
    width: 14px;
    height: 14px;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.detail-value a {
    color: var(--accent-light);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
