:root {
    --primary: #1D3557;
    --secondary: #3D8EBB;
    --success: #2ECC71;
    --danger: #E63946;
    --warning: #E68A39;
    --info: #028090;
    --light: #F5F5F5;
    --dark: #001E41;
    --Whight: #ffffff;
    --Gradiant: linear-gradient(136deg, #FF4B4B -34.99%, #5675E1 -11.43%, #3C8EEE 13.59%, #348DF6 33.47%, #2C70F5 51.13%, #728CEB 67.32%, #6FADF6 86.46%, #1774FF 106.33%);
    --GradiantHover: linear-gradient(136deg, #ff2c2c -34.99%, #375be0 -11.43%, #2072cf 13.59%, #1573de 33.47%, #0e50d3 51.13%, #2c49b1 67.32%, #2061ab 86.46%, #074bb0 106.33%);
}

a{
    text-decoration: none;
}
/* ===== Background & Card ===== */
.CustomBg1 { background-color: var(--dark) !important; }
.card {
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
/* ===== Form ===== */
.form-check-input:checked { background-color: #e63946; border-color: #e63946; }
.mdi { color: var(--primary); }
.is-invalid {
    border-color: #dc3545 !important;
}

/* Password Error Animation */
#password-error {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
#password-error.show {
    visibility: visible;
    opacity: 1;
}
.forgot-password {
    position: relative;
    color: var(--info);
}

.forgot-password::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--info);
    transition: width 0.3s;
}

.forgot-password:hover::after {
    width: 100%;
}


/* ===== Buttons ===== */
.btn-lg { padding: 12px 16px; font-size: 17.5px; border-radius: 4.8px; }
.btn-primary {
    background: var(--Gradiant);
    border: none !important;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--GradiantHover); }

/* ===== Text ===== */
.text-primary{
    color: var(--primary) !important;
}

.text-primary:hover{
    color: var(--info) !important;
}

.user-image {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    object-position: top;
    border-radius: 50%; /* circle */
}


/* ===== Compact Spacing ===== */
/* 
@media (max-width: 767.98px) {
.ec-header-fixed .ec-page-wrapper{
    padding-top: 0 !important;
}
} */

/* ===== Dashboard Templates CSS ===== */

/* Recent Customers */
.customer-table tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Recent Financial */
.recent-financial-item:hover {
  background-color: #f8f9fa !important;
}

/* Invoice Index - DataTables Custom Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0px;
    margin-left: -1px;
    border: none;
    color: #6c757d !important;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-block;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 17px;
    text-align: center;
    position: relative;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background : #001e41 !important;
    color: #fff !important;
    border-color: #001e41 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    z-index: 3;
    color: #6d88c2 !important;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(136, 170, 243, 0.25);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6d88c2 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    z-index: 3;
    color: #fff !important;
    background: #001e41 !important;
    border-color: #001e41 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    background: #001e41 !important;
    border-color: #001e41 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background-color: #fff;
    border-color: #dee2e6;
    color: #6c757d !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:first-child {
    margin-left: 0;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    padding: 5px 10px;
    color: #6c757d !important;
    cursor: default;
    pointer-events: none;
    border: 1px solid #dee2e6;
    background-color: #fff;
    margin-left: -1px;
}

@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 0.75rem;
    }
}

#invoicesTable i.mdi {
    visibility: visible !important;
    display: inline-block !important;
    opacity: 1 !important;
    font-size: 1.2rem;
    line-height: 1;
}

#invoicesTable .btn i.mdi {
    margin: 0;
}

#invoicesTable td .d-flex {
    visibility: visible !important;
    display: flex !important;
}

#invoicesTable td .btn {
    visibility: visible !important;
    display: inline-block !important;
    opacity: 1 !important;
}

/* Invoice Detail */
.invoice-header-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.invoice-header-card .text-white-50 {
  color: rgba(255, 255, 255, 0.8) !important;
}
.invoice-info-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.invoice-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.invoice-section-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.invoice-section-card .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.5rem;
}
.invoice-section-card .card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}
.invoice-table {
  margin: 0;
}
.invoice-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.invoice-table thead th {
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem 1rem;
}
.invoice-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.invoice-table tbody tr {
  transition: all 0.2s ease;
}
.invoice-table tbody tr:hover {
  background-color: #f8f9fa;
}
.summary-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.summary-item:last-child {
  border-bottom: none;
}
.net-amount-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.amount-in-words {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  margin-top: 1rem;
}
.bank-details-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.bank-details-item:last-child {
  border-bottom: none;
}
.bank-label {
  font-weight: 600;
  color: #6c757d;
  min-width: 110px;
  display: inline-block;
}
.bank-value {
  color: #212529;
}
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}
.status-paid {
  background: #d4edda;
  color: #155724;
}
.status-unpaid {
  background: #fff3cd;
  color: #856404;
}

