:root {
    --bg-body: #f4f6fb;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #6366f1;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 78px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Page Typography */
.page-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Login Page Styles */
body.login-page-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.brand-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.brand-header p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.quick-login-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.quick-login-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-quick {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-quick:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}

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

body.sidebar-mobile-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 0 16px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin: 16px 12px 8px 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item i {
    font-size: 16px;
    color: #64748b;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-item:hover i, .nav-item.active i {
    color: var(--primary);
}

.nav-sub {
    padding-left: 44px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.nav-sub-item {
    padding: 6px 12px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-sub-item::before {
    content: '•';
    font-size: 14px;
}

.nav-sub-item:hover, .nav-sub-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Main Content Layout */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Header */
.topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-sidebar-btn {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.toggle-sidebar-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.profile-info {
    text-align: right;
}

.profile-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
    color: #64748b;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Container Content */
.content-area {
    padding: 32px;
}

/* Dashboard Cards & Layout */
.super-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.super-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.stat-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon-badge.orange { background: #fff7ed; color: #ea580c; }
.stat-icon-badge.green { background: #f0fdf4; color: #16a34a; }
.stat-icon-badge.blue { background: #eff6ff; color: #2563eb; }
.stat-icon-badge.purple { background: #faf5ff; color: #9333ea; }

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.dashboard-row-2 {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.btn-filter {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.workforce-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workforce-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.workforce-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.chart-container-donut {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.empty-state {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
}

.toolbar-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

.btn-filter-icon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emp-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.badge-state {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-state.in { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-state.out { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.approved { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.status-badge.pending { background: #fffbebfb; color: #d97706; border: 1px solid #fde68a; }
.status-badge.rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.card-box, .page-card, .form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 32px;
}

.form-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 13.5px;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.btn-create-company, .btn-add-emp, .btn-add {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
}

.btn-create-company:hover, .btn-add-emp:hover, .btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box-sm {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 28px;
}

/* Responsive Table Wrappers */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.table-wrapper table {
    min-width: 680px;
}

/* Generic Data Table */
.data-table, .company-table, .emp-table, .dept-table, .punch-table, .leave-table, .holiday-table, .announcement-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .company-table th, .emp-table th, .dept-table th, .punch-table th, .leave-table th, .holiday-table th, .announcement-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td, .company-table td, .emp-table td, .dept-table td, .punch-table td, .leave-table td, .holiday-table td, .announcement-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.badge-status, .status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-status.active, .status-pill.permanent { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-status.inactive { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.status-pill.part-time { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.status-pill.intern { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.status-pill.probation { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

.btn-action-icon, .action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action-icon:hover, .action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 4-Step Employee Wizard Styles */
.wizard-modal-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin: 0 auto;
}

.wizard-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.wizard-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wizard-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.btn-close-wizard {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.steps-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.step-tab {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number-circle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.step-tab.active {
    background: #eef2ff;
    border-color: #6366f1;
}

.step-tab.active .step-number-circle {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.step-tab-label {
    font-size: 10.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.step-tab-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.wizard-body-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.summary-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.summary-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    transition: all 0.2s;
}

.summary-card.active-summary {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    background: #fafafa;
}

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

.summary-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
}

.summary-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.badge-progress {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.badge-progress.in-progress { background: #eef2ff; color: #4f46e5; }
.badge-progress.done { background: #dcfce7; color: #166534; }
.badge-progress.pending { background: #f1f5f9; color: #94a3b8; }

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.summary-label { color: #64748b; }
.summary-val { font-weight: 600; color: #0f172a; max-width: 130px; text-align: right; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.form-step-section { display: none; }
.form-step-section.active-section { display: block; }
.step-section-header { margin-bottom: 24px; }

.gender-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.gender-card-btn {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.gender-card-btn.selected, .gender-card-btn:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.gender-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.upload-card-box {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-card-box:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.upload-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.wizard-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard-action {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-cancel { background: #f1f5f9; color: #475569; }
.btn-back { background: #ffffff; border: 1px solid #e2e8f0; color: #334155; }
.btn-continue { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #ffffff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

/* Desktop Collapsed Mode */
@media (min-width: 993px) {
    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar .sidebar-brand span,
    body.sidebar-collapsed .sidebar .nav-label,
    body.sidebar-collapsed .sidebar .nav-item span,
    body.sidebar-collapsed .sidebar .nav-item .fa-chevron-down,
    body.sidebar-collapsed .sidebar .nav-sub {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar .nav-item {
        justify-content: center;
        padding: 12px;
    }

    body.sidebar-collapsed .main-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Mobile & Tablet Mode */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .topbar {
        padding: 0 16px;
    }

    .content-area {
        padding: 20px 16px;
    }

    .profile-info {
        display: none;
    }

    .toolbar-row, .card-box-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .toolbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }

    .search-box {
        width: 100% !important;
    }

    .btn-create-company, .btn-add-emp, .btn-add {
        width: 100% !important;
        justify-content: center;
    }

    .steps-tabs-grid { grid-template-columns: repeat(2, 1fr); }
    .wizard-body-grid { grid-template-columns: 1fr; }
}

/* Pagination Styling */
.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

.pagination .page-item .page-link, .pagination span, .pagination a {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link, .pagination .active > span {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.pagination .page-item.disabled .page-link, .pagination .disabled > span {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
}
