@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* KDE Breeze Light Color Palette */
    --primary-50: #e8f6fc;
    --primary-100: #d1edf8;
    --primary-200: #a3dbf1;
    --primary-300: #75c9ea;
    --primary-400: #3daee9;
    --primary-500: #2b9cd8;
    --primary-600: #1d8bc4;
    --primary-700: #2980b9;
    --primary-800: #1a6a9e;
    --primary-900: #145a85;

    --secondary-50: #eef5fb;
    --secondary-100: #dcebf7;
    --secondary-200: #b9d7ef;
    --secondary-300: #96c3e7;
    --secondary-400: #73afdf;
    --secondary-500: #509bd7;
    --secondary-600: #2980b9;
    --secondary-700: #236a9a;
    --secondary-800: #1c547b;
    --secondary-900: #153e5c;

    --accent-50: #fdf4ff;
    --accent-100: #fae8ff;
    --accent-500: #9b59b6;
    --accent-600: #8e44ad;

    --success-50: #eafaf1;
    --success-100: #d5f5e3;
    --success-500: #27ae60;
    --success-600: #219150;

    --warning-50: #fff3e6;
    --warning-100: #ffe7cc;
    --warning-500: #f67400;
    --warning-600: #d96600;

    --error-50: #fce8eb;
    --error-100: #f9d1d7;
    --error-500: #da4453;
    --error-600: #c0392b;

    /* Neutral Scale - KDE Breeze */
    --gray-50: #fcfcfc;
    --gray-100: #eff0f1;
    --gray-200: #e3e5e7;
    --gray-300: #bcbebf;
    --gray-400: #a0a2a4;
    --gray-500: #7f8c8d;
    --gray-600: #5f6a6a;
    --gray-700: #4d5656;
    --gray-800: #232629;
    --gray-900: #1a1c1e;

    /* App Variables */
    --app-bg: #eff0f1;
    --app-surface: #fcfcfc;
    --app-text: #232629;
    --app-text-muted: #7f8c8d;
    --app-border: #bcbebf;

    --app-primary: #3daee9;
    --app-primary-soft: #e8f6fc;
    --app-primary-glow: rgba(61, 174, 233, 0.15);

    --app-secondary: #2980b9;
    --app-secondary-soft: #eef5fb;

    --app-accent: #9b59b6;

    /* Dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed: 76px;
    --navbar-height: 64px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(35, 38, 41, 0.05);
    --shadow-sm: 0 1px 3px rgba(35, 38, 41, 0.08), 0 1px 2px rgba(35, 38, 41, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(35, 38, 41, 0.08), 0 2px 4px -2px rgba(35, 38, 41, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(35, 38, 41, 0.08), 0 4px 6px -4px rgba(35, 38, 41, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(35, 38, 41, 0.08), 0 8px 10px -6px rgba(35, 38, 41, 0.04);
    --shadow-glow: 0 0 40px rgba(61, 174, 233, 0.15);

    /* Glass Effect */
    --glass-bg: rgba(252, 252, 252, 0.85);
    --glass-border: rgba(188, 190, 191, 0.4);
    --glass-backdrop: blur(12px) saturate(150%);
}

/* Dark Mode - KDE Breeze Dark */
[data-theme="dark"] {
    --app-bg: #2b2b2b;
    --app-surface: #31363b;
    --app-text: #eff0f1;
    --app-text-muted: #a0a2a4;
    --app-border: #4d5656;

    --app-primary: #3daee9;
    --app-primary-soft: rgba(61, 174, 233, 0.15);
    --app-primary-glow: rgba(61, 174, 233, 0.2);

    --app-secondary: #5eb9e9;
    --app-secondary-soft: rgba(94, 185, 233, 0.15);

    --glass-bg: rgba(49, 54, 59, 0.85);
    --glass-border: rgba(77, 86, 86, 0.4);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

a {
    color: var(--app-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-700);
}

.red {
    color: var(--error-600);
}

/* ==================== BACKGROUND ==================== */
.app-body {
    background-color: var(--app-bg);
}

/* ==================== TOPBAR ==================== */
.app-topbar {
    height: var(--navbar-height);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    box-shadow: var(--shadow-xs);
    z-index: 1040;
}

.app-brand {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: var(--navbar-height);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 17px;
    color: var(--app-text);
    background: var(--app-surface);
    position: relative;
    border-right: 1px solid var(--app-border);
}

.app-brand span {
    color: var(--app-primary);
    -webkit-text-fill-color: var(--app-primary);
}

.app-brand::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--app-primary);
    border-radius: 0 3px 3px 0;
}

