﻿/* ===== CSS Variables - Clean Minimal Theme ===== */
:root {
    /* Light Theme - Clean & Minimal */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e5e5;
    --accent-primary: #1a1a1a;
    --accent-secondary: #374151;
    --accent-gradient: #1a1a1a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --toggle-bg: #e5e5e5;
    --toggle-active: #1a1a1a;
    --toggle-knob: #ffffff;
}

/* Prevent flash on page load */
html {
    background-color: #fafafa;
}

html[data-theme="dark"] {
    background-color: #0a0a0a;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-sidebar: #141414;
    --bg-card: #1a1a1a;
    --bg-input: #262626;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-color: #333333;
    --accent-primary: #fafafa;
    --accent-secondary: #d4d4d4;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
    --toggle-bg: #404040;
    --toggle-active: #22c55e;
    --toggle-knob: #ffffff;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ===== Login Page Styles ===== */
.login-page,
.login-page-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    position: relative;
}

.login-page::before {
    display: none;
}

.floating-shapes {
    display: none;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card,
.login-card-new {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

[data-theme="dark"] .login-card,
[data-theme="dark"] .login-card-new {
    background: #1a1a1a;
    border-color: #262626;
}

[data-theme="dark"] .login-page,
[data-theme="dark"] .login-page-new {
    background: #0a0a0a;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.logo-icon .logo-img {
    width: 48px;
    height: auto;
    object-fit: contain;
}

.login-logo .logo-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.logo-text {
    width: 100px;
    height: 25px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
}

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

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.login-form input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.login-form input:focus + svg,
.login-form .input-wrapper:focus-within svg {
    color: var(--accent-primary);
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.login-form .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.login-form .forgot-password {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-form .forgot-password:hover {
    color: var(--text-primary);
}

.login-form .btn-login {
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .login-form .btn-login {
    background: #fafafa;
    color: #1a1a1a;
}

.login-form .btn-login::before {
    display: none;
}

.login-form .btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 14px;
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-login .btn-social {
    flex: 1;
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.social-login .btn-social:hover {
    background: var(--bg-input);
}

.social-login .btn-social svg {
    width: 18px;
    height: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 13px;
}

.login-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-footer a:hover {
    opacity: 0.7;
}

/* ===== Main Layout - Dashboard ===== */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: all 0.2s ease;
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo .logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.sidebar-logo .logo-text {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

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

[data-theme="dark"] .nav-item.active {
    background: #fafafa;
    color: #1a1a1a;
}

.nav-item .badge {
    margin-left: auto;
    padding: 2px 7px;
    background: var(--danger);
    color: white;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: 8px;
}

.theme-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--toggle-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid var(--border-color);
}

.toggle-switch.active {
    background: var(--toggle-active);
    border-color: var(--toggle-active);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--toggle-knob);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 260px;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.header-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg-input);
    border-radius: 8px;
}

.header-stat svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

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

.header-stat strong {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--bg-input);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.15s;
}

.header-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.header-btn:hover {
    background: var(--border-color);
}

.header-btn:hover svg {
    color: var(--text-primary);
}

.header-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.header-user:hover {
    background: var(--border-color);
}

.header-user img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.header-user-info {
    text-align: left;
}

.header-user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-user-info .role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    padding: 28px;
    flex: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
}

.stat-card-icon.blue svg {
    color: #3b82f6;
}

.stat-card-icon.green {
    background: rgba(34, 197, 94, 0.1);
}

.stat-card-icon.green svg {
    color: #22c55e;
}

.stat-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
}

.stat-card-icon.purple svg {
    color: #8b5cf6;
}

.stat-card-icon.orange {
    background: rgba(249, 115, 22, 0.1);
}

.stat-card-icon.orange svg {
    color: #f97316;
}

.stat-card-change {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 500;
}

.stat-card-change.up {
    color: var(--success);
}

.stat-card-change.down {
    color: var(--danger);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Content Cards */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header .btn-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.card-header .btn-link:hover {
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 16px;
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.service-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

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

.service-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.service-features li svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--text-muted);
}

.pricing-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.pricing-card .duration {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

/* App Stats Cards */
.app-stats-grid {
    display: grid;
    gap: 12px;
}

.app-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-input);
    border-radius: 10px;
    transition: all 0.15s;
}

.app-stat-item:hover {
    background: var(--border-color);
}

.app-stat-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.app-stat-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background: #fafafa;
    color: #1a1a1a;
}

.btn-primary:hover {
    opacity: 0.9;
}

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

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

.btn-editpassword {
    background: var(--text-secondary);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-editpassword:hover {
    background: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

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

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

table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-input);
}

table td {
    font-size: 13px;
    color: var(--text-primary);
}

table tbody tr:hover {
    background: var(--bg-input);
}

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

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* Recruitment Cards */
.recruitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.recruitment-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
}

.recruitment-card:hover {
    box-shadow: var(--shadow-md);
}

.recruitment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.recruitment-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruitment-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.recruitment-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.recruitment-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.recruitment-benefit {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
    margin-bottom: 16px;
}

.recruitment-card .btn {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.mobile-menu-btn:hover {
    background: var(--border-color);
}

/* Sidebar Close Button (Mobile) */
.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.sidebar-close:hover {
    background: var(--danger);
}

.sidebar-close:hover svg {
    color: white;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid,
    .recruitment-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        display: none;
    }

    .header {
        padding: 12px 16px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .header-info {
        display: none;
    }

    .header-user-info {
        display: none;
    }

    .header-user {
        padding: 4px;
    }

    .header-user img {
        width: 36px;
        height: 36px;
    }

    .page-content {
        padding: 16px;
    }

    .card-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    /* Table responsive */
    .table-wrapper {
        margin: 0 -16px;
    }

    table th,
    table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-actions {
        display: none;
    }

    .btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

/* Validation styles */
.field-validation-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.input-validation-error {
    border-color: var(--danger) !important;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--text-secondary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
