* {
  box-sizing: border-box;
}
:root {
  primary-color: #0f4c81;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  background: url("../images/bg.jpg");
}
.topbar {
  background: #0f4c81;
  color: #fff;
  padding: 12px 16px;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  font-family: sans-serif;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.user-chip {
  font-size: 14px;
  opacity: 0.9;
}
.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px 40px;
}
.footer {
  text-align: center;
  padding: 16px;
  color: #6b7280;
  font-size: 13px;
 
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  /* box-shadow: 0 1px 3px rgba(0,0,0,.08); */
  /* box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; */
  box-shadow:
    rgb(50 50 93 / 7%) 0px 50px 100px -20px,
    rgb(0 0 0 / 0%) 0px 30px 60px -30px,
    rgb(10 37 64 / 18%) 0px -2px 6px 0px inset;
}
h1,
h2,
h3 {
  margin-top: 0;
  font-size: 18px;
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success {
  background: #e6f7ee;
  color: #067647;
  border: 1px solid #a6e9c4;
}
.alert-error {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f3a9a1;
}
.alert-info {
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid #b9d0ff;
}

label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea {
  resize: vertical;
}

.btn {
  display: inline-block;
  background: #0f4c81;
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
  width: fit-content;
}
.btn:hover {
  background: #0c3c68;
  color: white !important;
}
.btn-secondary {
  background: #6b7280;
}
.btn-danger {
  background: #b42318;
}
.btn-green {
  background: #067647;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  font-weight: 600;
}
tr:nth-child(even) {
  background: #0f4c8103;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}
th {
  background: #f0f3f7;
}
.table-wrap {
  overflow-x: auto;
}

.badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-grey {
  background: #e5e7eb;
  color: #374151;
}
.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.badge-green {
  background: #d1fae5;
  color: #067647;
}
.badge-red {
  background: #fee2e2;
  color: #b42318;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stat-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.stat-box .num {
  font-size: 26px;
  font-weight: 700;
  color: #0f4c81;
}
.stat-box .lbl {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.login-wrap {
  max-width: 380px;
  margin: 60px auto;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    font-size: 13px;
  }
}

/* Print / PDF friendly */
@media print {
  .topbar,
  .footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
.form-control,
.form-control:focus,
.form-select:focus,
.btn-close {
  box-shadow: none !important;
  outline: none !important;
  border: 1px solid #0f4c8130;
}
a {
  color: var(--primary-color);
}
.btn-custom {
  padding: 5px 15px;
  font-size: 13px;
}
.table th,
.table td {
  padding: 5px 10px;
}

/* Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px; /* Scrollbar ki width (slim) */
  height: 6px; /* Horizontal scrollbar ke liye */
}

::-webkit-scrollbar-track {
  background: #f1f5f9; /* Track ka halka shade */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #0f4c81; /* Main color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0a365c; /* Hover karne par dark shade */
}

/* Firefox ke liye */
* {
  scrollbar-width: thin;
  scrollbar-color: #0f4c81 #f1f5f9;
}

/* Flatpickr Custom Theme Styling */
.flatpickr-calendar {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
  padding: 10px !important;
  font-family: inherit !important;
}

/* Header (Month & Year) */
.flatpickr-months {
  background: transparent !important;
  padding-bottom: 5px !important;
}

.flatpickr-current-month {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}

.flatpickr-monthDropdown-months,
.numInputWrapper span {
  font-weight: 600 !important;
  color: #374151 !important;
}

/* Navigation Arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: #4b5563 !important;
  fill: #4b5563 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #0f4c81 !important;
  fill: #0f4c81 !important;
}

/* Weekdays Name Styling */
span.flatpickr-weekday {
  color: #9ca3af !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

/* Days / Dates Styling */
.flatpickr-day {
  border-radius: 8px !important;
  color: #374151 !important;
  font-weight: 500 !important;
  height: 36px !important;
  line-height: 36px !important;
  margin: 2px !important;
}

/* Hover Effect on Days */
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: #eff6ff !important;
  border-color: #eff6ff !important;
  color: #0f4c81 !important;
}

/* Selected Date */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #0f4c81 !important; /* Aap yahan apne project ka primary color daal sakte hain */
  border-color: #0f4c81 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Today Date Outline */
.flatpickr-day.today {
  border: 2px solid #0f4c81 !important;
  background: transparent;
  color: #ffffff !important;
}

.flatpickr-day.today:hover {
  background: #0f4c81 !important;
  color: #fff !important;
}

/* Outside Month Days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #d1d5db !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
/* Select2 Global Custom Styling to Match Your Theme */
.select2-container--default .select2-selection--single {
  height: 42px !important;
  padding: 6px 12px !important;
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #374151 !important;
  display: flex !important;
  align-items: center !important;
}

/* Arrow alignment */
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px !important;
  right: 10px !important;
}

/* Focus & Hover states */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

/* Dropdown list styling */
.select2-dropdown {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  font-family: inherit !important;
}

.select2-search--dropdown .select2-search__field {
  padding: 8px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  outline: none !important;
}

.select2-results__option {
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #374151 !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}
.user-dropdown
{
  padding: 2px 15px;
  background: #155f9f;
  border-radius: 25px;
}
.card-title
{
  background: #0f4c810f;
  width: fit-content;
  padding: 2px 15px;
  border-radius: 15px;
  color: #023e72;
  font-size: 16px;
}
.newbtn
{
  background: #72beff3b;
  color: #0f4c81;
  font-weight: 600;
}
.delete-btn {
  background: #b42318;
  padding: 2px 8px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
}
.delete-btn:hover {
  background: #931910;
}