/* ===================================
   Modern Professional Admin Theme
   Color Scheme: Purple & Blue Gradient
   =================================== */
html {
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
    --info-color: #4285f4;
    --dark-bg: #202124;
    --darker-bg: #171717;
    --sidebar-bg: #202124;
    --card-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --card-shadow-hover: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --transition-speed: 0.2s;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 60px;
    --border-color: #dadce0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --surface-color: #ffffff;
    --hover-bg: #f1f3f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Sidebar Styles - Collapsible
   =================================== */

.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: none;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.sidebar-wrapper.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #3c4043;
    background: var(--sidebar-bg);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-speed);
}

.sidebar-logo i {
    font-size: 1.25rem;
    color: #4285f4;
    min-width: 28px;
}

.sidebar-logo-text {
    font-size: 1rem;
    font-weight: 500;
    color: #e8eaed;
    letter-spacing: 0.2px;
}

.sidebar-wrapper.collapsed .sidebar-logo-text {
    display: none;
}

.sidebar-wrapper.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar-nav {
    padding: 1rem 0;
    overflow-y: auto;
    height: calc(100vh - 150px);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    margin: 0.125rem 0;
    color: #e8eaed;
    text-decoration: none;
    border-radius: 0 24px 24px 0;
    transition: all var(--transition-speed);
    position: relative;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
}

.nav-link i {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    color: #9aa0a6;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    background: rgba(232, 234, 237, 0.08);
    color: #e8eaed;
}

.nav-link:hover i {
    color: #e8eaed;
}

.nav-link.active {
    background: rgba(138, 180, 248, 0.24);
    color: #8ab4f8;
}

.nav-link.active i {
    color: #8ab4f8;
}

.nav-link.active::before {
    display: none;
}

/* Submenu Styles */
.nav-item.has-submenu > .nav-link {
    position: relative;
}

.nav-item.has-submenu > .nav-link .submenu-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-item.has-submenu > .nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.submenu .nav-item {
    margin: 0.125rem 0;
}

.submenu .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
    padding-left: 2.5rem;
    border-radius: 0 20px 20px 0;
}

.submenu .nav-link i {
    font-size: 0.875rem;
}

.collapse {
    transition: height 0.3s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Collapsed sidebar - hide submenus */
.sidebar-wrapper.collapsed .nav-item.has-submenu > .nav-link .submenu-arrow {
    display: none;
}

.sidebar-wrapper.collapsed .submenu {
    display: none;
}

.sidebar-wrapper.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem;
}

.sidebar-wrapper.collapsed .nav-link span {
    display: none;
}

.sidebar-wrapper.collapsed .nav-link.active::before {
    display: none;
}

/* Tooltip for collapsed sidebar */
.sidebar-wrapper.collapsed .nav-link {
    position: relative;
}

.sidebar-wrapper.collapsed .nav-link::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--dark-bg);
    color: #fff;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
    box-shadow: var(--card-shadow);
    z-index: 1001;
}

.sidebar-wrapper.collapsed .nav-link:hover::after {
    opacity: 1;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   Main Content Area
   =================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    position: relative;
}

.sidebar-wrapper.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
} 

/* Top Navigation Bar */
.top-navbar {
    background: var(--surface-color);
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 64px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-size: 1.25rem;
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mobile-toggle:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mobile-toggle:active {
    transform: translateY(0);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
}

.content-wrapper {
    padding: 1.5rem 2rem;
    /* max-width: 1600px; */
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0;
}

.page-title::before {
    display: none;
}

/* ===================================
   Card Styles
   =================================== */

.card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-speed);
    margin-bottom: 0.75rem;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.9375rem;
}

.card-body {
    padding: 0.75rem;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card.primary .stats-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
}

.stats-card.success .stats-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stats-card.warning .stats-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stats-card.danger .stats-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.25rem;
}

.stats-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stats-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stats-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stats-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ===================================
   Button Styles
   =================================== */

.btn {
    padding: 0.375rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    font-size: 0.8125rem;
    letter-spacing: 0.25px;
}

.btn:hover {
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-warning {
    background: #fbbc04;
    color: #202124;
}

.btn-warning:hover {
    background: #f9ab00;
    color: #202124;
}

.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-info {
    background: var(--info-color);
    color: #fff;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   Form Styles - Modern & Clean
   =================================== */

.form-label {
    font-weight: 500;
    color: var(--dark-bg);
    margin-bottom: 0.375rem;
    display: block;
    font-size: 0.8125rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all var(--transition-speed);
    background: var(--surface-color);
    color: var(--text-primary);
}

.form-control:hover, .form-select:hover {
    border-color: #80868b;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2px;
    padding: calc(0.5rem - 1px) calc(0.75rem - 1px);
    box-shadow: none;
    background: var(--surface-color);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Floating Label Style */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: 1.5rem 1rem 0.5rem;
}

.form-floating .form-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all var(--transition-speed);
    pointer-events: none;
    background: #fff;
    padding: 0 0.25rem;
    color: #94a3b8;
    font-weight: 400;
}

.form-floating .form-control:focus ~ .form-label,
.form-floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 0rem;
    align-items: center;
}

