/* ================================
   Global Styles & Variables
================================ */
:root {
  /* Primary Colors (based on your gradient) */
  --primary-color: #ea690b;   /* bright orange */
  --primary-color-dark: #cc5500; /* deep amber */
  --primary-gradient: linear-gradient(135deg, #ea690b, #cc5500);
  --primary-button: #f91616;
  --hover: #f8b57f;
  /* Secondary Colors (lighter complementary tones) */
  --secondary-color: #ffb47a;  /* soft light orange */
  --secondary-color-dark: #ff8c42; /* medium orange */
  --secondary-gradient: linear-gradient(135deg, #ffb47a, #ff8c42);
  --secondary-button: #9CA3AF;
  /* Others (your original palette retained) */
  --primary-blue: linear-gradient(135deg, #ea690b, #cc5500);
  --dark-gradient: linear-gradient(135deg, #ea690b, #cc5500);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --text-dark: #1a2a6c;
  --text-light: rgba(255, 255, 255, 0.9);
  --border-light: #edf2f7;

}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  /* background: linear-gradient(135deg, #f8f9fc, #eef2f6); */
  /*color: #d7d2ff78 light blue*/
   /* background: #d9c7aa; */
}

.body {
  /* overflow: hidden; */
  overflow-y:scroll;
}

/* ================================
   Header & Navigation
================================ */
header {
  /* background: var(--primary-blue); */
  /* box-shadow: 0 4px 20px var(--shadow-strong);
  position: sticky;
  top: 0;
  z-index: 1000; */
}

.navbar {
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 53px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  color: #ea690b; /* primary theme color */
}


.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.1); /* keeps hover subtle */
  color: #fff;
}

.nav-link i {
  font-size: 16px;
  transition: transform 0.6s ease-in-out;
}

.nav-link:hover i {
  transform: rotateY(190deg) ;
}

.nav-item:hover .icon_tr {
  transform: rotateX(130deg);
  transition: all 0.3s ease-in-out;
}

/* Dropdown Styles */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #ea690b, #cc5500);
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.25s ease, visibility 0.25s;
  padding: 8px 0;
  margin-top: 8px;
  backdrop-filter: blur(10px);
}


.nav-item:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.6s ease;

}

.dropdown-item:hover {
  background: #f8b57f;
  color: #ffffff;
}

.dropdown-item i {
  color: #ea690b;   /* primary orange */
  font-size: 16px;
  width: 24px;
  text-align: center;
}

/* ================================
   Profile Section
================================ */
.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 12px;
  transition: all 0.6s ease;
}

.profile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  color: white;
  font-weight: 500;
  font-size: 15px;
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 3px;
  box-shadow: 0px 1px 2px var(--shadow-light);
  min-width: 130px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 3px 0;
  margin-top: 10px;
}

#profile_tr {
  color: white;
  position: fixed;
  top: 0;
  margin-top: -10px;
  right: 18px;
  
}

.profile:hover .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-menu-item:hover {
  background: #e6e5e5c7;
  border-radius: 5px;
  color: #000000;
}

.profile-menu-item i {
  color: #000000;
  font-size: 16px;
  width: 24px;
  text-align: center;
}

/* ================================
   Mobile Menu Toggle
================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

i.fa-times {
  color: rgb(87, 173, 247);
  background: white;
  border: 1px solid rgb(195, 241, 249);
  width: 50px;
  border-radius: 50%;
  padding: 10px 15px;
  position: absolute;
  bottom: -60px;
  /* left: 355px; */
   right: 6px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

i.fa-times:hover {
  box-shadow: rgb(204, 219, 232) 3px 3px 6px inset,
              rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
  color: rgb(67, 62, 137);
}