.app-brand i {
    font-size: 20px;
    color: var(--app-primary);
    -webkit-text-fill-color: var(--app-primary);
}

/* User Menu Wrapper - Aligns with main content */
.user-menu-wrapper {
    margin-left: auto;
    margin-right: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

/* User Menu */
.user-menu-dropdown .nav-link {
    color: var(--app-text) !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-menu-dropdown .nav-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-400);
}

.user-menu-dropdown .dropdown-menu {
    border-radius: var(--radius-lg);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    min-width: 200px;
    background: var(--app-surface);
}

.user-menu-dropdown .dropdown-item {
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.user-menu-dropdown .dropdown-item:hover {
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.user-menu-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: var(--app-border);
}

/* ==================== SIDEBAR ==================== */
.app-layout {
    padding-top: var(--navbar-height);
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.app-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    z-index: 1031;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.app-sidebar .sidebar-sticky {
    height: calc(100vh - var(--navbar-height));
    padding: 16px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.app-sidebar .nav {
    gap: 4px;
    padding-top: 15px;
}

.app-sidebar .nav-link {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.app-sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--app-primary);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.app-sidebar .nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.app-sidebar .nav-link.active {
    background: var(--app-primary-soft);
    color: var(--primary-700);
    box-shadow: inset 0 0 0 1px var(--primary-200);
}

.app-sidebar .nav-link.active::before {
    transform: scaleY(1);
}

.app-sidebar .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

/* Sidebar Collapsible Groups */
.app-sidebar .btn-toggle {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.app-sidebar .btn-toggle-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-sidebar .btn-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.app-sidebar .btn-toggle[aria-expanded="true"] {
    background: var(--gray-100);
    color: var(--gray-800);
}

.app-sidebar .btn-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.app-sidebar .btn-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Collapse submenu */
.app-sidebar .collapse .nav-link {
    padding-left: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* Content Wrapper - holds main + footer vertically */
.app-content-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ==================== MAIN CONTENT ==================== */
.app-body main[role="main"] {
    flex: 1;
    padding: 15px 15px 15px;
    min-width: 0;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--app-border);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--app-text);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ==================== CARDS ==================== */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--app-surface);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--app-border);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2,
.card-header h2.mb-0 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--app-primary);
}

/* Card header buttons - match sidebar active menu color */
.card-header .btn {
    color: var(--primary-700);
}

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

/* Remove bottom margin from form submit button container */
.col-md-12.mb-3:has(> button[type="submit"]),
.col-md-12.mb-3:has(> .form-btn),
.col-md-12.mb-3:has(> button.btn-primary) {
    margin-bottom: 0 !important;
}

/* Also remove margin from the button itself */
.col-md-12.mb-3 button[type="submit"],
.col-md-12.mb-3 .form-btn,
.col-md-12.mb-3 button.btn-primary {
    margin-bottom: 0 !important;
}

/* User form submit buttons - outline style */
.form-btn.btn-primary {
    background: transparent;
    border: 1px solid var(--primary-600);
    color: var(--primary-700);
    box-shadow: none;
}

.form-btn.btn-primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-700);
    color: white;
    box-shadow: none;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.card-body {
    padding: 24px;
}

/* Stats Card */
.stat-card {
    background: var(--app-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card {
    text-decoration: none;
    color: inherit;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-200) 0%, transparent 60%);
    border-radius: 0 0 0 100%;
    opacity: 0.4;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-icon.primary {
    background: var(--app-primary);
    color: white;
    box-shadow: 0 8px 16px rgba(61, 174, 233, 0.3);
}

.stat-icon.success {
    background: var(--success-500);
    color: white;
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.3);
}

.stat-icon.warning {
    background: var(--warning-500);
    color: white;
    box-shadow: 0 8px 16px rgba(246, 116, 0, 0.3);
}

.stat-icon.info {
    background: var(--app-secondary);
    color: white;
    box-shadow: 0 8px 16px rgba(41, 128, 185, 0.3);
}

