/** @format */

.navigation-header {
  padding-top: 20px;
}

#main-menu-navigation .nav-item {
  background-color: #003366;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#main-menu-navigation .nav-item a {
  color: rgba(255, 255, 255, 0.796) !important;
}

#main-menu-navigation .nav-item:hover {
  /* background-color: rgba(0, 0, 0, .2) !important; */
}

#main-menu-navigation .active i {
  color: white !important;
}

#main-menu-navigation .active {
  background-color: #673ab7 !important;
  color: white;
}

#main-menu-navigation {
  background-color: #003366;
}

.icon-color {
  color: #ffa500;
}

.main-menu {
  transition: all 500ms ease-in-out 200ms;
}

html body .content .content-wrapper {
  padding: 2.1rem 2rem 0;
}

.card-header .heading-elements,
.card-header .heading-elements-toggle {
  background-color: inherit;
  position: absolute;
  top: 20px;
  right: 20px;
}

.dropdown-toggle::after {
  font-size: 0.8rem;
  font-family: LineAwesome;
  content: '\f110' !important;
  border: none !important;
  position: relative;
  top: 0;
  right: 0;
  padding: 0 2px 0 6px;
  margin: 0 0.3em 0 0;
  vertical-align: 0;
}

.dropdown .dropdown-menu {
  border: 1px solid #e4e5ec;
  border-radius: 0.35rem;
  transform-origin: top;
  transition: all 0.2s linear;
  margin: -0.1rem 0 0;
  box-shadow: 0 5px 75px 2px rgba(64, 70, 74, 0.2);
  min-width: 11rem;
  animation: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1 fadein;
}

.icheckbox_square-blue {
  background-position: 0 0;
}

.icheckbox_square-blue,
.iradio_square-blue {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  background: url('../../app-assets/vendors/css/forms/icheck/square/blue.png') no-repeat;
  border: none;
  cursor: pointer;
}

tr.group,
tr.group:hover {
  background-color: #ededed !important;
}

.btn-group {
  box-shadow: none !important;
}

@media only screen and (max-width: 767px) {

  .nav-link>.ft-menu,
  .nav-link>.material-icons {
    color: #2c343b !important;
  }
}

.nav.nav-tabs.nav-top-border .nav-item a {
  color: #663dac !important;
  font-weight: 600;
}

.nav.nav-tabs.nav-top-border .nav-item a.nav-link.active {
  border-top: 3px solid #663dac !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  color: #555;
}

body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu.menu-fixed .main-menu-content {
  height: auto !important;
}

table {
  width: 100% !important;
}

div.dataTables_processing {

  position: absolute;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  text-align: center;
  background-color: white !important;
  opacity: 0.75;
}

div.dataTables_processing img {
  display: inline-block;
  vertical-align: middle;
}