/* ================================
   Main Content
================================ */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.hero {
  background: linear-gradient(135deg, #ffffff, #f9fbfd);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 60px 50px;
  text-align: center;
  margin-bottom: 50px;
  border: 1px solid #eef2f7;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 42px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
  font-size: 16px;
}

/* ================================
   Footer
================================ */
footer {
  background: var(--dark-gradient);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 15px;
}

/* ================================
   Responsive Styles
================================ */
@media (max-width: 992px) {
  .nav-link {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 16px 24px;
    flex-wrap: wrap;
    z-index: 2000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.1); */
    
    margin-top: 10px;
    padding-bottom: 8px;
    transform: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-item:hover .dropdown-content {
    display: block;
    opacity: 1;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 40px;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .dropdown-item i {
    color: rgba(255, 255, 255, 0.7);
  }

  .profile-section {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .profile-section.active {
    display: flex;
  }

  .profile {
    width: 100%;
    padding: 12px;
  }

  .profile-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    border-radius: 8px;
    display: none;
  }

  .profile-menu #profile_tr {
    display: none;
  }

  .profile:hover .profile-menu {
    display: block;
  }

  .profile-menu-item {
    color: rgba(255, 255, 255, 0.85);
  }

  .profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .feature-card {
    padding: 25px 20px;
  }
}

/* ================================
   Miscellaneous
================================ */
.icon_tr {
  color: #fff;
  display: inline;
  margin: 3px 0 0 3px;

}

#scroller {
  position: fixed;
  right: 364px;
  color: white;
  display: none !important;
  margin-bottom: 30px;
}

/* Loader */
.div_loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.436);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  /* Use gradient via CSS variable or fallback */
  color: var(--primary-blue, #ea690b);
  position: relative;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}

.loader:after {
  color: #000;
  transform: rotateY(70deg);
  animation-delay: .4s;
}

@keyframes spin {
  0%, 100% { box-shadow: .2em 0 0 0 currentcolor; }
  12% { box-shadow: .2em .2em 0 0 currentcolor; }
  25% { box-shadow: 0 .2em 0 0 currentcolor; }
  37% { box-shadow: -.2em .2em 0 0 currentcolor; }
  50% { box-shadow: -.2em 0 0 0 currentcolor; }
  62% { box-shadow: -.2em -.2em 0 0 currentcolor; }
  75% { box-shadow: 0 -.2em 0 0 currentcolor; }
  87% { box-shadow: .2em -.2em 0 0 currentcolor; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #686868;
  /* border-radius: 10px; */
  border: 1px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
}

/* Text Selection */
::selection {
  background: #ea690b; /* main orange color */
  color: white;         /* text color on selection */
}

/* Large Screens */
@media screen and (min-width: 992px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0; 
  }

  .navbar .container,
  .navbar .container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    margin: 50px;
    padding-left: 30px;
  }

  .nav-links {
    display: flex;
    gap: 16px;
    margin-left: 20px;
  }

  .profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 30px; 
  }
}

/* ================================
   Policy Upload & Viewer Layout
================================ */
.split-container {
  display: flex;
  height: calc(100vh - 60px); /* Adjust if your header height differs */
  background: #f9fbfd;
  overflow: hidden;
}

/* ---------- Left Side (Form) ---------- */
.form-section {
  width: 40%;
  background: #fff;
  padding: 24px 30px;
  border-right: 2px solid #edf2f7;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
}

.form-section h2 {
  color: #CC5500; /* text color using the main orange */
  margin-bottom: 16px;
  text-align: center;
  border-bottom: 2px solid #ea690b; /* border using gradient start color or main orange */
  padding-bottom: 6px;
}


.form-section label {
  font-weight: 600;
  margin-top: 14px;
  display: block;
  color: #444;
}