/* Settings Styles */
@media (max-width: 575.98px) {
  .breadcrumb-wrapper h1 { font-size: 1.125rem; }
  .card-body { padding: 0.75rem; }
}
.tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: .25rem;
}
.tabs-scroll .nav-link { white-space: nowrap; }
@media (max-width: 767.98px) {
  .tab-content { overflow-x: auto; }
}

/* OTP Modal Custom Styles */
#emailOtpModal .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#emailOtpModal .input-group-text {
  transition: all 0.3s ease;
}

#emailOtpModal .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#emailOtpModal .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#emailOtpModal #modal-otp {
  transition: all 0.3s ease;
}

#emailOtpModal #modal-otp:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: scale(1.02);
}

#emailOtpModal .btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#emailOtpModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#emailOtpModal .btn-primary:active {
  transform: translateY(0);
}

#emailOtpModal .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#emailOtpModal #resend-otp-link {
  transition: all 0.3s ease;
}

#emailOtpModal #resend-otp-link:hover {
  color: #764ba2 !important;
  text-decoration: underline !important;
}

#email-input-step,
#otp-input-step {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#emailOtpModal .alert {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#emailOtpModal .rounded-circle {
  transition: transform 0.3s ease;
}

#emailOtpModal .rounded-circle:hover {
  transform: scale(1.1);
}

#emailOtpModal .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

#otp-message.alert {
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

@media (max-width: 576px) {
  #emailOtpModal .modal-body {
    padding: 1.5rem !important;
  }

  #emailOtpModal #modal-otp {
    width: 100% !important;
    max-width: 200px;
  }

  #emailOtpModal .modal-header {
    padding: 1rem !important;
  }

  #emailOtpModal .modal-title {
    font-size: 1.1rem !important;
  }
}

#emailOtpModal .input-group:focus-within .input-group-text {
  border-color: #667eea;
  background-color: #f8f9ff;
}

/* Navbar Styles */
.ec-main-header,
.ec-main-header .navbar {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
.ec-main-header .btn:focus,
.ec-main-header .btn:active,
.ec-main-header .btn:focus:active,
.ec-main-header .sidebar-toggle:focus,
.ec-main-header .sidebar-toggle:active,
.ec-main-header .dropdown-toggle:focus,
.ec-main-header .dropdown-toggle:active,
.ec-main-header .nav-link:focus,
.ec-main-header .nav-link:active,
.ec-main-header button:focus,
.ec-main-header button:active,
.ec-main-header .show > .dropdown-toggle {
  box-shadow: none !important;
  outline: none !important;
}
@media (max-width: 575.98px) {
  .ec-main-header .navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  #sidebar-toggler {
    padding: 0.25rem;
  }
  #fullscreen-toggler {
    padding: 0.25rem;
  }
  .navbar-right .nav {
    gap: 0.25rem;
  }
  .user-image {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
  }
}

/* Sidebar Menu Owner */
.sidenav-item-link .icon-expanded { display: none; }
.sidenav-item-link[aria-expanded="true"] .icon-expanded { display: inline-block; }
.sidenav-item-link[aria-expanded="true"] .icon-collapsed { display: none; }
.sidenav-item-link .icon-collapsed { display: inline-block; }

/* User Dropdown */
@media (max-width: 575.98px) {
  .ec-dropdown-menu {
    width: calc(100vw - 16px);
    max-width: none;
    left: -160px !important;
    right: 0px !important;
    transform: none !important;
    margin-top: .25rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .ec-dropdown-menu .dropdown-header {
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .ec-dropdown-menu .user-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
  }
}

/* Profile Styles */
@media (max-width: 575.98px) {
  #profileTabs { gap: .5rem; }
  #profileTabs .nav-link { white-space: nowrap; }
}

/* Footer Copyright */
@media (max-width: 575.98px) {
  .footer .copyright p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* About Page */
@media (max-width: 575.98px) {
  .list-group .list-group-item { white-space: nowrap; }
}

/* Find Employee - Filter Card Styles */
.filter-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: none !important;
}

.filter-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-header h6 {
    color: #2c3e50;
    font-size: 1.05rem;
}

.filter-label {
    color: #495057;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    white-space: nowrap;
}

.filter-input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    height: 38px;
}

.filter-input-group {
    height: 38px;
}