div.dataTables_processing {
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.spinner-img {
  position: absolute;
  top: 20%;
}

@media only screen and (max-width: 500px) {
  .spinner-img {
    left: 10%;
  }
}

.body-overlay {

  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1000;
  left: 0;
  background-color: white;
  opacity: 0.8;
}

.footer-overlay {
  width: 98%;
  height: 60px;
  z-index: 1000;
  position: absolute;
  left: 0;
  background: white;
  opacity: 0.8;
}

.overlay img {
  width: 155px !important;
}


.drag-drop-container {
  min-height: 150px;
  border: 3px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-bottom: 30px;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  /* For positioning hidden input */
}

.drag-drop-container p {
  margin: 10px 0;
  color: #666;
}

.drag-drop-container.drag-over {
  border-color: #007bff;
  background-color: #e6f7ff;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Style for the clickable text */
.drag-drop-container .click-to-select {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.drag-drop-container .click-to-select:hover {
  color: #0056b3;
}

/* Hidden file input */
.hidden-file-input {
  display: none;
}

.file-list {
  list-style-type: none;
  padding: 0;
  margin-top: 15px;
  width: 100%;
  max-height: 200px;
  /* Limit height for long lists */
  overflow-y: auto;
  /* Enable scrolling if list is too long */
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.file-list li {
  background-color: #f9f9f9;
  margin-bottom: 5px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  color: #555;
}

.file-list li span {
  word-break: break-all;
  /* Ensure long file names wrap */
  flex-grow: 1;
  /* Allow name to take available space */
}

.file-list li .file-size {
  font-size: 0.8em;
  color: #888;
  margin-left: 10px;
  white-space: nowrap;
}

.file-list li .remove-file {
  margin-left: 15px;
  color: #ff4d4f;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.2s ease;
}

.file-list li .remove-file:hover {
  color: #e00;
}

/* Scrollbar styling for file list (optional) */
.file-list::-webkit-scrollbar {
  width: 8px;
}

.file-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.dp-file-name {
  width: 70%;
  text-align: left;
}

.file-list li {
  /* ... (existing rules) ... */
  display: flex;
  align-items: center;
  /* Align items vertically in the middle */
}

.file-list li .file-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  /* Prevent text overflow from pushing controls */
  width: 90%;
}

.file-list li .file-name {
  word-break: break-all;
  /* Ensure long file names wrap */
  flex-grow: 1;
  /* Allow name to take available space */
  margin-right: 10px;
  /* Space between name and size/preview */
  text-align: left;
  width: 60%;
  ;
}

.file-list li .file-preview {
  width: 40px;
  /* Fixed width for preview container */
  height: 40px;
  /* Fixed height for preview container */
  margin-right: 10px;
  /* Space between preview and file name */
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  /* Prevent preview from shrinking */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
}

.file-list li .file-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ensure image fits within bounds */
  display: block;
}

.file-list li .file-preview .placeholder-icon {
  font-size: 1.5em;
  color: #999;
}

/* Ensure the file-size and remove-file are still aligned */
.file-list li .file-size,
.file-list li .remove-file {
  flex-shrink: 0;
  /* Prevent these from shrinking */
}



:root {
  --primary: #0F172A;
  --secondary: #3B82F6;
  --accent: #06B6D4;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
}

.app-content {
  font-family: system-ui, -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
}


/* Main Container */
.main-container {
  /* border: 1px solid red; */
  background-color: white;
  padding: 20px;
  border-radius: 12px;
}

/* Card Styles */
/* .custom-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        } */

/* .custom-card:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        } */

/* Toolbar */
/* .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
            gap: 1rem;
            border: 1px solid red;
        } */

.search-box {
  /* position: relative; */
  /* flex: 1; */
  text-align: end;
  min-width: 100px;
  max-width: 110px;
  justify-content: flex-end;
}

/* .search-box input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 3rem;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        } */

/* .search-box  {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        } */


/* Table Styles */
.table-container {
  padding: 1.5rem;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  margin: 0;
}

.custom-table thead {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
}

.custom-table thead th {
  background-color: white;
  color: gray !important;
  border: none;
  font-weight: 500;
}

.custom-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
  background: #F8FAFC;
  /* transform: scale(1.01); */
}

.custom-table tbody td {
  padding: 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-overdue {
  background-color: #f8d7da;
  color: #721c24;
}

.status-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Action Dropdown */
.action-dropdown {
  position: relative;
}

.action-btn {
  background: black;
  /* border: 1px solid var(--border); */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
}


.dropdown-menu {
  min-width: 150px;
  /* border: 1px solid var(--border); */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  border-radius: 10px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}



.dropdown-item i {
  width: 18px;
}

/* Modal Styles */
.modal-content {
  border-radius: 16px;
  border: none;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); */
}

/* .modal-header {
            background: linear-gradient(135deg, var(--primary) 0%, #1E3A8A 100%);
            color: white;
            padding: 1.5rem;
            border-radius: 16px 16px 0 0;
            border: none;
        } */

/* .modal-header h5 {
            font-weight: 700;
        }

        .modal-header .btn-close {
            filter: invert(1);
        }

        .modal-body {
            padding: 2rem;
        } */

/* Custom Tabs */
/* .nav-tabs {
            border: none;
            gap: 0.5rem;
            margin-bottom: 2rem;
        } */

/* .nav-tabs .nav-link {
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 0.75rem 1.5rem;
            color: var(--text-secondary);
            font-weight: 600;
            transition: all 0.3s ease;
            background: white;
        } */

/* .nav-tabs .nav-link:hover {
            border-color: var(--secondary);
            color: var(--secondary);
            background: rgba(59, 130, 246, 0.05);
        } */

/* .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
            border-color: var(--secondary);
            color: white;
        } */

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary);
  /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); */
}

.form-check-input:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

/* Repeating Form Styles */
.repeating-section {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--light);
  position: relative;
  transition: all 0.3s ease;
}

.repeating-section:hover {
  border-color: var(--secondary);
  background: white;
}

.remove-item {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-item:hover {
  transform: scale(1.1);
  /* box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); */
}

.add-item {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.add-item:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); */
}

/* Button Styles */
/* .btn-primary {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
           
        } */

/* .btn-secondary {
            background: var(--light);
            border: 2px solid var(--border);
            color: var(--text-primary);
            padding: 0.75rem 2rem;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            border-color: var(--secondary);
            color: var(--secondary);
            background: white;
        } */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .table-container {
    padding: 1rem;
  }

  .custom-table thead th,
  .custom-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
}




/* .dropdown-menu {
            z-index: 9999 !important;
        } */
.table-responsive,
.table-container {
  padding-bottom: 100px !important;
  /* Creates space for the dropdown */
}


.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: #FFFAF8 !important;
  color: #F50A0A !important;
  border: 1px solid #FDE9E187;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}


.nav-pills .nav-link:hover {
  color: #F50A0A;
  border: 1px solid #FDE9E187;
  border-radius: 20px;
  /* font-weight: 600; */
  font-size: 14px;
}