.stat-icon.danger {
    background: var(--error-500);
    color: white;
    box-shadow: 0 8px 16px rgba(218, 68, 83, 0.3);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.stat-change.positive {
    background: var(--success-100);
    color: var(--success-600);
}

.stat-change.negative {
    background: var(--error-100);
    color: var(--error-600);
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-primary {
    background: var(--app-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(61, 174, 233, 0.35);
}

.btn-primary:hover {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 6px 20px rgba(61, 174, 233, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--app-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(41, 128, 185, 0.35);
}

.btn-secondary:hover {
    background: var(--secondary-700);
    color: white;
    box-shadow: 0 6px 20px rgba(41, 128, 185, 0.45);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-500);
    color: white;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
}

.btn-danger {
    background: var(--error-500);
    color: white;
    box-shadow: 0 4px 14px rgba(218, 68, 83, 0.35);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-200);
    color: var(--primary-700);
}

.btn-outline-primary:hover {
    background: var(--app-primary-soft);
    border-color: var(--primary-300);
    color: var(--primary-800);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
}

.btn-light:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* ==================== FORMS ==================== */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 13px;
}

.form-control,
.form-select,
.custom-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    min-height: 46px;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

.form-select {
    background: var(--app-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--app-primary-glow);
    background: var(--app-surface);
}

.form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--app-primary-glow);
    background: var(--app-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control-lg,
.form-select.form-control-lg,
.custom-select.form-control-lg {
    min-height: 54px;
    padding: 14px 20px;
    font-size: 15px;
}

/* Custom Select Styling to match form inputs */
.custom-select {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
    line-height: 1.5;
}

/* Ensure custom-select matches form-control exactly */
select.custom-select.form-control-lg,
.form-group select.form-control-lg,
.col-md-4 select.form-control-lg {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 20px !important;
    font-size: 15px !important;
    font-weight: 500;
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    color: var(--gray-800) !important;
    background-color: var(--app-surface) !important;
    box-sizing: border-box;
}

select.custom-select.form-control-lg:focus,
.form-group select.form-control-lg:focus,
.col-md-4 select.form-control-lg:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 4px var(--app-primary-glow) !important;
}

.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--app-primary-glow);
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-500);
    font-weight: 500;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--radius-md);
}

/* ==================== ALERTS ==================== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-600);
    border-left: 4px solid var(--success-500);
}

.alert-success::before {
    content: '\f00c';
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border-left: 4px solid var(--warning-500);
}

.alert-warning::before {
    content: '\f071';
}

.alert-danger {
    background: var(--error-50);
    color: var(--error-600);
    border-left: 4px solid var(--error-500);
}

.alert-danger::before {
    content: '\f06a';
}

.alert-info {
    background: var(--secondary-50);
    color: var(--secondary-600);
    border-left: 4px solid var(--secondary-500);
}

.alert-info::before {
    content: '\f129';
}

/* ==================== TABLES ==================== */
.table-container {
    background: var(--app-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--app-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--app-border);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--app-border);
    color: var(--gray-700);
    font-weight: 500;
}

.table tbody tr {
    transition: all 0.15s ease;
}

.table tbody tr:hover {
    background: var(--app-primary-soft);
}

/* İşlemler sütununu sağa hizala */
.table th:last-child,
.table td:last-child {
    text-align: right;
    white-space: nowrap;
}

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

/* ==================== JQUERY UI AUTOCOMPLETE ==================== */
.ui-autocomplete {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    width: 300px;
    z-index: 2000;
}