.form-section input,
.form-section select,
.form-section textarea,
.form-section button {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.form-section button {
  background: linear-gradient(135deg, #ea690b, #CC5500); /* orange gradient */
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-section button:hover {
  background: linear-gradient(135deg, #CC5500, #ea690b); /* hover gradient swap */
}


/* ---------- Right Side (Image Viewer) ---------- */
.viewer-section {
  flex: 1;
  /* background: #fdfdfd; */
    /* background: #7f8591; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viewer-container {
  width: 90%;
  height: 80%;
  border: 2px solid #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #ffffff;  
  background-image: url("/assets/images/noimage.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain; /* or cover */
}

.viewer-container img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
}

.controls {
  margin-top: 12px;
}

.controls button {
  background: linear-gradient(135deg, #ea690b, #CC5500);
  color: white;
  border: none;
  padding: 10px 14px;
  margin: 0 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.controls button:hover {
  background: linear-gradient(135deg, #CC5500, #ea690b);
}


.controls button:hover {
  background: #e35a1d;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  .form-section {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid #edf2f7;
  }
}
#policyImage {
  max-width: 100%;
  transition: transform 0.2s ease;
  cursor: default;
  user-select: none;
}
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.image-name-btn {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.image-name-btn:hover {
  background: linear-gradient(135deg, #ea690b, #CC5500);
  color: white;
}

.image-name-btn.active {
  background: linear-gradient(135deg, #ea690b, #CC5500);
  color: white;
  font-weight: bold;
}

#policyImage {
  transition: transform 0.02s linear;
  cursor: default;
  user-select: none;
}
.office-use {
  background: #f2f2f2; /* a very light orange for background */
  padding: 20px;
  border-radius: 10px;
  border: 1px solid black; /* main orange color */
  margin-top: 20px;
}


.office-use h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px 20px;
}

/* Global form-control style for Node.js app */
.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  background-color: ; /* light orange background */
  background-clip: padding-box;
  border: 1px solid black; /* main orange border */
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #CC5500; /* darker orange on focus */
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(234, 105, 11, 0.25); /* subtle orange shadow */
}


#cover {
    position: fixed;
    inset: 0;                 /* shorthand for top, left, right, bottom */
    background: url('../../assets/images/loader_fl.gif') 50% 50% no-repeat rgb(249, 249, 249);
    display: none;            /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: .8;   
    background-size: 200px 200px; /* Resize GIF here */
}

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-once {
  animation: spinOnce 0.5s ease-in-out;
}

.primary-button {
   /* padding-left: 1.25rem;   
  padding-right: 1.25rem;   */
  /* padding-top: 0.5rem;     
  padding-bottom: 0.5rem;   */
  background-color: var(--primary-button);
  color: white;           
  border-radius: 0.5rem;   
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.24); 
  transition: background-color 0.2s ease-in-out;
}

.primary-button:hover {
  background-color: #ff8516; /* hover:bg-blue-700 */
}


.secondary-button{
   /* padding-left: 1.25rem;   
  padding-right: 1.25rem;   */
  /* padding-top: 0.5rem;     
  padding-bottom: 0.5rem;   */
  background-color: var(--secondary-button);
  color: black;           
  border-radius: 0.5rem;   
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.24); 
  transition: background-color 0.2s ease-in-out;
}

.secondary-button{
 background-color: #e2e4e8;
}


 /* --- SVG Checkmark Animation --- */
    .checkmark-circle {
      stroke-dasharray: 166;
      stroke-dashoffset: 166;
      stroke-width: 2;
      stroke-miterlimit: 10;
      stroke: #10b981;
      fill: none;
      animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    }

    .checkmark {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: block;
      stroke-width: 4;
      stroke: #fff;
      stroke-miterlimit: 10;
      box-shadow: inset 0px 0px 0px #10b981;
      animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    }

    .checkmark-check {
      transform-origin: 50% 50%;
      stroke-dasharray: 48;
      stroke-dashoffset: 48;
      animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    }

    @keyframes stroke { 100% { stroke-dashoffset: 0; } }
    @keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
    @keyframes fill { 100% { box-shadow: inset 0px 0px 0px 40px #10b981; } }

    /* Background Pulse */
    .success-pulse {
      animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    }

    @keyframes pulse-ring {
      0% { transform: scale(0.8); opacity: 0.5; }
      80%, 100% { transform: scale(1.5); opacity: 0; }
    }

     .warm-underline {
        
            transition: left 0.45s cubic-bezier(0.5, 0, 0.1, 1), 
                        width 0.3s cubic-bezier(0.5, 0, 0.1, 1);
          
        }

        .warm-underline:hover::after {
  transform: scaleX(1);
}

.warm-underline.left::after {
  transform-origin: bottom right;
}

.warm-underline.left:hover::after {
  transform-origin: bottom left;
}

        .tab-btn {
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
        
        .no-scrollbar::-webkit-scrollbar { display: none; }