:root {
    --primary-color: #003366;
    /* Boğaziçi Navy Blue */
    --secondary-color: #ffffff;
    --accent-color: #004d99;
    --text-color: #333333;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Lighter background */
    --card-bg: #ffffff;
    --shadow: 0 10px 40px -10px rgba(0, 64, 128, 0.15);
    /* Premium shadow */
    --sidebar-width: 280px;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    /* Force scrollbar to prevent layout shift */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    /* Clean flat background */
    min-height: 100vh;
    display: block;
    color: var(--text-color);
    padding: 0;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100vh;
    /* Ensure full height alignment */
}

.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    /* More rounded */
    box-shadow: var(--shadow);
    max-width: 500px;
    /* Fixed narrower login/register */
    width: 100%;
    backdrop-filter: blur(10px);
}

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

.header img {
    max-width: 120px;
    margin-bottom: 15px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    /* Rounded */
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.form-row.triple {
    grid-template-columns: repeat(3, 1fr);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eef1f5;
    background: #f8f9fa;
    border-radius: 12px;
    /* Smoother inputs */
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

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

.success-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

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

/* Admin Dashboard Styles */
.dashboard-container {
    width: 100%;
    margin-top: 20px;
}

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

/* Dashboard Layout */
.dashboard-wrapper {
    min-height: 100vh;
    /* Removed display: flex to prevent fixed sidebar margin calculation issues */
}

.sidebar {
    width: 260px;
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Sidebar Responsive Moved to Bottom */

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 0 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header img {
    max-width: 80px;
    margin-bottom: 15px;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.main-content {
    /* flex: 1; Removed */
    margin-left: 260px;
    width: auto;
    /* Allow block flow to calculate width (100% - margin) */
    background: #f8f9fe;
    padding: 40px;
    min-height: 100vh;
}

.content-header {
    display: flex;
    flex-direction: column;
    /* Force vertical stacking */
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

/* Remove the problematic flex:1 rule that might push content */
.content-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Buttons wrap if needed */
    justify-content: flex-end;
    /* Align right normally */
}

.user-nav span {
    font-weight: 600;
    color: var(--text-color);
}

/* Card Style for Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns to fit container */
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.icon-box.blue {
    background: #e3f2fd;
    color: #1565c0;
}

.icon-box.green {
    background: #e8f5e9;
    color: #2e7d32;
}

.icon-box.orange {
    background: #fff3e0;
    color: #ef6c00;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-info p {
    color: #8898aa;
    font-size: 14px;
    font-weight: 500;
}

/* Charts */
/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.chart-container {
    padding: 25px;
    min-height: 400px;
    height: auto;
}

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

.card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    /* Use premium shadow */
    padding: 30px;
    /* More breathing room */
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px -10px rgba(0, 64, 128, 0.2);
}

.card-large {
    padding: 40px;
}

.grid-spacious {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns side-by-side */
    gap: 40px;
}

/* Responsive Chart Layout */
.chart-detail-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.chart-area {
    flex: 1;
    position: relative;
    height: 250px;
}

.legend-area {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #eee;
    height: 100%;
    overflow-y: auto;
}

/* Mobile Sidebar & Layout */
@media (max-width: 992px) {
    /* Normal tablet/mobile breakpoint */

    .grid-spacious,
    .form-row,
    .form-row.triple,
    .branches-grid,
    .filter-form,
    /* .content-header, REMOVED */
    .card-title,
    .charts-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }


    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .form-group {
        width: 100% !important;
    }

    /* Sidebar Mobile Logic */
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    /* Chart Stacking */
    .chart-detail-wrapper {
        flex-direction: column;
        height: auto;
        gap: 20px;
        /* Force gap between chart and list */
    }

    .chart-area {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
        /* Extra push */
    }

    .legend-area {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 25px;
        /* More breathing room */
        height: auto;
        max-height: none;
        /* Let it grow */
        overflow-y: visible;
        /* Show full list */
    }

    .card {
        padding: 20px;
        /* Less padding on mobile */
    }
}

/* Extra small screens */
@media (max-width: 600px) {
    .content-header h1 {
        font-size: 20px;
    }

    .user-nav span {
        display: none;
        /* Hide username on very small screens */
    }

    .btn-secondary {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Responsive Filter Form Class */
.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    width: 100%;
}

/* Stats Badges */
.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-info {
    background: #e1f5fe;
    color: #0288d1;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Print View Compatibility */
@media print {

    .sidebar,
    .menu-toggle,
    /* Hide hamburger in print */
    .btn-action-no-print,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
        background: white;
    }
}

.btn-logout {
    padding: 8px 15px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.btn-secondary {
    padding: 8px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #218838;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 700;
}

tr:hover {
    background-color: #f1f1f1;
}

.btn-delete {
    padding: 5px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete:hover {
    background: #c82333;
}

@media print {
    body {
        background: white !important;
        padding: 0 !important;
        font-size: 10pt !important;
    }

    .container {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        background: white !important;
    }

    .btn-submit,
    .btn-secondary,
    .btn-logout,
    .btn-info,
    .btn-delete,
    .dashboard-header,
    .header p,
    .modal-close {
        display: none !important;
    }

    .form-section {
        border: 1px solid #000 !important;
        background: none !important;
        break-inside: avoid;
        margin-bottom: 20px !important;
        padding: 10px !important;
    }

    .form-section-title {
        border-bottom: 2px solid #000 !important;
        color: #000 !important;
        margin-top: 0 !important;
    }

    .form-control {
        border: none !important;
        border-bottom: 1px dotted #000 !important;
        padding: 2px 0 !important;
        background: transparent !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    .form-group label {
        color: #000 !important;
        font-size: 9pt !important;
    }

    .branches-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        border: 1px solid #000 !important;
    }

    .checkbox-group input {
        display: inline-block !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .modal-overlay {
        position: relative !important;
        background: white !important;
        display: block !important;
    }

    .modal-content {
        box-shadow: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
}

/* PREMIUM TABLE STYLES */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
    margin-top: -10px;
}

.premium-table thead th {
    background: none;
    color: #8898aa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: none;
    font-weight: 700;
}

.premium-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.premium-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.premium-table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-top: 1px solid #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

.premium-table td:first-child {
    border-left: 1px solid #f8f9fa;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.premium-table td:last-child {
    border-right: 1px solid #f8f9fa;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Date Badge */
.date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #525f7f;
    font-weight: 500;
}

.date-badge .icon {
    font-size: 14px;
    opacity: 0.7;
}

/* Student Name */
.student-name {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #32325d;
    font-size: 14px;
}

.student-name .sub-text {
    font-size: 11px;
    color: #8898aa;
    font-weight: 400;
    margin-top: 2px;
}

/* Branch Tags */
.branch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #e6f6ff;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone */
.parent-info .phone-link {
    color: #525f7f;
    font-size: 13px;
    text-decoration: none;
    font-family: monospace;
}

.parent-info .no-data {
    color: #ccc;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-icon span {
    display: none;
    /* Hide text, icon only */
}

/* View/Edit Button */
.btn-icon.view {
    background: #fff;
    color: var(--busk-blue);
    border: 1px solid #e9ecef;
}

.btn-icon.view:hover {
    background: var(--busk-blue);
    color: #fff;
    border-color: var(--busk-blue);
}

/* Delete Button */
.btn-icon.delete {
    background: #fff;
    color: #dc3545;
    border: 1px solid #e9ecef;
}

.btn-icon.delete:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Sidebar Responsive (Fixed Cascade) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        /* Keep defined width */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px;
        /* Less padding on mobile */
    }

    .menu-toggle {
        display: block !important;
    }
}

/* Modal Styles - Ensure Global Coverage */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* High z-index to sit on top of everything */
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Fix SweetAlert Z-Index (Must be higher than custom modals) */
div.swal2-container {
    z-index: 20000 !important;
}

/* --- LEADS 2.0 STYLES --- */

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
}

/* View Toggler */
.view-toggler {
    display: flex;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 10px;
    gap: 5px;
}

.view-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    align-items: flex-start;
}

.kanban-column {
    flex: 0 0 300px;
    background: #f8f9fa;
    /* Light column bg */
    border-radius: 15px;
    padding: 15px;
    min-height: 400px;
    border: 1px solid #e9ecef;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: #495057;
}

.kanban-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* Kanban Card */
.kanban-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: #e9ecef;
}

.k-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.k-date {
    font-size: 11px;
    color: #999;
}

.k-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 5px;
}

