/**
 * TexMeta - Main Stylesheet
 * Unique Modern Design - LinkedIn + Facebook + Bdjobs Combined
 */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Unique Purple-Blue Gradient Theme */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    /* Secondary Colors */
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-dark: #18191a;
    
    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-light: #ffffff;
    
    /* Borders */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
    overflow-x: hidden;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    padding: 24px 0;
}

.main-layout-2col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 24px 0;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .main-layout-2col {
        grid-template-columns: 1fr;
    }
}

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
    overflow: visible;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand svg {
    width: 36px;
    height: 36px;
    fill: var(--primary);
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--gray-50);
    font-size: 14px;
    transition: var(--transition);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.navbar-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--gray-500);
    font-size: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* ===== Profile Card ===== */
.profile-card {
    text-align: center;
    position: relative;
}

.profile-cover {
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius) var(--radius) 0 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 4px solid var(--white);
    margin-top: -40px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-headline {
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Verified Badge ===== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
}

/* ===== Progress Score ===== */
.score-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ===== Posts ===== */
.post-card {
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    font-size: 15px;
}

.post-author a {
    color: var(--text-primary);
}

.post-headline {
    font-size: 13px;
    color: var(--text-muted);
}

.post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.post-content {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.post-actions {
    display: flex;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
}

.post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-action:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.post-action.liked {
    color: var(--primary);
}

/* ===== Post Composer ===== */
.post-composer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
}

.post-composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.post-composer-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.post-composer-input:hover {
    background: var(--gray-200);
}