.input-group-text {
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

/* Checkbox & Radio Styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-left: 25px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.form-check-input:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

/* ===================================
   Table Styles - Attractive Design
   =================================== */

.table-responsive {
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    background: #fff;
}

.table thead th {
    background: #fff;
    color: var(--text-secondary);
    padding: 0.875rem 1rem;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 0.8125rem;
    letter-spacing: 0;
    text-transform: none;
}

.table thead th:first-child {
    padding-left: 0.75rem;
}

.table thead th:last-child {
    padding-right: 0.75rem;
}

.table tbody tr {
    background: #fff;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 0.375rem 0.5rem;
    color: var(--text-primary);
    vertical-align: middle;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.table tbody td:first-child {
    padding-left: 0.75rem;
    font-weight: 400;
}

.table tbody td:last-child {
    padding-right: 0.75rem;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell with avatar */
.table-cell-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.625rem;
    flex-shrink: 0;
}

.table-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.table-user-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
}

.status-badge.approved {
    background: #e6f4ea;
    color: #137333;
}

.status-badge.rejected {
    background: #fce8e6;
    color: #c5221f;
}

.status-badge.pending {
    background: #fef7e0;
    color: #b45309;
}

/* Action buttons in table */
.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.table-action-btn.approve {
    background: #7c4dff;
    color: white;
}

.table-action-btn.approve:hover {
    background: #6a3de8;
}

.table-action-btn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.table-action-btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Image cells */
.table tbody td img {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 0.5rem 0 0;
    background: #fff;
}

.dataTables_wrapper .row {
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.dataTables_length {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    font-size: 0.875rem;
}

.dataTables_length select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 0;
    background: #fff;
    color: var(--text-primary);
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.875rem;
}

.dataTables_length select:hover {
    border-color: #80868b;
}

.dataTables_length select:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2px;
    padding: calc(0.375rem - 1px) calc(2rem - 1px) calc(0.375rem - 1px) calc(0.75rem - 1px);
}

.dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    font-size: 0.875rem;
}

.dataTables_filter input {
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 0;
    min-width: 220px;
    background: #fff;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    font-size: 0.8125rem;
}

.dataTables_filter input:hover {
    border-color: #80868b;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2px;
    padding: calc(0.375rem - 1px) calc(0.625rem - 1px);
    background: #fff;
}

.dataTables_info {
    color: var(--text-secondary);
    padding: 0.375rem 0;
    font-weight: 400;
    font-size: 0.75rem;
}

.dataTables_paginate {
    padding: 0.375rem 0;
}

.dataTables_paginate .paginate_button {
    padding: 0.375rem 0.625rem;
    margin: 0 0.125rem;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    min-width: 28px;
    text-align: center;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: #fff;
}

.dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-dark);
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    background: transparent;
    color: #dadce0;
    cursor: not-allowed;
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-weight: 500;
}

/* DataTables Processing Indicator */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

/* Scrollable table container */
.dataTables_scroll {
    border-radius: 8px;
}

.dataTables_scrollHead {
    border-bottom: 1px solid var(--border-color);
}

.dataTables_scrollBody {
    border: none;
}

/* ===================================
   Alert Styles
   =================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--card-shadow);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #1e3a8a;
    border-left: 4px solid var(--info-color);
}

/* ===================================
   Badge Styles
   =================================== */

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    line-height: 1.5;
}

.badge-primary {
    background: #e8f0fe;
    color: #1967d2;
}

.badge-success {
    background: #e6f4ea;
    color: #137333;
}

.badge-danger {
    background: #fce8e6;
    color: #c5221f;
}

.badge-warning {
    background: #fef7e0;
    color: #b45309;
}

.badge-info {
    background: #e8f0fe;
    color: #1967d2;
}

/* ===================================
   Breadcrumb
   =================================== */

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   Loading Animation
   =================================== */