.k-details {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.k-tag {
    background: #eef1f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.k-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.k-actions {
    display: flex;
    gap: 5px;
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.btn-icon-sm:hover {
    background: #e2e6ea;
    color: #333;
}

.btn-wp {
    color: #25D366;
    background: #e8f5e9;
}

.btn-wp:hover {
    background: #c8e6c9;
}

/* Status Colors for Borders/Badges */
.status-new {
    border-top: 3px solid #17a2b8;
}

.status-no-ans {
    border-top: 3px solid #ffc107;
}

.status-later {
    border-top: 3px solid #6f42c1;
}

.status-meet {
    border-top: 3px solid #007bff;
}

.status-neg {
    border-top: 3px solid #dc3545;
}

.status-conv {
    border-top: 3px solid #28a745;
}

/* Responsive Kanban */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        overflow-x: hidden;
    }

    .kanban-column {
        flex: none;
        width: 100%;
    }
}

/* --- PREMIUM UI ENHANCEMENTS (4 Feb 2024) --- */

/* Glassmorphism & Soft UI */
.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Animated Inputs */
.form-control-premium {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef1f5;
    background: #ffffff;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 51, 102, 0.1);
    transform: translateY(-1px);
}

/* Modern Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-premium.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-premium.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-premium.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* Status Badges Premium */
.status-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pill.active {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-pill.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Row Elevation */
.premium-table tbody tr.row-elevated {
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Grid Layout Improvements */
.payroll-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: start;
}

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