/* ===== Jobs ===== */
.job-card {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.job-card:hover {
    background: var(--gray-50);
}

.job-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.job-logo {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-info {
    flex: 1;
    min-width: 0;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-meta-item svg {
    width: 16px;
    height: 16px;
}

/* ===== Kanban Board ===== */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
    min-height: 600px;
}

.kanban-column {
    flex: 0 0 280px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 16px;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.kanban-count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: grab;
    transition: var(--transition);
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.candidate-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.candidate-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.candidate-name {
    font-weight: 600;
    font-size: 14px;
}

.candidate-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== CV Builder ===== */
.cv-builder {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}

.cv-options {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 84px;
}

.cv-preview {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    min-height: 800px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-option {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.template-option:hover {
    border-color: var(--primary-light);
}

.template-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.template-preview {
    height: 60px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.cv-section {
    margin-bottom: 32px;
}

.cv-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

/* ===== Messages ===== */
.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 60px);
}

.conversations-list {
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--gray-50);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    font-size: 14px;
}

.conversation-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.message.sent {
    background: var(--primary-gradient);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.received {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

/* ===== Admin Dashboard ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Assessment Card ===== */
.assessment-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

.assessment-card:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.02);
}

.assessment-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.assessment-info {
    flex: 1;
}

.assessment-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.assessment-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo svg {
    width: 56px;
    height: 56px;
    fill: var(--primary);
}

.auth-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* OAuth Divider */
.oauth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.oauth-divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.oauth-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.oauth-btn:active {
    transform: translateY(0);
}

.oauth-btn svg {
    flex-shrink: 0;
}

.oauth-btn span {
    font-weight: 600;
}

.oauth-btn-google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.05);
}

.oauth-btn-linkedin:hover {
    border-color: #0077B5;
    background: rgba(0, 119, 181, 0.05);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .oauth-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
}

/* ===== Landing Page ===== */
.landing-hero {
    background: var(--primary-gradient);
    padding: 80px 0;
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.features-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--gray-50);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Premium Page ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-info {
    background: var(--primary-gradient);
}

/* ===== Utilities ===== */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in { animation: fadeIn 0.3s ease; }
.slide-up { animation: slideUp 0.3s ease; }
.pulse { animation: pulse 2s infinite; }

/* ===== Profile Dropdown Menu ===== */
.profile-dropdown {
    position: relative;
    overflow: visible;
}

.profile-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 10500;
    overflow: hidden;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.profile-menu-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.profile-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-menu-headline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.profile-menu-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.profile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .profile-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
        transform: translateY(100%);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .profile-menu.show {
        transform: translateY(0);
    }
    
    .profile-menu-header {
        padding: 20px;
    }
    
    .profile-menu-item {
        padding: 16px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .profile-menu-header img {
        width: 48px;
        height: 48px;
    }
    
    .profile-menu-name {
        font-size: 15px;
    }
    
    .profile-menu-headline {
        font-size: 12px;
        max-width: 180px;
    }
}

.profile-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== Mobile menu toggle ===== */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Admin Mobile Toggle */
.admin-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .admin-menu-toggle {
        display: flex;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: var(--z-fixed);
    padding: 16px;
    overflow-y: auto;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
}

/* ===== Full Mobile Responsive ===== */
:root {
    --container-max: 1200px;
    --sidebar-width: 260px;
    --nav-height: 60px;
}

/* Fluid Typography */
html {
    font-size: 16px;
}

@media (max-width: 1440px) {
    html { font-size: 15px; }
}

@media (max-width: 1024px) {
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    html { font-size: 13px; }
}

/* Container Fluid */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .card {
        padding: 28px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Desktop (1024px - 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
    .admin-layout {
        grid-template-columns: 240px 1fr;
    }
    
    .messages-layout {
        grid-template-columns: 320px 1fr;
    }
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    /* Navbar Mobile */
    /* Navigation */
    .navbar {
        padding: 0 12px;
        height: 56px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-item {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Layout */
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 16px;
    }
    
    /* Messages */
    .messages-layout {
        grid-template-columns: 1fr;
    }
    
    .conversations-list {
        width: 100%;
    }
    
    /* Cards */
    .card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    /* Grids */
    .stats-grid,
    .job-grid,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .navbar-nav.mobile-show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 16px;
        z-index: var(--z-fixed);
    }
    
    /* Stats */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
        /* Navbar Mobile */
        /* Navigation */
        .navbar {
            padding: 0 12px;
            height: 56px;
        }
        
        .nav-links {
            gap: 8px;
        }
        
        .nav-item {
            font-size: 13px;
            padding: 8px 12px;
        }
        
        /* Layout */
        .admin-layout {
            grid-template-columns: 1fr;
        }
        
        .admin-sidebar {
            transform: translateX(-100%);
            position: fixed;
            z-index: 1000;
        }
        
        .admin-sidebar.mobile-open {
            transform: translateX(0);
        }
        
        .admin-content {
            margin-left: 0;
            padding: 16px;
        }
        
        /* Messages */
        .messages-layout {
            grid-template-columns: 1fr;
        }
        
        .conversations-list {
            width: 100%;
        }
        
        /* Cards */
        .card {
            padding: 16px;
            margin-bottom: 12px;
        }
        
        /* Grids */
        .stats-grid,
        .job-grid,
        .post-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        /* Forms */
        .form-row {
            flex-direction: column;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .navbar-nav.mobile-show {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--white);
            padding: 16px;
            z-index: var(--z-fixed);
        }
        
        /* Stats */
        .admin-stats {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .stat-card {
            padding: 16px;
        }
        
        .stat-value {
            font-size: 24px;
        }
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* CV Builder */
    .cv-builder {
        grid-template-columns: 1fr;
    }
    
    /* Messages */
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 12px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
    }
    
    /* Modal */
    .modal {
        width: 95%;
        max-width: none;
        margin: 16px;
        max-height: 90vh;
    }
    
    /* Profile */
    .profile-header {
        padding: 16px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    /* Jobs */
    .job-card {
        padding: 16px;
    }
    
    .job-filters {
        display: none;
    }
    
    /* Tables - Make scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Quick Actions Grid */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Container Fluid */
    .container-fluid {
        padding: 12px !important;
    }
    
    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Post Composer */
    .post-composer {
        padding: 12px;
    }
    
    /* Recruiter Dashboard */
    .recruiter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
    .navbar-brand span {
        display: none;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .profile-menu {
        width: 100%;
        right: 0;
        border-radius: 0;
        max-width: 100vw;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Ultra-compact mobile */
    .container {
        padding: 0 8px;
    }
    
    .navbar {
        padding: 0 8px;
        height: 52px;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    /* Cards */
    .card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .card-header {
        padding: 10px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    /* Typography */
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    
    /* Buttons */
    .btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 4px 0;
    }
    
    /* Forms */
    .form-control {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    /* Tables - Horizontal Scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 11px;
    }
    
    /* Stats */
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Messages */
    .message-bubble {
        max-width: 85%;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .conversation-item {
        padding: 10px 8px;
    }
    
    .conversation-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Profile */
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    /* Spacing */
    .mb-1 { margin-bottom: 8px; }
    .mb-2 { margin-bottom: 12px; }
    .mb-3 { margin-bottom: 16px; }
    .mt-1 { margin-top: 8px; }
    .mt-2 { margin-top: 12px; }
    .mt-3 { margin-top: 16px; }
    .p-1 { padding: 8px; }
    .p-2 { padding: 12px; }
    .p-3 { padding: 16px; }
}

/* ========================================
   ENHANCED RESPONSIVE NAVBAR & LAYOUT
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ===== Large Tablet (1024px) ===== */
@media (max-width: 1024px) {
    .navbar-search {
        max-width: 280px;
    }
    
    .nav-item {
        padding: 6px 10px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
}

/* ===== Tablet Portrait (768px) ===== */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide search on mobile */
    .navbar-search {
        display: none;
    }
    
    /* Hide nav item text labels */
    .nav-item span:not(.notification-badge) {
        display: none;
    }
    
    .nav-item {
        padding: 8px;
        border-radius: var(--radius);
    }
    
    .nav-item svg {
        width: 22px;
        height: 22px;
        margin: 0;
    }
    
    .nav-item.active::after {
        bottom: -4px;
        width: 24px;
    }
    
    .navbar-nav {
        gap: 4px;
    }
    
    .navbar-inner {
        height: 52px;
        gap: 12px;
    }
    
    /* Profile dropdown on mobile */
    .profile-dropdown span {
        display: none;
    }
    
    .profile-menu {
        position: fixed;
        top: 52px;
        right: 8px;
        width: calc(100vw - 16px);
        max-width: 320px;
        z-index: 9999;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 12px;
    }
    
    /* Main content spacing */
    main {
        padding-top: 8px;
    }
}

/* ===== Mobile Landscape (576px) ===== */
@media (max-width: 576px) {
    .navbar-inner {
        height: 50px;
        padding: 0 8px;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .navbar-brand svg {
        width: 32px;
        height: 32px;
    }
    
    .nav-item {
        padding: 6px;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-avatar {
        width: 28px;
        height: 28px;
    }
    
    .navbar-nav {
        gap: 2px;
    }
    
    /* Hide some nav items on small screens */
    .nav-item:nth-child(6) {
        display: none; /* References */
    }
    
    /* Profile menu full width on mobile */
    .profile-menu {
        width: calc(100vw - 16px);
        right: 8px;
        max-width: none;
    }
    
    /* Page container */
    .container {
        padding: 0 8px;
    }
    
    /* Cards full bleed on mobile */
    .card {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* ===== Mobile Portrait (480px) ===== */
@media (max-width: 480px) {
    .navbar-inner {
        height: 48px;
    }
    
    .navbar-brand svg {
        width: 28px;
        height: 28px;
    }
    
    .nav-item {
        padding: 5px;
    }
    
    .nav-item svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-avatar {
        width: 26px;
        height: 26px;
    }
    
    /* Hide more nav items */
    .nav-item:nth-child(5),
    .nav-item:nth-child(6) {
        display: none; /* Notifications and References */
    }
    
    .notification-badge {
        top: 2px;
        right: 2px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }
    
    /* Mobile optimized containers */
    .container {
        padding: 0 6px;
    }
    
    /* Full width cards */
    .card {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 0;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Modal adjustments */
    .modal {
        margin: 8px;
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }
    
    .modal-header,
    .modal-footer {
        padding: 12px;
    }
    
    .modal-body {
        padding: 12px;
    }
}

/* ===== Very Small Mobile (360px) ===== */
@media (max-width: 360px) {
    .navbar-inner {
        height: 44px;
    }
    
    .navbar-brand svg {
        width: 24px;
        height: 24px;
    }
    
    .nav-item svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-item {
        padding: 4px;
    }
    
    .nav-avatar {
        width: 24px;
        height: 24px;
    }
    
    /* Show only essential nav items */
    .nav-item:nth-child(4),
    .nav-item:nth-child(5),
    .nav-item:nth-child(6) {
        display: none; /* Messages, Notifications, References */
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    /* Container */
    .container {
        padding: 0 4px;
    }
    
    /* Typography */
    h1 { font-size: 18px; }
    h2 { font-size: 16px; }
    h3 { font-size: 14px; }
    
    /* Cards */
    .card {
        padding: 8px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .card-header,
    .card-body {
        padding: 8px;
    }
}

/* ===== Landscape Orientation Fixes ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        position: relative;
    }
    
    .navbar-inner {
        height: 44px;
    }
    
    .modal {
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ===== Mobile Bottom Navigation (Optional Enhancement) ===== */
@media (max-width: 576px) {
    /* Bottom navigation style - uncomment if needed */
    /*
    .navbar-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 8px 0;
        justify-content: space-around;
        z-index: var(--z-fixed);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    main {
        padding-bottom: 70px;
    }
    */
}

/* ===== Safe Area Insets for Modern Phones ===== */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    @media (max-width: 576px) {
        .container {
            padding-left: max(8px, env(safe-area-inset-left));
            padding-right: max(8px, env(safe-area-inset-right));
        }
    }
}

/* ========================================
   COMPONENT-SPECIFIC RESPONSIVE
   ======================================== */

/* Profile dropdown menu */

/* Apply modal */
.apply-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.35);
    z-index: var(--z-modal);
}

.apply-modal.hidden {
    display: none;
}

.apply-modal__backdrop {
    position: absolute;
    inset: 0;
}

.apply-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    padding: 20px;
}

.apply-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.apply-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.apply-modal__close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.apply-modal__form label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.apply-modal__form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    resize: vertical;
    min-height: 120px;
    outline: none;
}

.apply-modal__form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.apply-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}