.ui-menu-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ui-menu-item-wrapper {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--app-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ui-menu-item-wrapper.ui-state-active,
.ui-menu-item-wrapper.ui-state-focus,
.ui-menu-item-wrapper:hover {
    background: var(--app-primary-soft);
    color: var(--primary-700);
    border: none;
    margin: 0;
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
}

.bg-success {
    background: var(--success-100) !important;
    color: var(--success-600) !important;
}

.bg-warning {
    background: var(--warning-100) !important;
    color: var(--warning-600) !important;
}

.bg-danger {
    background: var(--error-100) !important;
    color: var(--error-600) !important;
}

.bg-info {
    background: var(--secondary-100) !important;
    color: var(--secondary-600) !important;
}

.bg-primary {
    background: var(--primary-100) !important;
    color: var(--primary-600) !important;
}

.bg-secondary {
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
}

/* ==================== PAGINATION ==================== */
.pagination {
    gap: 6px;
    margin-top: 30px;
}

.pagination .page-link {
    border-radius: var(--radius-md);
    border: 1px solid var(--app-border);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    min-width: 40px;
    text-align: center;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
    z-index: 1;
}

.pagination .page-item.active .page-link {
    background: var(--app-primary);
    border-color: var(--primary-600);
    color: white;
    box-shadow: 0 4px 12px rgba(61, 174, 233, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-200);
}

/* ==================== LIST GROUPS ==================== */
.list-group {
    border-radius: var(--radius-lg);
    border: 1px solid var(--app-border);
    overflow: hidden;
}

.list-group-item {
    border-color: var(--app-border);
    padding: 16px 20px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.15s ease;
}

.list-group-item:hover {
    background: var(--primary-50);
}

.list-group-item.active {
    background: var(--app-primary);
    border-color: var(--primary-600);
}

.list-group-item-warning {
    background-color: var(--warning-50);
    color: var(--warning-700);
}

/* ==================== FOOTER ==================== */
.app-footer {
    padding: 8px 30px 30px;
    margin-top: auto;
}

.app-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    color: var(--app-text-muted);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.footer-sep {
    opacity: 0.4;
}

/* ==================== LOGIN PAGE ==================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top left, var(--primary-100) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, var(--secondary-100) 0%, transparent 50%),
        radial-gradient(ellipse at center, var(--gray-100) 0%, transparent 70%),
        linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    padding: 24px;
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233daee9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.form-signin {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--glass-border);
    padding: 40px 36px;
    position: relative;
    z-index: 1;
    animation: loginSlideUp 0.6s ease-out;
}

.login-language-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-full);
    background: var(--app-surface);
    box-shadow: var(--shadow-xs);
}

.login-language-switch i {
    font-size: 13px;
    color: var(--gray-500);
}

.login-language-switch .form-select {
    min-height: 28px;
    height: 28px;
    padding: 2px 24px 2px 6px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M3.2 5.2a.75.75 0 0 1 1.06 0L8 8.94l3.74-3.74a.75.75 0 1 1 1.06 1.06l-4.27 4.27a.75.75 0 0 1-1.06 0L3.2 6.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 10px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    box-shadow: none;
    cursor: pointer;
}

.login-language-switch .form-select:focus {
    box-shadow: none;
    border: none;
}

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

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(61, 174, 233, 0.3);
    color: #FFF;
    font-size: 34px;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.login-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 14px;
}

.form-signin .form-control {
    background: white;
}

.form-signin .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--app-primary-glow);
}

.form-signin .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
    background: transparent;
    border: 2px solid var(--primary-200);
    color: var(--primary-700);
    box-shadow: none;
}

.form-signin .btn-primary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-800);
}

.form-signin .alert {
    margin-bottom: 20px;
}

/* Increase spacing for form elements */
.mb-3 {
    margin-bottom: 28px !important;
}

/* ==================== DATA LIST ==================== */
.data-list {
    margin-bottom: 0;
}

.data-list-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-800);
}

.data-list-buttons {
    text-align: right;
}

.data-list-buttons .btn-group {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-list-buttons .btn-group .btn {
border-radius: 0;
border: none;
background: white;
color: var(--primary-700);
font-weight: 600;
font-size: 14px;
padding: 10px 18px;
}

.data-list-buttons .btn-group .btn:hover {
background: var(--gray-100);
color: var(--primary-800);
}

.data-list-buttons .btn-group .btn.active {
background: var(--app-primary);
color: white;
}

/* Add divider between edit and delete buttons */
.data-list-buttons .btn-group form {
    border-left: 1px solid var(--app-border);
    margin-left: 0;
    padding-left: 0;
}

.data-list-buttons .btn-group form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ==================== MODALS ==================== */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--app-border);
    padding: 20px 24px;
}

.modal-title {
    font-weight: 700;
    font-size: 18px;
}

.modal-body {
    padding: 24px;
}

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

/* ==================== DROPDOWNS ==================== */
.dropdown-menu {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    animation: dropdownSlide 0.15s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--app-primary-soft);
    color: var(--primary-700);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--app-border);
}

/* ==================== TABS ==================== */
.nav-tabs {
    border-bottom: 2px solid var(--app-border);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.nav-tabs .nav-link.active {
    color: var(--app-primary);
    border-bottom-color: var(--app-primary);
    background: transparent;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 16px 20px;
    background: var(--gray-50);
}

.accordion-button:not(.collapsed) {
    background: var(--app-primary-soft);
    color: var(--primary-700);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-300);
}

/* ==================== PROGRESS ==================== */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    background: var(--app-primary);
    border-radius: var(--radius-full);
}

/* ==================== TOOLTIPS ==================== */
.tooltip .tooltip-inner {
    background: var(--gray-800);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-weight: 500;
    font-size: 12px;
}

/* ==================== LOADING ==================== */
.spinner-border {
    border-width: 3px;
}

