:root {
    --primary-dark: #0b0c2a;
    --primary-blue: #1c4ed8;
    --text-dark: #0f172a;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #f1f5f9;
    --border-dark: #e2e8f0;
    
    --blue-light: #eff6ff;
    --blue-lighter: #e0e7ff;
    --blue-text: #2563eb;
    
    --green-bg: #dcfce7;
    --green-text: #16a34a;
    
    --orange-bg: #ffedd5;
    --orange-text: #ea580c;
    
    --red-bg: #fee2e2;
    --red-text: #dc2626;

    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-dark);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.sidebar-content {
    padding: 24px 16px;
    flex-grow: 1;
}

.post-vacancy-btn {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.2s;
}

.post-vacancy-btn:hover {
    background: #111827;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    background: var(--bg-main);
    color: var(--text-dark);
}

.nav-item.active {
    background: var(--primary-dark);
    color: white;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
}


/* --- Main Content --- */
.main-wrapper {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 72px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 8px 16px;
    width: 400px;
}

.search-icon {
    color: var(--text-light);
    font-size: 18px;
    margin-right: 12px;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}

.search-container input::placeholder {
    color: #94a3b8;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
}

.badged-dot {
    position: absolute;
    top: 0;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 24px;
    border-left: 1px solid var(--border-dark);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Content */
.content-area {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.metric-card.bg-dark {
    background: var(--primary-dark);
    color: white;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-blue-light { background: var(--blue-light); color: var(--blue-text); }
.bg-blue-lighter { background: var(--blue-lighter); color: var(--blue-text); }
.bg-gray-light { background: #f1f5f9; color: #64748b; }
.bg-white-transparent { background: rgba(255,255,255,0.1); color: white; }

.metric-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.metric-badge.positive {
    background: #eff6ff;
    color: #2563eb;
}

.metric-badge.neutral {
    background: #f1f5f9;
    color: #64748b;
}

.red-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.metric-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.metric-label.text-gray { color: #94a3b8; }

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-value.text-white { color: white; }

/* Middle Grid */
.middle-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
}

.card.bg-light {
    background: #f8fafc;
    border: 1px solid var(--border-dark);
}

.card-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.border-bottom {
    border-bottom: 1px solid var(--border-dark);
}

.header-titles h2, .card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

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

.text-blue { color: var(--blue-text); }

.header-titles p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.toggle-group {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 6px;
    display: flex;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-btn.active {
    background: var(--primary-dark);
    color: white;
}

/* Chart Area Placeholder Styling */
.chart-area {
    padding: 0 24px 24px;
    height: 300px;
    display: flex;
    align-items: flex-end;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 200px;
    align-items: flex-end;
}

.bar-group {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    padding-bottom: 30px;
}

.bar {
    width: 20px;
    background: #cbd5e1;
    border-radius: 2px 2px 0 0;
}

.bar.dark { background: var(--primary-dark); }
.bar.blue { background: var(--blue-text); }

.h-30 { height: 30%; }
.h-40 { height: 40%; }
.h-50 { height: 50%; }
.h-60 { height: 60%; }
.h-70 { height: 70%; }
.h-80 { height: 80%; }
.h-95 { height: 95%; }

.x-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
}

/* Pending Actions */
.action-list {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-item {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.action-icon.bg-black { background: #111827; }
.action-icon.bg-red-light { background: #fee2e2; }

.text-yellow { color: #facc15; }
.text-red { color: #ef4444; }

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.action-details {
    flex-grow: 1;
}

.action-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.action-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.action-arrow {
    font-size: 16px;
}

.view-all-actions {
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    background: transparent;
    border: 1px solid var(--border-dark);
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    background: #f8fafc;
}

/* Table Section */
.download-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    background: #f8fafc;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.entity-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.entity-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.entity-icon.circle {
    border-radius: 50%;
    overflow: hidden;
}

.avatar-table {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-orange-lighter { background: var(--orange-bg); }
.text-orange { color: var(--orange-text); }

.entity-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.entity-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.event-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.time-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.status-badge.green { background: var(--green-bg); color: var(--green-text); }
.status-badge.blue { background: var(--blue-lighter); color: var(--blue-text); }
.status-badge.orange { background: var(--orange-bg); color: var(--orange-text); }

.action-dots {
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
}

.table-footer {
    padding: 16px 24px;
    text-align: center;
    background: #f8fafc;
}

.table-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 24px;
}

.content-footer p {
    font-size: 12px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* Vacancy Form Redesign */
.vacancy-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.vacancy-form-col {
    flex: 2;
}
.vacancy-tips-col {
    flex: 1;
    position: sticky;
    top: 24px;
}
.form-section {
    margin-bottom: 40px;
}
.form-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.text-blue { color: #2563eb; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.radio-group {
    display: flex;
    gap: 24px;
    padding: 12px 0;
}
.radio-group label {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    font-family: var(--font-main);
    color: var(--text-dark);
    resize: vertical;
    min-height: 80px;
}
.form-textarea:focus { border-color: #cbd5e1; background: white; }
.wysiwyg-mock {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.w-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
}
.w-toolbar button {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.w-toolbar button:hover { background: #e2e8f0; color: #0f172a; }
.form-wysiwyg {
    width: 100%;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-dark);
    min-height: 180px;
    resize: vertical;
    outline: none;
}
.form-submission-bar {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-ghost {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-dark);
    font-family: var(--font-main);
}
.submit-btn-new {
    background: #1e1b4b;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
}
.submit-btn-new:hover { background: #0f172a; }
.tips-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}
.tips-box h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.tip-item { margin-bottom: 24px; }
.tip-item h4 { font-size: 11px; font-weight: 700; color: #2563eb; display:flex; align-items:center; gap:6px; margin-bottom:8px; text-transform:uppercase;}
.tip-item p { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.tip-img { width: 100%; border-radius: 8px; margin-top: 16px; }
.premium-box {
    background: linear-gradient(135deg, #78350f, #451a03);
    color: white;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.p-badge {
    background: white;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}
.premium-box h3 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; position:relative; z-index:2;}
.premium-box p { font-size: 12px; color: #fdba74; line-height: 1.5; position:relative; z-index:2;}
.background-icon { position: absolute; right: -20px; bottom: -20px; font-size: 120px; color: rgba(255,255,255,0.05); z-index: 1; }

/* Analytics Styles */
.stat-row { margin-bottom: 24px; }
.stat-labels { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.progress-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: #2563eb; border-radius: 4px; transition: width 1s ease-in-out; }

.donut-chart-mock {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.d-center {
    width: 150px;
    height: 150px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
