/* NICDSign Landing Page Styles */
/* Lato font is loaded from local vendor/fonts/lato/ directory */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

body {
  height: 100vh;
  background: #f2f3f7;
  font-family: "Lato", sans-serif;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900 !important;
}

a {
  text-decoration: none;
  transition: all 0.4s ease;
  font-weight: 800;
  color: #20212c;
}

img {
  width: 100%;
}

section {
  padding-top: 80px;
  padding-bottom: 80px;
  z-index: 2;
  position: relative;
}

.logowithHeading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.logowithHeading img {
  width: auto;
  height: 40px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(17, 7, 254, 0.7), rgba(0, 224, 254, 0.7));
  z-index: -1;
}

.bg-cover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/banner1.jpg");
}

.btn {
  padding: 14px 22px;
  transition: all 0.3s ease;
}

.btn-main {
  background: linear-gradient(to right, #00e0fe, #1107fe);
  border-radius: 100px;
  border: none;
  font-weight: 600;
  color: #fff;
}

.btn:hover {
  color: #fff;
  transform: translateY(-5px);
}

.video-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, #00e0fe, #1107fe);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 100px;
}

.video-btn i {
  font-size: 32px;
}

.navbar {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.nav-link:hover {
  color: #5d92e5e0 !important;
  cursor: pointer;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link.activeBtn,
.navbar-light .navbar-nav .show > .nav-link {
  background: -webkit-linear-gradient(#00e0fe, #1107fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline !important;
  transform: translateY(-2px);
}

.section-intro {
  margin-bottom: 40px;
}

.section-intro .divider {
  height: 4px;
  width: 70px;
  background: linear-gradient(to right, #00e0fe, #1107fe);
  margin: 16px auto;
}

.service .service-img {
  position: relative;
  height: 250px;
}

.service .service-img img {
  height: 100%;
  object-fit: cover;
}

.service .service-img .icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(to right, #00e0fe, #1107fe);
  color: #fff;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
}

.service .service-img .icon i {
  font-size: 36px;
}

.feature i {
  background: -webkit-linear-gradient(#00e0fe, #1107fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 54px;
}

/* Enhanced Animation Effects */
.feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.demo-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.demo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced button animations */
.btn-main {
  position: relative;
  overflow: hidden;
}

.btn-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-main:hover::before {
  left: 100%;
}

/* Enhanced feature icons */
.feature i {
  background: -webkit-linear-gradient(#00e0fe, #1107fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 54px;
  transition: all 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

.feature-icon {
  font-size: 54px !important;
  background: -webkit-linear-gradient(#00e0fe, #1107fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

/* Parallax effect for hero section */
.hero-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Loading animation for AOS elements */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

.demo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.demo-content {
  padding: 20px;
  text-align: center;
}

.review {
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
}

.review .person {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 18px;
}

.review .person img {
  width: 75px;
  height: 75px;
  border-radius: 100px;
}

.review .stars {
  color: orange;
}

form .form-control {
  border-radius: 0;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

form .form-control:focus {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

form input.form-control {
  height: 54px;
}

form .form-control::placeholder {
  color: #fff;
}

footer {
  background: linear-gradient(to right, #00e0fe, #1107fe);
  color: #fff;
}

footer a {
  color: #fff;
}

.justP {
  text-align: justify;
}

.mainWrap {
  gap: 25px;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  display: grid;
}

.subWrap {
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.paddb {
  padding-bottom: 35px;
}

.demoBtn {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: end;
  gap: 5px;
}

.demoBtnWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(rgba(17, 7, 254, 0.7), rgb(0 132 254 / 70%));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  transition: 0.5s all;
  padding: 8px 12px;
  text-decoration: none;
}

.demoBtnWrap:hover {
  cursor: pointer;
  background-color: rgba(17, 7, 254, 0.7);
  color: #fff;
}

.spcl {
  font-size: 13px !important;
}

.image_ht img {
  height: 272px;
  object-fit: cover;
}

.topBtn {
  background: linear-gradient(to right, #00e0fe, #1107fe);
  border-radius: 2px;
  color: #fff !important;
  padding: 5px 10px !important;
  transition: 0.5s ease-in;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.topBtn:hover {
  background: linear-gradient(to right, #1107fe, #1107fe);
  cursor: pointer;
  transition: 0.5s ease;
  color: #fff !important;
}

.mr {
  margin-right: 5px;
}

.adminLogin {
  background: none;
  border: none;
  color: #00d4ff;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 15px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  transition: all 0.3s;
}

.adminLogin:hover {
  color: #00ffff;
  text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  transform: scale(1.05);
}

/* Footer Styles */
footer {
  background-color: #1107fe !important;
  color: white;
}

footer a {
  color: #00d4ff !important;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s;
}

footer a:hover {
  color: #00ffff !important;
  text-shadow: 0 0 10px #00d4ff;
}

footer .material-icons {
  color: #00d4ff !important;
  font-size: 24px !important;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  transition: all 0.3s;
}

footer a:hover .material-icons {
  color: #00ffff !important;
  text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  transform: scale(1.1);
}

/* Admin Login Button in Footer */
.btn-admin-footer {
  transition: all 0.3s ease;
  cursor: pointer;
  color: #00d4ff !important;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-admin-footer:hover {
  color: #00ffff !important;
  text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  transform: scale(1.05);
}

/* Feedback Button in Footer - Same style as Admin Login */
.btn-feedback-footer {
  background: transparent !important;
  border: none !important;
  color: #00d4ff !important;
  padding: 0 !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-feedback-footer:hover {
  color: #00ffff !important;
  text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  transform: scale(1.05);
}

.btn-feedback-footer .material-icons {
  color: #00d4ff !important;
  font-size: 24px !important;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  transition: all 0.3s;
}

.btn-feedback-footer:hover .material-icons {
  color: #00ffff !important;
  text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  transform: scale(1.1);
}

.bord {
  border: 1px solid #fff !important;
}

.counterbg {
  background-image: url("../images/cover_3.jpg");
}

/* Modal Styles */
.ReactModal__Overlay--after-open {
  z-index: 2 !important;
  background-color: rgb(45 44 44 / 75%) !important;
}

.HeadingStyle {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  margin: 10px;
  color: rgb(23, 43, 77);
}

.HeadingStyle img {
  width: 26px;
  height: 29px;
}

.modalInnerWrapper {
  height: 85%;
  overflow: auto;
  background-color: rgb(239 243 253 / 68%);
  padding: 10px 40px 20px 20px;
  border-radius: 10px;
}

.termsWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: #daeeff;
  border-color: #a8d6fe;
  color: #0275d8;
  border: 1px solid transparent;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 12px;
  font-size: 12px;
}

.termsWrapper h5 {
  margin-bottom: 0px;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.warningIcon {
  font-size: 17px;
}

.continueModal {
  background: #0275d8;
  border-radius: 10px;
  opacity: 1;
  cursor: pointer;
  padding: 1px 20px;
  color: #fff;
  border: 1px solid rgb(215, 215, 215);
}

.continueModal:hover {
  background-color: #08365e;
}

.termsLabel {
  font-family: lato;
  color: rgb(1 10 84);
  margin: 10px 0px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.okbuttongroup {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.5rem;
}

.btnwrapper {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px !important;
  padding: 0.5rem 0.5rem;
}

.flexAlign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.cancelModal {
  background: 0% 0% no-repeat padding-box padding-box transparent;
  border-radius: 10px;
  color: #7f8186;
  cursor: pointer;
  opacity: 1;
  padding: 1px 20px;
  border: 1px solid #d7d7d7;
}

/* Responsive Design */
@media only screen and (min-width: 300px) and (max-width: 700px) {
  .mainWrap {
    grid-template-columns: auto !important;
  }
}

/* Ensure download button is visible on all screen sizes */
.addNewBtn {
  display: inline-block !important;
  white-space: nowrap;
}

@media only screen and (min-width: 300px) and (max-width: 992px) {
  .mr {
    margin: 10px 0px !important;
  }
  .addNewBtn {
    display: inline-block !important;
  }
}

@media (max-width: 1200px) {
  .addNewBtn {
    font-size: 12px;
    padding: 4px 8px !important;
  }
}



/* ===== Extracted Inline Styles ===== */

/* About Section Background */
#about.about-section-bg {
  background-image: url('../images/cover_3.jpg');
}

/* Footer Icon Styles */
.footer-icon {
  font-size: 17px;
}

/* Admin Login Button in Footer - Override */
.btn-admin-footer-inline {
  background: transparent;
  color: #00d4ff;
  border: none;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 18px;
  transition: all 0.3s;
  margin-left: 10px;
}

/* Admin Login Form Styles */
.login-header h2 {
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 16px;
}

#loginError {
  display: none;
  border-radius: 8px;
  margin-bottom: 20px;
}

#loginError.show {
  display: block;
}

#loginError .material-icons {
  vertical-align: middle;
  margin-right: 5px;
}

.login-form-label {
  color: #333;
  font-weight: 600;
}

.login-form-label .material-icons {
  vertical-align: middle;
  margin-right: 5px;
  font-size: 18px;
  color: #0d6efd;
}

.login-form-input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
}

.login-form-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

#captchaImageAdmin {
  height: 50px;
  border-radius: 4px;
  background: white;
  padding: 5px;
  border: 1px solid #ddd;
}

#captchaImageAdmin.hidden {
  display: none;
}

.captcha-refresh-btn {
  background: transparent;
  border: none;
  color: #0d6efd;
  cursor: pointer;
}

.captcha-refresh-btn .material-icons {
  font-size: 24px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0d6efd 0%, #0959d0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-login:hover {
  background: linear-gradient(135deg, #0959d0 0%, #0747a6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-login .material-icons {
  vertical-align: middle;
  margin-right: 8px;
}

.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  color: #0959d0;
  text-decoration: underline;
}

.back-link a .material-icons {
  vertical-align: middle;
  margin-right: 5px;
  font-size: 18px;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: white;
}

.loading-spinner .material-icons {
  font-size: 48px;
  animation: spin 1s linear infinite;
}

/* Admin Panel Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 20px 30px;
  border-bottom: 2px solid #f0f0f0;
  background-color: #f8f9fa;
}

.admin-header h2 {
  color: #08aed0;
  font-weight: 700;
  margin: 0;
}

.admin-header .btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.admin-header > div:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-header .btn-mail-shortcut-inline {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.admin-header .btn .material-icons {
  vertical-align: middle;
  font-size: 18px;
}

/* Admin Tabs */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  margin: 0;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: white;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  color: #666;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-tabs .nav-link .material-icons {
  vertical-align: middle;
  font-size: 18px;
}

/* Tab Content */
.tab-content {
  padding: 30px;
  background-color: white;
  min-height: calc(100vh - 200px);
}

/* Table Container */
.table-container {
  overflow-x: auto;
}

.table-container table {
  font-size: 14px;
}

.table-container th {
  background: #f8f9fa;
  color: #000000;
  font-weight: 700;
}

/* Action Buttons Container - Horizontal Layout */
.action-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

/* Action Buttons - Extra Compact Horizontal Size */
.action-btn {
  padding: 3px 8px !important;
  border: none;
  border-radius: 4px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 10px !important;
  min-width: 70px !important;
  height: 26px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 1px !important;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn .material-icons {
  font-size: 13px !important;
  margin-right: 2px !important;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-view {
  background: #17a2b8;
  color: white;
}

.btn-view:hover:not(:disabled) {
  background: #138496;
}

.btn-approve {
  background: #28a745;
  color: white;
}

.btn-approve:hover:not(:disabled) {
  background: #218838;
}

.btn-reject {
  background: #dc3545;
  color: white;
}

.btn-reject:hover:not(:disabled) {
  background: #c82333;
}

.btn-pdf {
  background: #6f42c1;
  color: white;
}

.btn-pdf:hover:not(:disabled) {
  background: #5a32a3;
}

.sendmail-container-inline {
  padding: 20px 0;
}

.mail-card-inline {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mail-card-header-inline {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  padding: 24px 28px;
}

.mail-card-header-inline h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-weight: 700;
}

.mail-card-header-inline p {
  margin: 0;
  opacity: 0.9;
}

.mail-card-body-inline {
  padding: 28px;
  background: #ffffff;
  color: #1f2937;
}

.mail-card-body-inline .row {
  --bs-gutter-y: 1rem;
}

.mail-card-body-inline .form-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}

.mail-card-body-inline .form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  padding: 12px 14px;
  min-height: 46px;
}

.mail-card-body-inline .form-control::placeholder {
  color: #94a3b8;
}

.mail-card-body-inline .form-control:focus {
  background: #ffffff;
  color: #0f172a;
  border-color: #0891b2;
  box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.15);
}

.mail-card-body-inline input[type="date"] {
  color-scheme: light;
}

.radio-group-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.radio-option-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  color: #334155;
  min-height: 54px;
}

.radio-option-inline input {
  margin: 0;
}

.radio-option-inline span {
  color: #334155;
  font-weight: 500;
}

.radio-option-inline:hover {
  border-color: #0891b2;
  background: #f0f9ff;
}

.radio-option-inline input:checked + span {
  color: #0f172a;
  font-weight: 600;
}

.btn-container-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-send-mail-inline {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-send-mail-inline:hover {
  color: white;
  transform: translateY(-1px);
}

#sendMailAlertContainerInline .alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 10px;
  margin-bottom: 18px;
}

#sendMailAlertContainerInline .alert strong,
#sendMailAlertContainerInline .alert div {
  color: inherit;
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-header-custom {
  background: #1107fe;
  color: white;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
}

.modal-header-custom h5 {
  margin: 0;
  font-weight: 700;
}

.modal-body-custom {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body-custom p {
  margin-bottom: 15px;
  color: #333;
}

.modal-body-custom strong {
  color: #1107fe;
  font-weight: 700;
}

.modal-footer-custom {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
}

/* Request Details */
.request-detail-row {
  display: flex;
  margin-bottom: 12px;
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.request-detail-label {
  font-weight: 700;
  color: #1107fe;
  min-width: 200px;
}

.request-detail-value {
  color: #333;
  flex: 1;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

.success-message .material-icons {
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Error Message */
.error-message {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

.error-message .material-icons {
  vertical-align: middle;
  margin-right: 8px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.p-0 {
  padding: 0;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.gap-3 {
  gap: 1rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* Responsive adjustments for inline styles */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 15px;
  }

  .admin-header > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-header .btn,
  .admin-header .btn-mail-shortcut-inline {
    width: 100%;
    justify-content: center;
  }

  .nav-tabs .nav-item {
    width: 100%;
  }

  .nav-tabs .nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .table-container {
    font-size: 12px;
  }
  
  .action-btn {
    padding: 4px 8px;
    font-size: 12px;
  }

  .radio-group-inline {
    grid-template-columns: 1fr;
  }

  .btn-container-inline {
    flex-direction: column;
    align-items: stretch;
  }
  
  .success-message,
  .error-message {
    right: 10px;
    left: 10px;
    top: 70px;
  }
}


/* ========================================
   ENHANCED PROFESSIONAL ADMIN PANEL STYLES
   ======================================== */

/* Admin Tabs - Enhanced Professional Design */
.nav-tabs {
  border-bottom: none !important;
  margin: 0 !important;
  padding: 20px 30px 0 !important;
  background-color: #f8f9fa !important;
  box-shadow: inset 0 -1px 0 #dee2e6;
}

.nav-tabs .nav-link {
  color: #6c757d !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  background: white !important;
  border-radius: 10px 10px 0 0 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05) !important;
  position: relative;
  margin-right: 4px;
  border: none !important;
}

.nav-tabs .nav-link:hover {
  color: #0891b2 !important;
  background: #f0f9fb !important;
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(8, 145, 178, 0.15) !important;
}

.nav-tabs .nav-link.active {
  color: white !important;
  background: linear-gradient(135deg, #0d6efd 0%, #0e7490 100%) !important;
  box-shadow: 0 -4px 16px rgba(8, 145, 178, 0.3) !important;
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: white;
}

.nav-tabs .nav-link .material-icons {
  font-size: 20px !important;
}

/* Tab Content - Enhanced */
.tab-content {
  padding: 30px !important;
  background-color: white !important;
  min-height: calc(100vh - 250px) !important;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Table Container - Enhanced */
.table-container {
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  padding: 20px !important;
  margin-top: 10px;
}

/* Table Header - Professional Gradient */
.table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 16px 12px !important;
  border-bottom: 2px solid #0d6efd !important;
  white-space: nowrap !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Table Rows - Enhanced */
.table tbody tr {
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.table tbody tr:hover {
  background-color: #f8fbfc !important;
  transform: scale(1.001);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.1);
}

.table tbody td {
  padding: 14px 12px !important;
  vertical-align: middle !important;
  color: #495057 !important;
  font-size: 13px !important;
}

/* Striped rows with subtle color */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafbfc !important;
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background-color: #f0f7f9 !important;
}

/* Action Buttons - Enhanced */
.action-btn {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  gap: 6px !important;
  min-width: 100px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s ease !important;
}

.action-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.action-btn:active {
  transform: translateY(0) !important;
}

/* Button Colors - Professional Palette */
.btn-view {
  background: linear-gradient(135deg, #0d6efd 0%, #138496 100%) !important;
  color: white !important;
  border: none !important;
}

.btn-view:hover:not(:disabled) {
  background: linear-gradient(135deg, #138496 0%, #0f6674 100%) !important;
}

.btn-approve {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
  color: white !important;
  border: none !important;
}

.btn-approve:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
}

.btn-reject {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  color: white !important;
  border: none !important;
}

.btn-reject:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
}

.btn-pdf {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
  color: white !important;
  border: none !important;
}

.btn-pdf:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a32a3 0%, #4c2a8a 100%) !important;
}

/* DataTables Controls - Enhanced */
.dataTables_wrapper .dataTables_length select {
  padding: 8px 32px 8px 12px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  background: white !important;
  color: #495057 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: #0891b2 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1) !important;
}

.dataTables_wrapper .dataTables_filter input {
  padding: 10px 16px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  background: white !important;
  color: #495057 !important;
  transition: all 0.3s ease !important;
  margin-left: 8px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #0891b2 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1) !important;
}

/* Pagination - Enhanced */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 8px 14px !important;
  margin: 0 3px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  background: white !important;
  color: #495057 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #0d6efd  0%, #0e7490 100%) !important;
  color: white !important;
  border-color: #0891b2 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(8, 145, 178, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #0d6efd 0%, #0e7490 100%) !important;
  color: white !important;
  border-color: #0891b2 !important;
  box-shadow: 0 4px 8px rgba(8, 145, 178, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Info Text - Enhanced */
.dataTables_wrapper .dataTables_info {
  color: #6c757d !important;
  font-weight: 600 !important;
  padding: 10px 0 !important;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.loading .material-icons {
  font-size: 48px;
  color: #0891b2;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .nav-tabs {
    padding: 15px 15px 0 !important;
  }
  
  .nav-tabs .nav-link {
    padding: 12px 20px !important;
    font-size: 13px !important;
  }
  
  .tab-content {
    padding: 20px 15px !important;
  }
  
  .table-container {
    padding: 15px !important;
  }
  
  .action-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
    min-width: 85px !important;
  }
}


/* ========================================
   MODAL COLOR UPDATES - Cyan/Teal Theme
   ======================================== */

/* Modal Header - Change from blue to cyan/teal */
.modal-header-custom {
  background: linear-gradient(135deg, #0d6efd 0%, #0891b2 100%) !important;
  color: white !important;
  padding: 20px !important;
  border-bottom: none !important;
}

.modal-header-custom h5,
.modal-header-custom .modal-title {
  color: white !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* .modal-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0959d0 100%) !important;
  color: white !important;
} */

.modal-header .modal-title {
  color: white !important;
}

/* Modal Body Labels - Change from blue to cyan/teal */
.modal-body-custom strong,
.modal-body strong {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

/* Detail Labels in Modal */
.detail-label {
  color: #0d6efd  !important;
  font-weight: 700 !important;
}

/* Request Details Labels */
.request-detail-label {
  color: #0d6efd  !important;
  font-weight: 700 !important;
}

/* Any blue text in modals */
.modal-body p strong,
.modal-body-custom p strong {
  color: #0d6efd  !important;
}

/* Close button styling - Force white on colored headers */
.modal-header .btn-close,
.modal-header-custom .btn-close,
.btn-close-white,
button.btn-close,
.modal .modal-header .btn-close,
.modal-header button[data-bs-dismiss="modal"] {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  background-color: transparent !important;
  background-image: none !important;
  width: 1em !important;
  height: 1em !important;
}

/* Override Bootstrap default */
.btn-close:not(.btn-close-white) {
  filter: brightness(0) invert(1) !important;
}


/* Center align all table cells */
.table thead th,
.table tbody td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Make action buttons horizontal and stay in one row - NO WRAPPING */
.table tbody td:last-child {
  white-space: nowrap !important;
  min-width: 300px !important;
  padding: 6px 4px !important;
}

.action-btn {
  display: inline-flex !important;
  margin: 1px 1px !important;
  vertical-align: middle !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  min-width: 70px !important;
  height: 26px !important;
}

.action-btn .material-icons {
  font-size: 13px !important;
  margin-right: 2px !important;
  vertical-align: middle !important;
}

/* Reduce table cell padding for compact view */
.table thead th {
  padding: 8px 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.table tbody td {
  padding: 8px 6px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* Reduce table container padding */
.table-container {
  padding: 10px !important;
  margin-bottom: 10px !important;
}

/* Compact tab content */
.tab-content {
  padding: 10px 0 !important;
}

/* Compact tabs */
.nav-tabs {
  margin-bottom: 10px !important;
}

.nav-tabs .nav-link {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

/* Reduce DataTables controls padding */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  padding: 4px 8px !important;
  font-size: 12px !important;
}

/* Compact pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 4px 8px !important;
  font-size: 11px !important;
  margin: 0 1px !important;
}

/* Reduce admin panel container padding */
#admin-panel-container {
  padding-top: 70px !important;
}

/* Compact admin panel */
.admin-panel-inline {
  padding: 0 !important;
}

/* Ensure buttons stay in one line */
.table tbody td {
  white-space: normal !important;
}

.table tbody td:last-child {
  white-space: nowrap !important;
}

/* Responsive: Stack buttons on very small screens */
@media (max-width: 768px) {
  .table tbody td:last-child {
    white-space: normal !important;
    min-width: auto !important;
  }
  
  .action-btn {
    display: inline-block !important;
    margin: 3px 2px !important;
  }
}

/* Compact admin panel - Simple and Working */
#admin-panel-container {
  padding-top: 60px !important;
  padding-bottom: 0 !important;
}

/* Compact tabs */
.nav-tabs {
  margin-bottom: 8px !important;
}

.nav-tabs .nav-link {
  padding: 8px 14px !important;
  font-size: 12px !important;
}

/* Compact table */
.table-container {
  padding: 8px !important;
  margin-bottom: 8px !important;
  max-height: calc(100vh - 280px) !important;
  overflow-y: auto !important;
}

.table thead th {
  padding: 8px 6px !important;
  font-size: 11px !important;
  position: sticky !important;
  top: 0 !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  z-index: 10 !important;
}

.table tbody td {
  padding: 8px 6px !important;
  font-size: 11px !important;
}

/* Compact buttons */
.action-btn {
  padding: 5px 10px !important;
  font-size: 10px !important;
  margin: 2px !important;
}

.action-btn .material-icons {
  font-size: 13px !important;
  margin-right: 3px !important;
}

/* Compact DataTables controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 5px 8px !important;
  font-size: 11px !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  padding: 4px 8px !important;
  font-size: 11px !important;
  height: 26px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 4px 8px !important;
  font-size: 10px !important;
}

/* Tab content */
.tab-content {
  padding: 10px 15px !important;
  margin-bottom: 0 !important;
}

/* Compact navbar */
.navbar {
  padding: 10px 0 !important;
}

/* Footer */
footer {
  margin-top: 0 !important;
}

/* Reduce action column width */
.table tbody td:last-child {
  min-width: 280px !important;
  max-width: 280px !important;
}

/* Professional Send Mail Form Design - Compact Horizontal Layout */
.sendmail-container-inline {
  padding: 12px 12px 0 12px;
  background: #f8f9fa;
}

.mail-card-inline {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.mail-card-header-inline {
  background: linear-gradient(135deg, #0d6efd 0%, #0e7490 100%);
  color: white;
  padding: 14px 20px;
}

.mail-card-header-inline h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
}

.mail-card-header-inline p {
  margin: 0;
  opacity: 0.9;
  font-size: 11px;
}

.mail-card-header-inline .material-icons {
  font-size: 20px;
}

.mail-card-body-inline {
  padding: 20px 20px 16px 20px;
  background: #ffffff;
}

/* Form Row Layout - Compact */
.form-row-inline {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: flex-end;
}

.form-group-inline {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group-small {
  flex: 0 0 180px;
}

.form-group-tiny {
  flex: 0 0 120px;
}

.form-group-medium {
  flex: 0 0 240px;
}

.form-group-expand {
  flex: 1;
}

/* Form Labels - Compact */
.mail-card-body-inline .form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Controls - Compact */
.mail-card-body-inline .form-control {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e293b;
  transition: all 0.2s ease;
  width: 100%;
  height: 36px;
}

.mail-card-body-inline .form-control::placeholder {
  color: #cbd5e1;
  font-size: 11px;
}

.mail-card-body-inline .form-control:focus {
  background: #ffffff;
  border-color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
  outline: none;
}

.mail-card-body-inline input[type="date"] {
  color-scheme: light;
}

/* Radio Group Styling - Compact Horizontal Cards */
.radio-group-inline {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.radio-option-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  flex: 1;
  min-width: 140px;
  justify-content: center;
  height: 36px;
}

.radio-option-inline:hover {
  border-color: #0891b2;
  background: #f0f9ff;
}

.radio-option-inline input[type="radio"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #0891b2;
  margin: 0;
}

.radio-option-inline:has(input[type="radio"]:checked) {
  border-color: #0891b2;
  background: #e0f2fe;
  color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
}

/* Checkbox Group Styling - Compact Horizontal Cards for Multiple Selection */
.checkbox-group-inline {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.checkbox-option-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  flex: 1;
  min-width: 140px;
  justify-content: center;
  height: 36px;
}

.checkbox-option-inline:hover {
  border-color: #0891b2;
  background: #f0f9ff;
}

.checkbox-option-inline input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #0891b2;
  margin: 0;
}

.checkbox-option-inline:has(input[type="checkbox"]:checked) {
  border-color: #0891b2;
  background: #e0f2fe;
  color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
}

/* Button Container - Compact */
.btn-container-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-send-mail-inline {
  background: linear-gradient(135deg, #0d6efd  0%, #0e7490 100%);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(8, 145, 178, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 36px;
}

.btn-send-mail-inline:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0c5f75 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(8, 145, 178, 0.4);
}

.btn-send-mail-inline:active {
  transform: translateY(0);
}

.btn-send-mail-inline .material-icons {
  font-size: 15px;
}

/* Alert Styling - Compact */
#sendMailAlertContainerInline {
  margin-bottom: 12px;
}

#sendMailAlertContainerInline .alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  border: none;
  font-size: 11px;
  font-weight: 500;
}

#sendMailAlertContainerInline .alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 3px solid #10b981;
}

#sendMailAlertContainerInline .alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

#sendMailAlertContainerInline .alert .material-icons {
  font-size: 18px;
}

#sendMailAlertContainerInline .alert strong,
#sendMailAlertContainerInline .alert div {
  color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .form-row-inline {
    flex-wrap: wrap;
  }
  
  .form-group-small,
  .form-group-tiny,
  .form-group-medium {
    flex: 1 1 180px;
  }
  
  .radio-group-inline,
  .checkbox-group-inline {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .form-row-inline {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-group-inline,
  .form-group-small,
  .form-group-tiny,
  .form-group-medium,
  .form-group-expand {
    flex: 1;
    width: 100%;
  }
  
  .radio-group-inline,
  .checkbox-group-inline {
    flex-direction: column;
  }
  
  .radio-option-inline,
  .checkbox-option-inline {
    min-width: auto;
  }
}


/* Admin Panel Custom Header - Matching Landing Page Navbar Style */
.admin-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-nic-logo {
  height: 40px;
  width: auto;
}

.admin-title {
  color: #20212c;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-action {
  background: linear-gradient(to right, #00e0fe, #1107fe);
  border-radius: 2px;
  color: #fff !important;
  padding: 5px 10px !important;
  transition: 0.5s ease-in;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-admin-action .material-icons {
  font-size: 18px;
}

.btn-admin-action:hover {
  background: linear-gradient(to right, #1107fe, #1107fe);
  cursor: pointer;
  transition: 0.5s ease;
  color: #fff !important;
}

.btn-admin-action.active {
  background: linear-gradient(to right, #1107fe, #1107fe);
  color: #fff !important;
}

/* Logout button - red color for distinction */
.btn-logout {
  background: linear-gradient(to right, #ef4444, #dc2626) !important;
}

.btn-logout:hover {
  background: linear-gradient(to right, #dc2626, #b91c1c) !important;
  color: #fff !important;
}

/* Responsive Admin Header */
@media (max-width: 768px) {
  .admin-header-custom {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .admin-header-left {
    width: 100%;
    justify-content: center;
  }
  
  .admin-header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-admin-action {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .admin-title {
    font-size: 1.3rem;
  }
  
  .admin-nic-logo {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .btn-admin-action {
    padding: 5px 8px !important;
    font-size: 0.85rem;
  }
  
  .btn-admin-action .material-icons {
    font-size: 16px;
  }
}


/* Landing Page Navbar - Force Logo Left, Buttons Right Layout */
.navbar.fixed-top .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.navbar.fixed-top .logowithHeading {
  flex: 0 0 auto !important;
  margin-right: 0 !important;
  order: 1 !important;
}

.navbar.fixed-top .navbar-toggler {
  order: 3 !important;
  margin-left: auto !important;
}

.navbar.fixed-top .navbar-collapse {
  flex: 1 1 auto !important;
  order: 2 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.navbar.fixed-top .navbar-nav {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.navbar.fixed-top .navbar-nav .nav-item {
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Desktop view - force right alignment */
@media (min-width: 992px) {
  .navbar.fixed-top .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    justify-content: flex-end !important;
  }
  
  .navbar.fixed-top .navbar-nav {
    flex-direction: row !important;
    margin-left: auto !important;
  }
  
  .navbar.fixed-top .navbar-toggler {
    display: none !important;
  }
}

/* Mobile view */
@media (max-width: 991px) {
  .navbar.fixed-top .navbar-collapse {
    order: 4 !important;
    width: 100% !important;
  }
  
  .navbar.fixed-top .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }
  
  .navbar.fixed-top .navbar-collapse.show {
    display: flex !important;
  }
  
  .navbar.fixed-top .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-top: 10px !important;
  }
}


/* Admin header should be below modals */
.admin-header-custom {
  z-index: 1030 !important;
}

/* Modal Fixes - Prevent Freezing and Backdrop Issues */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
  pointer-events: none !important; /* Don't intercept clicks - let them pass to modal */
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
  pointer-events: none !important; /* Don't block clicks to modal content */
}

/* Ensure modal backdrop doesn't block interactions when modal is closed */
body:not(.modal-open) .modal-backdrop {
  display: none !important;
}

/* Ensure modal content is clickable and above backdrop */
.modal {
  z-index: 1060 !important;
}

.modal-dialog {
  z-index: 1061 !important;
  position: relative;
  pointer-events: auto !important; /* Ensure modal content is clickable */
}

.modal-content {
  z-index: 1062 !important;
  position: relative;
  pointer-events: auto !important;
  background: white !important;
}

/* Fix modal close button - Force white color */
.modal-header .btn-close {
  z-index: 1065 !important;
  position: relative;
  pointer-events: auto !important;
  cursor: pointer !important;
  filter: brightness(0) invert(1) !important; /* Make it white */
  opacity: 1 !important;
  background-color: transparent !important;
  background-image: none !important;
  width: 1em !important;
  height: 1em !important;
}

/* Additional specificity for all close buttons */
button.btn-close,
.btn-close-white,
.modal-header button[data-bs-dismiss="modal"],
.modal-header-custom button[data-bs-dismiss="modal"] {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* Prevent body scroll lock issues */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Force remove any lingering modal states */
body:not(.modal-open) {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Ensure admin panel content remains accessible but below modal */
#admin-panel-container {
  position: relative !important;
  z-index: 1 !important;
}

/* DataTables should not be affected by modals */
.dataTables_wrapper {
  z-index: 1 !important;
  position: relative;
}

/* Action buttons should be clickable but below modal */
.action-btn {
  z-index: 2 !important;
  position: relative;
  pointer-events: auto !important;
}

/* Make modal backdrop semi-transparent but NOT clickable */
.modal-backdrop.fade.show {
  pointer-events: none !important; /* Don't intercept clicks */
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 1050 !important;
}

/* Ensure all content behind modal remains interactive */
body.modal-open .container-fluid,
body.modal-open .admin-panel-inline,
body.modal-open .table-container,
body.modal-open .action-btn {
  pointer-events: auto !important;
}

/* ========================================
   PDF MODAL VIEWER STYLES
   ======================================== */

/* PDF Modal Styles */
.modal-xl {
  max-width: 95vw !important;
}

.pdf-loading-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.pdf-loading-container .spinner-border {
  width: 3rem !important;
  height: 3rem !important;
}

.pdf-error-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff5f5 100%) !important;
}

.pdf-error-container .material-icons {
  color: #dc3545 !important;
  font-size: 64px !important;
  margin-bottom: 20px !important;
}

/* PDF Modal Header */
.modal-header.bg-primary {
  background: #0d6efd !important;
}

/* PDF Modal responsive */
@media (max-width: 768px) {
  .modal-xl {
    max-width: 98vw !important;
    margin: 10px !important;
  }
  
  .modal-body {
    height: 70vh !important;
  }
}

/* PDF iframe styling */
.pdf-viewer-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: white !important;
}

/* Loading animation for PDF */
@keyframes pdfPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.pdf-loading-container .spinner-border {
  animation: pdfPulse 1.5s ease-in-out infinite !important;
}

/* ========================================
   REJECTION REASON ALERT STYLES
   ======================================== */

/* Rejection reason alert in modal */
.modal-body .alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  border: 1px solid #f1aeb5 !important;
  border-left: 4px solid #dc3545 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15) !important;
}

.modal-body .alert-danger .alert-heading {
  color: #721c24 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
}

.modal-body .alert-danger .alert-heading .material-icons {
  color: #dc3545 !important;
  font-size: 20px !important;
}

.modal-body .alert-danger hr {
  border-color: #f1aeb5 !important;
  margin: 8px 0 12px 0 !important;
}

.modal-body .alert-danger p {
  color: #721c24 !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-body .alert-danger {
    margin-bottom: 20px !important;
  }

  .modal-body .alert-danger .alert-heading {
    font-size: 14px !important;
  }

  .modal-body .alert-danger p {
    font-size: 13px !important;
  }
}

/* ---- Inline admin login panel (injected into hero section) ---- */

.admin-login-error-hidden {
    display: none !important;
}

.login-container-inline {
    background: white;
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-container-inline .login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-container-inline .login-header h2 {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-container-inline .login-header p {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.login-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.login-form-label .material-icons {
    font-size: 18px;
    color: #0d6efd;
}

.login-container-inline input {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 2px solid #e8eaed !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.login-container-inline input:hover {
    border-color: #0d6efd !important;
    background: white !important;
}

.login-container-inline input:focus {
    background: white !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1) !important;
    outline: none !important;
}

.login-container-inline input::placeholder {
    color: #95a5a6 !important;
    font-weight: 400 !important;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e8eaed;
}

.captcha-container img {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #dfe3e8;
}

.captcha-refresh-btn {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(8, 145, 178, 0.3);
}

.captcha-refresh-btn:hover {
    background: #0e7490;
    transform: rotate(180deg);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}

.captcha-refresh-btn .material-icons {
    font-size: 20px;
}

.login-container-inline .btn-login {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0d6efd 0%, #0e7490 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-container-inline .btn-login:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0c5f75 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
}

.login-container-inline .btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(8, 145, 178, 0.35);
}

.login-container-inline .btn-login .material-icons {
    font-size: 20px;
}

.login-container-inline .back-link {
    text-align: center;
    margin-top: 16px;
}

.login-container-inline .back-link a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.login-container-inline .back-link a:hover {
    color: #0e7490;
    transform: translateX(-5px);
}

.login-container-inline .back-link a .material-icons {
    font-size: 18px;
}

#loginError {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: none;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
}

#loginError .material-icons {
    font-size: 20px;
    color: #dc3545;
}

@media (max-width: 576px) {
    .login-container-inline {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .login-container-inline .login-header h2 {
        font-size: 1.5rem;
    }

    .login-container-inline .login-header p {
        font-size: 0.85rem;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-container img {
        width: 100%;
    }
}