.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
    }

    .sidebar-wrapper.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    body {
        overflow-y: scroll !important;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }
    
    html {
        overflow-y: scroll !important;
    }

    .mobile-toggle {
        display: block;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    /* Responsive font sizes */
    body, .main-content, .content-wrapper, .card, .card-header, .card-body, .table, .form-label, .form-control, .form-select, .btn, .nav-link, .sidebar-logo-text, .page-title, .stats-value, .stats-label, .status-badge, .badge {
        font-size: 0.95rem !important;
    }
    .page-title {
        font-size: 1.1rem !important;
    }
    .sidebar-logo-text {
        font-size: 0.9rem !important;
    }
    .nav-link, .btn, .form-label, .form-control, .form-select, .table thead th, .table tbody td {
        font-size: 0.85rem !important;
    }
    .stats-value {
        font-size: 1.2rem !important;
    }
    .stats-label, .status-badge, .badge {
        font-size: 0.75rem !important;
    }

    /* Touch-friendly tap targets */
    button, .btn, .nav-link, .table-action-btn, .table-action-btn-icon {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem;
    }

    /* Sidebar and navigation adjustments */
    .sidebar-wrapper {
        width: 80vw;
        min-width: 180px;
        max-width: 90vw;
        z-index: 1100;
    }
    .sidebar-header, .sidebar-logo {
        padding: 0.75rem 0.5rem;
    }
    .sidebar-nav {
        padding: 0.5rem 0;
        height: auto;
        max-height: 60vh;
    }

    /* Card and table adjustments */
    .card, .stats-card, .table-responsive {
        border-radius: 8px;
        box-shadow: var(--card-shadow);
        margin-bottom: 1rem;
    }
    .table thead th, .table tbody td {
        padding: 0.5rem 0.5rem;
    }

    /* Hide non-essential columns in tables if needed */
    .table th.hide-mobile, .table td.hide-mobile {
        display: none;
    }

    /* Make images and avatars smaller */
    .user-avatar, .table-user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* Utility: allow horizontal scroll for tables and content */
    .table-responsive, .content-wrapper {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    /* Ensure touch scrolling works everywhere */
    html, body, .main-content, .content-wrapper, .table-responsive {
        touch-action: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Make buttons and form elements full width if needed */
    .btn, .form-control, .form-select {
        width: 100%;
        box-sizing: border-box;
    }
      .mobile-ve{
       display: inline-block !important;
       width: 100%;
    } 
     .mobile-ve2 button{
        min-height: 35px !important;
    }
    .mobile-ve-bt{
        margin-top: 5px !important;
         min-height: 35px !important;
    }
    .mt5{
        margin-bottom: 6px;
    }
    .d-flex {
    display: block !IMPORTANT;
    }
    .scroll{
        overflow: scroll;
    }
    
} 

@media (max-width: 480px) {
    body, .main-content, .content-wrapper, .card, .card-header, .card-body, .table, .form-label, .form-control, .form-select, .btn, .nav-link, .sidebar-logo-text, .page-title, .stats-value, .stats-label, .status-badge, .badge {
        font-size: 0.85rem !important;
    }
    .page-title {
        font-size: 1rem !important;
    }
    .sidebar-logo-text {
        font-size: 0.8rem !important;
    }
    .nav-link, .btn, .form-label, .form-control, .form-select, .table thead th, .table tbody td {
        font-size: 0.75rem !important;
    }
    .stats-value {
        font-size: 1rem !important;
    }
    .stats-label, .status-badge, .badge {
        font-size: 0.65rem !important;
    }
    .sidebar-wrapper {
        width: 80vw;
        min-width: 120px;
        max-width: 100vw;
    }
    .sidebar-header, .sidebar-logo {
        padding: 0.5rem 0.25rem;
    }
    .user-avatar, .table-user-avatar {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    .card, .stats-card, .table-responsive {
        border-radius: 6px;
    }
    .table thead th, .table tbody td {
        padding: 0.3rem 0.3rem;
    }
    .mobile-ve{
        display: inline-block !important;
        width: 100%;
    }
    .mobile-ve2 button{
        min-height: 35px !important;
    }
    .mobile-ve-bt{
        margin-top: 5px !important;
        min-height: 35px !important;
    }
    .mt5{
        margin-bottom: 6px;
    }
    .d-flex {
    display: block !IMPORTANT;
    }
    .scroll{
        overflow: scroll;
    }
}
}

/* ===================================
   Utility Classes
   =================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-sm {
    box-shadow: var(--card-shadow);
}

.shadow-lg {
    box-shadow: var(--card-shadow-hover);
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

/* ===================================
   Animation Classes
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}
.top-navbar
{
    position: absolute;
    width: 100%;;
    left:0;
}
.content-wrapper
{
    padding-top:75px!important;   
}

@media (max-width: 768px) {
    .btn-move-container
    {
        position: fixed;
        /* background: red; */
        width: 128px;
        /* right: 100px; */
        z-index: 1000;
        top: 9px;
        left: 92px;
    }
    .top-navbar
    {
        left:0px;
    }
    .sidebar-wrapper.collapsed ~ .main-content {
    margin-left: 0px!important;
}
}


.modal-body{
  overflow:scroll !important;
    
}