.filter-input-group .filter-input {
    padding: 0.55rem 0.5rem;
    font-size: 0.875rem;
    height: 100%;
}

.filter-input-group .input-group-text {
    padding: 0.55rem 0.35rem;
    font-size: 0.875rem;
    height: 100%;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.filter-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    outline: none;
}

.filter-input-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.filter-input-group .filter-input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.filter-input-group .filter-input:first-child {
    border-right: 1px solid #dee2e6;
}

.filter-input-group .filter-input:focus {
    border-color: transparent;
    box-shadow: none;
    z-index: 1;
}

.filter-input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.filter-input-group .input-group-text {
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-btn {
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: none !important;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.filter-btn.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.filter-btn.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.filter-btn.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.candidates-card {
    box-shadow: none !important;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.candidates-card .card-header {
    border-bottom: 1px solid #e9ecef !important;
    background: #ffffff;
}

.candidate-card {
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: none !important;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.candidate-card:hover, .candidate-card:focus-within {
    box-shadow: none !important;
    transform: translateY(-2px);
    border-color: #0d6efd;
}

@media (max-width: 991.98px) {
    .filter-card {
        padding: 1.25rem;
    }
    .candidate-card { 
        margin-bottom: 1.1rem; 
    }
    .row.g-3 > [class^="col-"] { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
}

@media (max-width: 575.98px) {
    .filter-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .filter-header h6 {
        font-size: 0.95rem;
    }
    .candidate-card .fw-bold { 
        font-size: 1.09rem !important; 
    }
    .candidate-card { 
        margin-bottom: .65rem;
    }
    .btn, .badge { 
        font-size: .96rem;
    }
    .filter-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.fs-8 { 
    font-size: .95em; 
}

.fs-7 { 
    font-size: .83em; 
}

.btn-light-yellow {
  background: #f8f5ba;
  border: 1px solid #9f9c51;
}

.btn-light-yellow:hover {
  background: #e7d982 !important;
  border: 1px solid #9f9c51 !important;
  color: #000 !important;
}

:root {
  /* ---- Primary (Blue) ---- */
  --primary-1: #B3D9FF;
  --primary-2: #99CCFF;
  --primary-3: #66B3FF;
  --primary-4: #3399FF;
  --primary-5: #0080FF;

  /* ---- Danger (Pink) ---- */
  --danger-1: #FAA6E1;
  --danger-2: #F88ED8;
  --danger-3: #F45FC8;
  --danger-4: #F12FB7;
  --danger-5: #ED00A6;

  /* ---- Success (Green) ---- */
  --success-1: #27D6BE;
  --success-2: #3CE26E;

  /* ---- Info (Blue-Light) ---- */
  --info-1: #99CCFF;
  --info-2: #3399FF;

  /* Text */
  --white-text: #ffffff;
}

.bg-primary, .btn-primary {
  background: linear-gradient(
      136deg,
      var(--primary-1) -35%,
      var(--primary-2) -11%,
      var(--primary-3) 14%,
      var(--primary-4) 33%,
      var(--primary-5) 51%,
      var(--primary-4) 67%,
      var(--primary-3) 86%,
      var(--primary-1) 106%
  ) !important;
  color: var(--white-text) !important;
  border: none !important;
}

.btn-primary:hover {
  opacity: .9;
}

.bg-danger, .btn-danger {
  background: linear-gradient(
      136deg,
      var(--danger-1) -35%,
      var(--danger-2) -11%,
      var(--danger-3) 14%,
      var(--danger-4) 33%,
      var(--danger-5) 51%,
      var(--danger-4) 67%,
      var(--danger-3) 86%,
      var(--danger-1) 106%
  ) !important;
  color: var(--white-text) !important;
  border: none !important;
}

.btn-danger:hover {
  opacity: .9;
}

.bg-success, .btn-success {
  background: linear-gradient(
      136deg,
      var(--success-1) -20%,
      var(--success-2) 120%
  ) !important;
  color: var(--white-text) !important;
  border: none !important;
}

.btn-success:hover {
  opacity: .9;
}

.bg-info, .btn-info {
  background: linear-gradient(
      136deg,
      var(--info-1) -20%,
      var(--info-2) 120%
  ) !important;
  color: var(--white-text) !important;
  border: none !important;
}

.btn-info:hover {
  opacity: .9;
}


.bg-warning, .btn-warning {
  background: linear-gradient(136deg, #ffe9a3, #ffc94d) !important;
  color: #000 !important;
  border: none !important;
}

.btn-warning:hover {
  opacity: .9;
}
