/* ==========================================================================
   WINZONE CRM - AI Modern Theme (ADMIN OVERALL)
   Colorful, user-friendly redesign applied across the whole admin panel
   Loaded automatically via assets_helper.php (custom-css)
   ========================================================================== */

:root {
  /* Brand palette derived from the company logo (blue -> green gradient) */
  --az-primary: #2eb1e8;            /* brand-blue-light  */
  --az-primary-dark: #1e90d0;       /* brand-blue-dark   */
  --az-primary-darker: #1576b2;     /* brand-blue-darker */
  --az-primary-soft: #e8f6fd;       /* brand-blue-soft   */
  --az-secondary: #7dc242;           /* brand-green       */
  --az-secondary-dark: #6ba838;      /* brand-green-dark  */
  --az-secondary-darker: #4a7a26;    /* brand-green-darker*/
  --az-secondary-soft: #eef8e2;      /* brand-green-soft  */
  --az-accent: #6fcef4;
  --az-cyan: #06b6d4;
  --az-success: #7dc242;
  --az-success-dark: #6ba838;
  --az-warning: #f59e0b;
  --az-danger: #ef4444;
  --az-ink: #1e293b;
  --az-gradient: linear-gradient(135deg, #2eb1e8 0%, #7dc242 100%);
  --az-gradient-soft: linear-gradient(135deg, #e8f6fd 0%, #eef8e2 100%);
  --az-radius: 14px;
  --az-radius-sm: 9px;
  --az-shadow: 0 4px 24px rgba(46, 177, 232, 0.12);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f1f5f9 !important;
  color: var(--az-ink);
}

/* ============================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  background: #00263f !important;
}

.sidebar .nav > li > a {
  color: #cbd5e1;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus,
.sidebar .nav > li > a:active {
  color: #f1f5f9;
  background: #1e293b !important;
  border-left: 3px solid #3b82f6;
}

.sidebar .nav > li.active > a {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-left: 3px solid #3b82f6;
}

.sidebar-header {
  background: #001f34 !important;
  border-bottom: 1px solid #1e293b !important;
}

.sidebar .logo img,
.sidebar-header .logo img {
  border-radius: 8px;
  background: #fff;
  padding: 4px 10px;
}

/* ============================================================================
   TOP HEADER
   ========================================================================== */
body.navbar-bg .navbar {
  background: #00263f !important;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar-default .navbar-nav > li > a,
.navbar .navbar-nav > li > a {
  color: #cbd5e1;
}

.topbar .nav > li > a:hover {
  color: #3b82f6 !important;
  background: #1e293b !important;
}

/* ============================================================================
   BODY / CONTENT
   ========================================================================== */
#wrapper,
.page-wrapper,
.content {
  background-color: #f1f5f9 !important;
}

/* ============================================================================
   PANELS / CARDS
   ========================================================================== */
.panel_s,
.panel {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--az-radius);
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.panel_s .panel-heading,
.panel .panel-heading,
.panel_s .panel-heading > * {
  background: var(--az-gradient-soft);
  color: var(--az-ink);
  border: none;
  border-radius: var(--az-radius) var(--az-radius) 0 0;
  font-weight: 600;
}

.panel-heading a {
  color: var(--az-primary);
}

/* ------- Cards for widgets / tasks / stats ------- */
.card,
.panel-body .card,
.widget {
  border-radius: var(--az-radius);
  border: none;
  box-shadow: var(--az-shadow);
  transition: transform 0.15s ease;
}

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

/* ------- Dashboard stat blocks ------- */
.col-md-3 .panel_s > .panel-body,
.widget .panel_s {
  border-radius: var(--az-radius);
}

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  border-radius: var(--az-radius-sm);
  font-weight: 500;
}

.btn.btn-primary, .btn.btn-blue, .btn.btn-info {
  background: #0e5d84;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-blue:hover,
.btn.btn-info:hover {
  background: #0b4d6e;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(14, 93, 132, 0.4);
}

.btn.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
}

.btn.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
}

.btn-default,
.btn.btn-default {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

/* ============================================================================
   FORMS
   ========================================================================== */
.form-control {
  border-radius: var(--az-radius-sm);
  border: 1.5px solid #e2e8f0;
  padding: 8px 13px;
  transition: all 0.18s ease;
}

.form-control:focus {
  border-color: var(--az-primary);
  box-shadow: 0 0 0 4px rgba(46, 177, 232, 0.15);
}

.form-group label {
  font-weight: 600;
  color: #475569;
}

/* ============================================================================
   NAV TABS
   ========================================================================== */
.nav-tabs > li > a {
  border-radius: 10px 10px 0 0;
  font-weight: 500;
  color: #64748b;
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  color: #00263f;
  font-weight: 600;
  border-top: 3px solid #479ed9;
}

/* ============================================================================
   TABLES
   ========================================================================== */
.table.dataTable thead th,
.dataTables_wrapper table thead th,
.table > thead > tr > th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.table > tbody > tr:hover {
  background: #f6f7ff !important;
}

/* ============================================================================
   DROPDOWNS / MODALS
   ========================================================================== */
.dropdown-menu {
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.modal-content {
  border-radius: var(--az-radius);
  border: none;
  box-shadow: 0 20px 60px rgba(76, 29, 149, 0.2);
}

.modal-header {
  background: var(--az-gradient-soft);
  border-radius: var(--az-radius) var(--az-radius) 0 0;
}

.modal-header .modal-title {
  font-weight: 600;
  color: var(--az-ink);
}

/* ============================================================================
   ALERTS
   ========================================================================== */
.alert {
  border-radius: var(--az-radius-sm);
  border: none;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
}

.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.alert-warning {
  background: #fffbeb;
  color: #b45309;
}

.alert-info {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ============================================================================
   LABELS / BADGES / PROGRESS
   ========================================================================== */
.label {
  border-radius: 999px;
}

.label-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.label-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.label-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.label-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.badge {
  background: var(--az-gradient);
}

.progress-bar {
  background: var(--az-gradient);
}

/* ============================================================================
   PAGINATION
   ========================================================================== */
.pagination > li > a,
.pagination > li > span {
  border-radius: 8px;
  margin: 0 2px;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.pagination > li > a:hover {
  color: var(--az-primary);
  background: #e8f6fd;
  border-color: #a5d8f0;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--az-gradient);
  border: none;
}

/* ============================================================================
   TASK / KANBAN BOARDS
   ========================================================================== */
.tasks-kan-ban-board .kan-ban-col .panel-heading {
  background: var(--az-gradient-soft);
  border-radius: var(--az-radius-sm);
}

/* ============================================================================
   LOGIN (admin auth)
   ========================================================================== */
body.authentication,
body.admin-authentication {
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(125, 194, 66, 0.18) 0%, transparent 55%),
    radial-gradient(1000px 500px at -10% -10%, rgba(46, 177, 232, 0.15) 0%, transparent 55%),
    #f8fafc !important;
}

/* ============================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #a5d8f0;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--az-primary);
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .sidebar .nav > li > a {
    border-left: none;
  }
}

/* ============================================================================
   DASHBOARD - USER FRIENDLY
   ========================================================================== */
body.dashboard .content {
  padding-top: 10px;
}

/* Widget card */
body.dashboard .widget {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.dashboard .widget:hover {
  box-shadow: 0 12px 34px rgba(76, 29, 149, 0.12);
  transform: translateY(-2px);
}

body.dashboard .widget .panel_s {
  border: none;
  border-radius: 12px;
  box-shadow: none;
}

/* Top quick stats - colorful cards */
body.dashboard .top_stats_wrapper {
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #e8f6fd 0%, #f5f3ff 100%);
  border: 1px solid #e0e7ff;
  height: 100%;
}

body.dashboard .quick-stats-invoices .top_stats_wrapper {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

body.dashboard .quick-stats-invoices .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

body.dashboard .quick-stats-leads .top_stats_wrapper {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

body.dashboard .quick-stats-leads .progress-bar {
  background: linear-gradient(90deg, #10b981, #059669);
}

body.dashboard .quick-stats-projects .top_stats_wrapper {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: #f0abfc;
}

body.dashboard .quick-stats-projects .progress-bar {
  background: linear-gradient(90deg, #a855f7, #d946ef);
}

body.dashboard .quick-stats-tasks .top_stats_wrapper {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

body.dashboard .quick-stats-tasks .progress-bar {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

body.dashboard .top_stats_wrapper .tw-font-semibold {
  font-size: 18px;
  color: #0f172a !important;
}

body.dashboard .top_stats_wrapper .progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  overflow: hidden;
}

body.dashboard .progress-bar-mini {
  height: 8px;
}

/* Calendar widget */
body.dashboard .fc-view,
body.dashboard .fc-widget-content,
body.dashboard .fc-day-grid-container {
  border-radius: 10px;
}

body.dashboard .fc-toolbar h2 {
  font-weight: 700;
  color: var(--az-ink);
}

/* Finance overview / charts */
body.dashboard .chart {
  border-radius: 12px;
}

/* Panel headings inside dashboard */
body.dashboard .panel_s .panel-heading {
  font-weight: 700;
  font-size: 14px;
}

/* Todos widget items */
body.dashboard .todo-panel ul.todo {
  padding-left: 0;
}

body.dashboard .todo-panel .todo .btn-icon {
  color: #94a3b8;
}

body.dashboard .todo-panel .todo .btn-icon:hover {
  color: var(--az-primary);
}

/* Activity / upcoming events lists */
body.dashboard .activity-feed,
body.dashboard .upcoming-events {
  border-radius: 12px;
}

/* Better spacing for widget grid */
body.dashboard [data-container] > .widget {
  margin-bottom: 4px;
}

/* ============================================================================
   LISTING TABLES (DATATABLES) - CLEAN + USER FRIENDLY
   ========================================================================== */
/* Card-like wrapper around listing tables */
.panel-table-full {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

div.dataTables_wrapper {
  padding-top: 4px;
}

/* Search box (Filter UI - primary) */
div.dataTables_wrapper div.dataTables_filter {
  margin-bottom: 14px;
}

div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  padding: 8px 18px 8px 38px;
  min-width: 280px;
  background: #f8fafc url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center / 16px 16px no-repeat;
  color: #1e293b;
  transition: all 0.18s ease;
}

div.dataTables_wrapper div.dataTables_filter input:hover {
  border-color: #a5d8f0;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: var(--az-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

div.dataTables_wrapper div.dataTables_filter label {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Show-per-page length selector */
div.dataTables_wrapper div.dataTables_length {
  margin-bottom: 14px;
}

div.dataTables_wrapper div.dataTables_length label {
  font-size: 13px;
  color: #64748b;
}

div.dataTables_wrapper div.dataTables_length select {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  padding: 6px 26px 6px 12px;
  background-color: #f8fafc;
  color: #1e293b;
  width: 72px;
  display: inline-block;
  vertical-align: middle;
}

/* Export buttons row */
.dt-buttons .btn {
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  padding: 6px 12px !important;
  margin-right: 4px;
  transition: all 0.15s ease;
}

.dt-buttons .btn:hover {
  background: #e8f6fd !important;
  border-color: #a5d8f0 !important;
  color: var(--az-primary) !important;
}

/* The table itself */
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100% !important;
}

table.dataTable thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 12px 14px !important;
}

table.dataTable thead th:first-child {
  border-radius: 10px 0 0 0;
}

table.dataTable thead th:last-child {
  border-radius: 0 10px 0 0;
}

table.dataTable tbody td {
  padding: 11px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
  font-size: 13.5px;
}

table.dataTable tbody tr {
  transition: background 0.12s ease;
}

table.dataTable tbody tr:hover {
  background: #f6f7ff !important;
}

table.dataTable tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.6);
}

table.dataTable tbody tr:nth-child(even):hover {
  background: #f6f7ff !important;
}

/* Row action buttons */
table.dataTable .btn-icon,
table.dataTable td .btn {
  border-radius: 8px !important;
}

table.dataTable .btn-icon:hover {
  color: var(--az-primary) !important;
}

/* Info text + pagination */
div.dataTables_wrapper div.dataTables_info {
  font-size: 13px;
  color: #64748b;
  padding-top: 14px;
}

div.dataTables_wrapper div.dataTables_paginate {
  padding-top: 10px;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 0;
  border: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > span {
  border-radius: 9px !important;
  margin: 0 3px;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  padding: 6px 12px;
  transition: all 0.15s ease;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a:hover,
div.dataTables_wrapper div.dataTables_paginate ul.pagination > li:not(.disabled) > a:focus {
  background: #e8f6fd;
  border-color: #a5d8f0;
  color: var(--az-primary);
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > span {
  background: var(--az-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* FILTER DROPDOWN BUTTON - user friendly */
.btn-group._filter_data {
  display: inline-flex;
  margin-left: 8px;
}

.btn-group._filter_data > .btn.dropdown-toggle {
  border-radius: 999px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  padding: 8px 16px !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.btn-group._filter_data > .btn.dropdown-toggle i.fa-filter {
  color: var(--az-primary);
}

.btn-group._filter_data > .btn.dropdown-toggle:hover,
.btn-group._filter_data.open > .btn.dropdown-toggle {
  background: var(--az-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-group._filter_data > .btn.dropdown-toggle:hover i.fa-filter,
.btn-group._filter_data.open > .btn.dropdown-toggle i.fa-filter {
  color: #fff;
}

/* Filter dropdown panel */
.btn-group._filter_data .dropdown-menu {
  width: 320px;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 16px 44px rgba(30, 41, 59, 0.16);
  max-height: 70vh;
  overflow-y: auto;
}

.btn-group._filter_data .dropdown-menu > li > a {
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: #475569;
  display: flex;
  align-items: center;
  transition: all 0.12s ease;
}

.btn-group._filter_data .dropdown-menu > li > a:hover {
  background: #e8f6fd;
  color: var(--az-primary);
  padding-left: 18px;
}

.btn-group._filter_data .dropdown-menu > li.active > a {
  background: var(--az-gradient-soft);
  color: var(--az-primary);
  font-weight: 600;
}

.btn-group._filter_data .dropdown-menu > li.divider {
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  height: 1px;
  margin: 6px 0;
}

.btn-group._filter_data .dropdown-submenu > a::after {
  content: '▸';
  margin-left: auto;
  color: #cbd5e1;
}

.btn-group._filter_data .dropdown-submenu > .dropdown-menu {
  margin-top: -6px;
  margin-left: 6px;
}

/* Hide default datatables duplicate search/glyph text if present */
div.dataTables_wrapper div.dataTables_filter .input-group-addon {
  display: none;
}

/* Responsive */
@media (max-width: 767px) {
  div.dataTables_wrapper div.dataTables_filter input {
    min-width: 100%;
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
  }

  .panel-table-full {
    padding: 14px 12px;
  }
}

/* ============================================================================
   ZOHO-LIKE COLORS & THEME
   ========================================================================== */
:root {
  --zoho-primary: #00b8d4;
  --zoho-primary-dark: #0096c7;
  --zoho-secondary: #0c7be8;
  --zoho-success: #2ecc71;
  --zoho-warning: #f39c12;
  --zoho-danger: #e74c3c;
  --zoho-gray: #6c757d;
  --zoho-gradient: linear-gradient(135deg, #00b8d4 0%, #0c7be8 100%);
  --zoho-gradient-soft: linear-gradient(135deg, #e8f7f9 0%, #e1f0f5 100%);
}

/* ============================================================================
   MODERN FORMS - Animated Text Boxes (like Zoho)
   ========================================================================== */
.modern-form .form-group {
  margin-bottom: 24px;
}

.modern-form label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  display: block;
  transition: color 0.2s ease;
}

.modern-form .form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
  color: #2c3e50;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.modern-form .form-control:focus {
  border-color: var(--zoho-primary);
  box-shadow: 0 0 0 3px rgba(12, 155, 184, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.modern-form .form-control::placeholder {
  color: #a0aec0;
  transition: color 0.2s ease;
}

.modern-form .form-control:hover:not(:focus) {
  border-color: #c5d0db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Animated text box with floating label */
.form-floating .form-control {
  padding-left: 16px;
  padding-right: 16px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: 12px;
  color: var(--zoho-primary);
  background: #fff;
  padding: 0 4px;
  transition: all 0.2s ease;
}

/* ============================================================================
   FILTER UI - Modern Filter Panel (like Zoho)
   ========================================================================== */
.filter-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8EDF5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

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

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.filter-group .form-control {
  padding: 12px 14px;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  font-size: 14px;
}

.filter-group .form-control:focus {
  border-color: var(--zoho-primary);
  box-shadow: 0 0 0 3px rgba(12, 155, 184, 0.2);
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.filter-actions .btn {
  padding: 10px 20px;
  font-weight: 600;
}

/* Quick filter buttons */
.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.quick-filters .btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  transition: all 0.2s ease;
}

.quick-filters .btn:hover {
  background: var(--az-gradient);
  border-color: transparent;
  color: #fff;
}

.quick-filters .btn.active {
  background: var(--az-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================================================
   JOBS STATS FOR SUPERADMIN (on dashboard)
   ========================================================================== */
body.dashboard .jobs-stats {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

body.dashboard .jobs-stats h4 {
  font-weight: 700;
  font-size: 16px;
  color: var(--az-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

body.dashboard .job-stat-card {
  display: flex;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--az-gradient-soft);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dashboard .job-stat-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body.dashboard .job-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  margin-right: 14px;
  flex-shrink: 0;
}

body.dashboard .job-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--az-ink);
  margin-bottom: 2px;
}

body.dashboard .job-stat-label {
  font-size: 12px;
  color: var(--az-gray);
  font-weight: 600;
}

/* ============================================================================
   FINANCE CHARTS - SuperAdmin Specific
   ========================================================================== */
body.dashboard .finance-panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

body.dashboard .finance-panel h4 {
  font-weight: 700;
  font-size: 16px;
  color: var(--az-ink);
  margin-bottom: 16px;
}

body.dashboard .finance-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

body.dashboard .finance-stat-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dashboard .finance-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.dashboard .finance-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

body.dashboard .finance-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

body.dashboard .finance-stat-value.positive {
  color: #10b981;
}

body.dashboard .finance-stat-value.negative {
  color: #ef4444;
}

/* ============================================================================
   QR CODE DISPLAY FOR JOBS
   ========================================================================== */
.qr-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--az-gradient-soft);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.qr-code-badge img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.qr-code-badge .qr-code-label {
  font-size: 12px;
  color: var(--az-gray);
  font-weight: 600;
}

/* Job public link button */
.qr-code-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================================================
   TABLES - Enhanced for Jobs listings
   ========================================================================== */
table.dataTable_jobs thead th {
  background: var(--az-gradient-soft) !important;
  color: var(--az-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 14px 12px !important;
}

table.dataTable_jobs tbody td {
  padding: 14px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
  font-size: 14px;
}

table.dataTable_jobs tbody tr:hover {
  background: #f6f7ff !important;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 991px) {
  .filter-row {
    flex-direction: column;
  }
  
  .quick-filters {
    justify-content: center;
  }
}