/* ==================== SELECT2 CUSTOMIZATION ==================== */
.select2-container--bootstrap4 .select2-selection {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    min-height: 46px;
    padding: 6px 12px;
}

.select2-container--bootstrap4 .select2-selection:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--app-primary-glow);
}

.select2-dropdown {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.select2-results__option {
    padding: 10px 14px;
    font-weight: 500;
}

.select2-results__option--highlighted {
    background: var(--app-primary-soft) !important;
    color: var(--primary-700) !important;
}

/* ==================== DASHBOARD WIDGETS ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 160px;
}

.quick-action-btn:hover {
    background: var(--app-primary-soft);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 18px;
    color: var(--app-primary);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 260px;
    }

    .app-body main[role="main"] {
        padding: 24px 28px 12px !important;
    }

    .page-title {
        font-size: 26px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 240px;
    }

    .app-body main[role="main"] {
        padding: 20px 24px 12px !important;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Tablet cards 2 columns */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 24px;
    }

    .table thead th,
    .table tbody td {
        padding: 14px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --navbar-height: 64px;
    }

    .app-topbar {
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .app-brand {
        display: inline-flex !important;
        width: auto;
        min-width: auto;
        max-width: none;
        padding: 0 12px;
        font-size: 16px;
        margin-right: 0;
        visibility: visible;
    }

    .app-brand::before {
        display: none;
    }

    .app-brand span {
        display: inline;
        white-space: nowrap;
    }

    .user-menu-wrapper {
        margin-left: auto;
        margin-right: 4px;
        max-width: none;
        flex: 0 0 auto;
        padding: 0;
        width: auto;
    }

    .navbar-toggler,
    .app-topbar .navbar-toggler,
    .app-topbar .navbar-toggler.d-md-none {
        margin-left: 4px;
        margin-right: 8px;
    }

    .user-menu-label {
        display: none;
    }

    .user-menu-dropdown .nav-link {
        padding: 8px 12px;
    }

    .navbar-toggler,
    .app-topbar .navbar-toggler,
    .app-topbar .navbar-toggler.d-md-none {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 8px;
        margin-right: 4px;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-md);
        padding: 10px 14px;
        align-items: center;
        background: var(--app-surface);
        box-shadow: var(--shadow-sm);
        position: relative;
        z-index: 1050;
    }

    .navbar-toggler:active {
        background: var(--gray-100);
    }

    .navbar-collapse {
        width: 100%;
    }

    .navbar-toggler-icon,
    .app-topbar .navbar-toggler-icon {
        display: inline-block !important;
        visibility: visible !important;
        width: 24px !important;
        height: 24px !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23334155' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        background-size: 100% !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--app-border);
        transition: none;
    }

    .app-layout {
        padding-top: 0;
    }

    /* Smooth mobile sidebar collapse - slides from right */
    .app-sidebar.collapse {
        display: block;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        height: auto;
        overflow: hidden;
        transition: transform 0.3s ease-out, opacity 0.25s ease-out;
    }

    .app-sidebar.collapse.show {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .app-sidebar.collapsing {
        display: block;
        height: auto;
        overflow: hidden;
        transition: transform 0.3s ease-out, opacity 0.25s ease-out;
    }

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

    .app-body main[role="main"] {
        margin-left: 0 !important;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 16px 16px 8px !important;
        width: 100%;
    }

    .app-footer {
        margin-left: 0;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
        margin-top: 0;
    }

    .app-footer-inner {
        padding: 6px 12px;
        border-radius: var(--radius-md);
        border: none;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .page-title {
        font-size: 22px;
    }

    .page-actions {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .card-header.d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .data-list-buttons {
        text-align: left;
    }

    .data-list-buttons .btn-group {
        width: 100%;
        display: flex;
    }

    .data-list-buttons .btn-group .btn,
    .data-list-buttons .btn-group form .btn {
        flex: 1;
    }

    .form-signin {
        padding: 28px 20px;
        max-width: 100%;
    }

    .login-title {
        font-size: 20px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-action-btn {
        width: 100%;
    }

    /* Tables - horizontal scroll wrapper */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 640px;
    }

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

    /* Pagination - compact */
    .pagination {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 13px;
    }

    /* Forms - mobile sizing */
    .form-control-lg,
    .form-select.form-control-lg,
    .custom-select.form-control-lg,
    select.custom-select.form-control-lg,
    .form-group select.form-control-lg,
    .col-md-4 select.form-control-lg {
        min-height: 48px !important;
        height: 48px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 14px !important;
    }

    /* Select2 mobile sizing */
    .select2-container--bootstrap4 .select2-selection--single {
        height: 48px !important;
        min-height: 48px !important;
        padding: 10px 40px 10px 14px !important;
        font-size: 14px !important;
    }

    .select2-container--bootstrap4 .select2-selection__arrow {
        height: 46px !important;
    }

    .select2-container--bootstrap4 .select2-results__option {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    /* Reduce vertical spacing */
    .mb-3 {
        margin-bottom: 18px !important;
    }

    /* Filter row spacing on mobile - all fields except first get top margin */
    .row.align-items-end > [class*="col-"]:not(:first-child) {
        margin-top: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .card-header h2,
    .card-header h2.mb-0,
    .card-header span {
        font-size: 16px !important;
    }

    .card-header-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
    }

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

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    /* Page actions buttons full width on mobile */
    .page-actions {
        width: 100%;
        flex-direction: column;
    }

    .page-actions .btn {
        width: 100%;
    }

    /* Alerts - smaller padding */
    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Modals - edge to edge on small screens */
    .modal-dialog {
        margin: 8px;
    }

    .modal-content {
        border-radius: var(--radius-lg);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    /* Dropdowns - full width on mobile context */
    .dropdown-menu {
        max-width: 90vw;
    }

    /* Dashboard stats cards tighter */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    /* User menu more compact */
    .user-menu-dropdown .nav-link {
        padding: 6px 10px;
        font-size: 13px;
        gap: 6px;
    }

    /* Sidebar links touch-friendly but compact */
    .app-sidebar .nav-link {
        padding: 10px 14px;
    }

    .app-sidebar .btn-toggle {
        padding: 10px 14px;
    }

    /* Data list buttons full width */
    .data-list-buttons .btn-group .btn,
    .data-list-buttons .btn-group form .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Footer text smaller */
    .app-footer-inner {
        padding: 12px 16px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Navbar brand smaller */
    .app-brand {
        padding: 0 10px;
        font-size: 15px;
        gap: 8px;
    }

    .app-brand i {
        font-size: 18px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%) border-box;
}

/* ==================== SELECT2 CUSTOM STYLES ==================== */
/* Match Select2 height to form-control-lg (54px) */
.select2-container--bootstrap4 .select2-selection--single {
    height: 54px !important;
    min-height: 54px !important;
    padding: 14px 44px 14px 16px !important;
    font-size: 15px !important;
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    background-color: white !important;
}

.select2-container--bootstrap4 .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--gray-800) !important;
}

.select2-container--bootstrap4 .select2-selection__arrow {
    height: 52px !important;
    width: 32px !important;
    top: 1px !important;
    right: 8px !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gray-500) transparent transparent transparent !important;
    border-width: 5px 5px 0 5px !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: var(--gray-400) !important;
}

/* Focus state matching custom-select */
.select2-container--bootstrap4.select2-container--focus .select2-selection--single,
.select2-container--bootstrap4.select2-container--open .select2-selection--single {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 4px var(--app-primary-glow) !important;
}

/* Dropdown menu styling */
.select2-container--bootstrap4 .select2-dropdown {
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}

.select2-container--bootstrap4 .select2-dropdown--above {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container--bootstrap4 .select2-dropdown--below {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.select2-container--bootstrap4 .select2-results__option {
    padding: 12px 16px !important;
    font-size: 15px !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--selected {
    background-color: var(--primary-50) !important;
    color: var(--primary-700) !important;
}

/* Search field in dropdown */
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 4px var(--app-primary-glow) !important;
    outline: none !important;
}

/* ==========================================================================
   Row Highlight Animation - CRUD Operations
   ========================================================================== */

/**
 * Highlight row after edit/create operations
 * Used in: cities.php, districts.php, and other list views
 */
.highlight-row,
.highlight-row td {
    background-color: #ffeaa7 !important;
    animation: highlightFlash 2s ease-in-out;
}

@keyframes highlightFlash {
    0% { background-color: #ffeaa7; }
    50% { background-color: #fadc78; }
    100% { background-color: #fadc78; }
}

/* ==========================================================================
   Pagination Button Border Radius
   ========================================================================== */

.pagination .page-item:first-child {
    border-radius: 0.5rem 0 0 0.5rem !important;
}

.pagination .page-item:first-child .page-link {
    border-radius: 0.5rem 0 0 0.5rem !important;
}

.pagination .page-item:last-child {
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

.pagination .page-item:last-child .page-link {
    border-radius: 0 0.5rem 0.5rem 0 !important;
}
