:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --sidebar-width: 220px;
}

/* Container */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.sm\:hidden { display: none; }
.hidden { display: none; }
.sm\:flex { display: flex; }
.sm\:items-center { align-items: center; }
.sm\:justify-between { justify-content: space-between; }
.rtl\:flex-row-reverse { flex-direction: row-reverse; }
.relative { position: relative; }
.inline-flex { display: inline-flex; }
.z-0 { z-index: 0; }

/* Text & font */
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.dark\:text-gray-600 { color: #4b5563; }
.dark\:text-gray-300 { color: #d1d5db; }
.leading-5 { line-height: 1.25rem; }

/* Background & borders */
.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.dark\:bg-gray-700 { background-color: #374151; }
.dark\:bg-gray-800 { background-color: #1f2937; }
.border { border-width: 1px; border-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.dark\:border-gray-600 { border-color: #4b5563; }
.rounded-md { border-radius: 0.375rem; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.cursor-default { cursor: default; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:text-gray-400:hover { color: #9ca3af; }

/* Spacing */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.-ml-px { margin-left: -1px; }

/* Focus and active */
.focus\:outline-none:focus { outline: 0; }
.focus\:z-10:focus { z-index: 10; }
.focus\:ring:focus { box-shadow: 0 0 0 3px rgba(66,153,225,0.5); } /* approximate Tailwind ring */
.focus\:border-blue-300:focus { border-color: #93c5fd; }
.dark\:focus\:border-blue-700:focus { border-color: #1d4ed8; }
.dark\:focus\:border-blue-800:focus { border-color: #1e40af; }
.active\:bg-gray-100:active { background-color: #f3f4f6; }
.active\:bg-gray-700:active { background-color: #374151; }
.active\:text-gray-700:active { color: #374151; }
.active\:text-gray-500:active { color: #6b7280; }
.transition { transition-property: all; transition-duration: 150ms; transition-timing-function: ease-in-out; }
.ease-in-out { transition-timing-function: ease-in-out; }
.duration-150 { transition-duration: 150ms; }

/* SVG */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.fill-current { fill: currentColor; }

/* Dark mode (optional) */
.dark .dark\:bg-gray-800 { background-color: #1f2937; }
.dark .dark\:bg-gray-700 { background-color: #374151; }
.dark .dark\:border-gray-600 { border-color: #4b5563; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:hover\:text-gray-300:hover { color: #d1d5db; }
.dark .dark\:active\:bg-gray-700:active { background-color: #374151; }

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* Margin Left */
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

/* Margin Right */
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

/* Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Padding Left */
.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }

/* Padding Right */
.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }

/* Margin All Sides */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

/* Padding All Sides */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}
label {
margin-bottom: 5px;
}
h4{
    margin: 5px;
}
/* Card wrapper */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-body {
  padding: 1.25rem;
}

/* Row system (flexbox grid) */
.row {
  display: flex;
  flex-wrap: wrap;
}

.g-3 {
  gap: 1rem; /* spacing between columns */
}

/* Column widths */
.col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-md-11 { flex: 0 0 91.666%; max-width: 91.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Form elements */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.47rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Button */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  padding: 0.47rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.w-100 {
  width: 100%;
}

.d-flex {
  display: flex !important;
}

.align-items-end {
  align-items: flex-end !important;
}
/* Card wrapper */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-body {
  padding: 1.25rem;
}

.g-3 {
  gap: 1rem; /* spacing between columns */
}

/* Column widths */
.col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-md-11 { flex: 0 0 91.666%; max-width: 91.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Form elements */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.47rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}


.w-100 {
  width: 100%;
}

.d-flex {
  display: flex !important;
}

.align-items-end {
  align-items: flex-end !important;
}
.gap-1 {
  gap: 0.25rem !important; /* 4px */
}

.gap-2 {
  gap: 0.5rem !important; /* 8px */
}

.gap-3 {
  gap: 1rem !important; /* 16px */
}

.gap-4 {
  gap: 1.5rem !important; /* 24px */
}

.gap-5 {
  gap: 3rem !important; /* 48px */
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

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

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}



.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}
table a {
    color: #3498db; /* primary blue */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

table a:hover {
    color: #1abc9c; /* teal on hover */
}

/* If you want it styled more like a button */
a.link-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: #3498db;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

a.link-button:hover {
    background-color: #2980b9; /* darker blue */
    text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu li.active .menu-link,
.open li.submenu-itm.active a {
    background-color: rgb(66 167 80);
    border-bottom: 1px solid #ddd;
    color: white;
}
.alert.alert-success {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: #27ae60; /* success green */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #1e8449; /* darker green accent */
}

.sidebar-menu i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-submenu {
    list-style: none;
    display: none;
}

/* .sidebar-submenu a {
    padding: 10px 20px;
    font-size: 0.9rem;
} */

.sidebar-menu li.active .sidebar-submenu {
    display: block;
}
a.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
}
.logo img {
    max-width: 40px;
}
.logo span {
    font-size: 14px;
}
/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px 8px 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    font-size: 0.9rem;
}

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

.user-info {
    display: flex;
    align-items: center;
    position: relative;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 100;
    display: none;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}
/* Typography inside card */
.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.card p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #555;
    padding-bottom: 5px;
}

.card small {
    font-size: 0.8rem;
    color: #888;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    color: #666;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-icon.primary {
    background-color: var(--primary-color);
}

.card-icon.success {
    background-color: var(--success-color);
}

.card-icon.warning {
    background-color: var(--warning-color);
}

.card-icon.danger {
    background-color: var(--danger-color);
}

.card-icon.info {
    background-color: var(--info-color);
}

.card-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-description {
    font-size: 0.9rem;
    color: #888;
}

.card-link {
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* Content Sections */
.content-section {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #c0392b !important;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #16a085;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
}

table tr:hover {
    background-color: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.badge-info {
    background-color: rgba(26, 188, 156, 0.2);
    color: var(--info-color);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 5px 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Charts */
.chart-container {
    height: 300px;
    margin-bottom: 20px;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--warning-color);
}

/* Task List */
.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 10px;
}

.task-text {
    flex: 1;
}

.task-date {
    font-size: 0.8rem;
    color: #888;
}

/* File Upload */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.file-upload:hover i {
    color: var(--primary-color);
}
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    color: #333;
    display: none;
}
/* Sidebar Close Button */
.sidebar-close {
    position: absolute;
    top: 21px;
    right: 7px;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1100;
    background: #535f53;
    border-radius: 100px;
    width: 33px;
    height: 33px;
    display: none;
}

.sidebar-close:hover {
    color: #ff4d4d; /* red hover effect */
}
.submenu-itm a {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    padding: 10px 20px;
}
.btn-group {
    white-space: nowrap;
    display: flex;
    gap: 5px;
    align-items: center;
}
.submenu-itm i {
    margin: 0;
    font-size: 10px;
}
/* .submenu-itm {
    display: flex;
    gap: 5px;
    align-items: center;
} */
/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        z-index: 9999999;
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    /* .sidebar-header .logo,
    .sidebar-menu span {
        display: none;
    } */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 9999;
    }
    .header h1 {
        margin-left: 50px;
        font-size: 20px;
    }
    .section-title{
        font-size: 18px;
    }
    .main-content {
        margin-left: 0;
        margin-top: 60px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 150px;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background-color: #eee;
}

.timeline-item {
    position: relative;
    margin-left: 60px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -45px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.timeline-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.sent {
    justify-content: flex-end;
}

.chat-message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 8px;
}

.chat-message.received .chat-message-content {
    background-color: #f8f9fa;
}

.chat-message.sent .chat-message-content {
    background-color: var(--primary-color);
    color: white;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
}

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

.kanban-column {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.kanban-column-header {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.kanban-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.kanban-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* territory */

/* Page container */
.view-territory {
    max-width: 900px;
    margin: 0 auto;
}

/* Main card */
.territory-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

/* Title */
.territory-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

/* Description */
.territory-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 5px;
}

/* Small text */
.territory-card small {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Section headings */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 5px;
}

/* List groups */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-group li {
    background: #f9fafb;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #374151;
}

/* Buttons */
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    /* margin-bottom: 15px; */
}
.btn-secondary:hover {
    background: #e5e7eb;
}

/* View Territory Page */
.view-territory {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Territory Card */
.territory-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.territory-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.territory-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 6px;
}

.territory-card small {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Related Data Sections */
.related-section {
    margin-top: 30px;
}

.related-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

/* List Groups for Sales Officers / Dealers */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    background-color: #f9fafb;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.related-list li:hover {
    background-color: #f3f4f6;
}

/* Back Button */
.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 16px;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #e5e7eb;
}

/* Section Dividers */
.section-divider {
    margin: 25px 0;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .territory-card {
        padding: 20px;
    }
    .related-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}
.action-buttons {
    display: flex;
    gap: 5px;
}
/* Shopify-style search form aligned right */
.search-form {
    position: relative;
    max-width: 300px;
    margin-left: auto;  /* push to the right */
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px; /* space for icon on the right */
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
    outline: none;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    padding: 0 10px;
}

.search-form button:hover {
    color: #4CAF50;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .search-form input[type="text"] {
        font-size: 13px;
        padding: 8px 35px 8px 12px;
    }

    .search-form button {
        font-size: 14px;
    }
}


.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.stat-card {
    flex: 1 1 200px; /* grow, shrink, min width */
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #7f8c8d;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .summary-cards {
        flex-direction: column;
        align-items: stretch;
    }
    .stat-card {
        max-width: 100%;
    }
}
/* ----------- Modern Slim Pagination ----------- */
nav[aria-label="Pagination Navigation"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

/* General page buttons */
nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span[class*="inline-flex"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px !important;
  border-radius: 9999px !important;   /* pill shape */
  color: #374151 !important;
  font-weight: 500;
  line-height: 1 !important;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

/* Hover */
nav[aria-label="Pagination Navigation"] a:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

/* Active page */
nav[aria-label="Pagination Navigation"] span[aria-current="page"] .relative.inline-flex {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  font-weight: 600;
}

/* Disabled (prev/next when unavailable) */
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] span {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
}

/* Prev/Next arrows */
nav[aria-label="Pagination Navigation"] a[rel="prev"],
nav[aria-label="Pagination Navigation"] a[rel="next"],
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] {
  min-width: 32px !important;
  padding: 0 !important;
}

/* Icons */
nav[aria-label="Pagination Navigation"] svg {
  width: 14px !important;
  height: 14px !important;
  margin: 0;
}

/* Hide the long “Showing x to y of z results” on mobile */
@media (max-width: 640px) {
  nav[aria-label="Pagination Navigation"] .hidden.sm\:flex-1 {
    display: none !important;
  }
}
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: Arial, sans-serif;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px; /* Indent list */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.filter-form label {
    font-weight: 500;
    margin-right: 10px;
}
nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span[class*="inline-flex"] {
    margin: 10px;
    padding: 9px !important;
}
 nav[aria-label="Pagination Navigation"] a{ background: #fff !important;

     border: 1px solid #e5e7eb !important;
 }
