* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
    font-family: 'Montserrat', sans-serif;
}

.invoice-section {
    padding: 40px 0;
    background-color: #f8f9fa; /* Optional page-level background */
  }

 .navbar .nav-link {
  white-space: nowrap;
}


.navbar .nav-link:hover {
  color: #c2145e; /* brand magenta */
}

  
  .invoice-container {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  /* Watermark as pseudo-element inside invoice container */
  .invoice-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background-image: url('/static/IMAGES/logo.png'); /* Update path */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.2; /* Adjust watermark visibility */
    z-index: 0;
  }
  
  /* Make sure content stays above the watermark */
  .invoice-container > * {
    position: relative;
    z-index: 1;
  }
  
  

body {
    
    /* background: url('/static/IMAGES/chemistry-industry.jpg') center/cover no-repeat fixed; */
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative; 
}


.registration_certificate {
    position: relative;
    padding: 50px;
    background-color: white;
    z-index: 1;
}

/* Force all logos to align left without modifying templates */
.logo {
  position: fixed !important;
  top: 0px; 
  bottom: 30px; 
  left: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999;
}


.navbar,
.container-fluid {
  padding-left: 0 !important;
}



/* FIxing the login scree */






/* Watermark styling */
.registration_certificate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/IMAGES/logo.png') center center / contain no-repeat;
    opacity: 0.3; 
    z-index: 0;
    pointer-events: none; 
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(70, 70, 72, 0.65);  */
    z-index: -1;
}


.button-admin{

    display: block; /* Ensures it acts like a block-level element */
    margin: 20px auto; /* Centers the button horizontally */
    padding: 0.75rem 1.5rem; /* Adjust padding for size */
    font-size: 1rem; /* Font size */
    font-weight: bold; /* Bold text */
    color: white; /* Text color */
    background: linear-gradient(90deg, #1a73e8, #0059b3); /* Gradient background */
    border: none; /* No border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.3s ease; /* Smooth hover transition */
    cursor: pointer; /* Pointer cursor */
    text-align: center; /* Center text inside the button */


}

.header {
    /* background: linear-gradient(90deg, white, #999aa2, #8e909e, #a1a3bb); */
    background: white;
    /* padding: 1rem; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* position: sticky; */
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
    max-height: 80px;
    margin: 1rem;
    /* box-shadow: 0 0 10px rgba(121, 134, 203, 0.5);  */
    /* margin-right: 2rem; */
}







.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* push to far right */
  gap: 1rem;
  margin-left: auto;
}



.nav-links a:not(.login-btn) {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:not(.login-btn):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #c2145e;
}

.nav-links a :active {
    color: #c2145e;
}

.login-btn {
    background: #182074;
    color: #1a237e;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background: #c2145e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.dash-grid-plan-level {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Set to 3 columns */
    gap: 2rem; /* Adjust gap between cards as needed */
    height: 750px;
}

.main-content {
    /* max-width: 1200px; */
    width: auto;
    /* margin: 3rem auto; */
    /* padding: 0 2rem; */
    flex-grow: 1;
}



.the-section {
    text-align: center;
    margin-bottom: 4rem;
    background: url('/static/IMAGES/home-001.jpg') center/cover no-repeat fixed;
    padding-top: 100px;
    padding-bottom: 100px;
}

.the-section h1 {
    /* color: #1a237e; */
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    align-items: end;
}

.the-section h3 {
    color: white;
    margin-bottom: 1rem;
    align-items: end;
}

.the-section p {
    /* color: #3949ab; */
    color: #d5d7e0;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cards-container-home {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* default responsive behavior */
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
  }
  
  .section-heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c2145e, #ff5891);
    margin-top: 8px;
    border-radius: 2px;
  }
  
  .info-card {
    background-color: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }
  
  .info-card:hover {
    transform: translateY(-3px);
  }
  
  .info-title {
    color: #c2145e;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }
  

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #7986cb);
    border-radius: 3px;
}

.card p {
    color: #444;
    line-height: 1.6;
    font-size: 1.1rem;
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #444;
    position: relative;
    padding-left: 1.5rem;
}

.card li::before {
    content: '•';
    color: #3949ab;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer {
    /* background: linear-gradient(135deg, #1a237e, #3949ab); */
    background: black;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    /* text-align: center; */
    padding: 0 2rem;
    /* display: flex; */
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
}


/* to collpase on small screen  */
/* Sidebar toggle logic using checkbox */
.sidebar-checkbox:checked + .sidebar-toggle-btn + .dash-nav {
    display: block;
  }
  
  .sidebar-toggle-btn {
    display: block;
    background: #1a237e;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    margin: 1rem;
  }


/* Hide sidebar by default on small screens */
@media (max-width: 991px) {
    .dash-nav {
      display: none;
    }
  
    .sidebar-toggle-btn {
      display: block;
    }
  }
  
  /* Always show nav on large screens */
  @media (min-width: 992px) {
    .dash-nav {
      display: block !important;
    }
  
    .sidebar-toggle-btn {
      display: none;
    }
  }

/* Force all into one vertical column for big screens only */
@media (min-width: 1200px) {
    .cards-container-home {
        grid-template-columns: repeat(4, 1fr);

    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .nav-links a {
        text-align: center;
    }

    .the-section h1 {
        font-size: 2rem;
    }

    .the-section p {
        font-size: 1.1rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2rem;
    }
}











.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}




.form-group input:focus {
    outline: none;
    border-color: #3949ab;
}
























.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.sidebar-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1a237e, #7986cb);
    border-radius: 2px;
}

.sidebar-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.sidebar-btn {
    display: inline-block;
    background: linear-gradient(90deg, #4855a8, #1a237e);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



/* Dashboard Styles */
/* .dash-container {
    display: flex;
    min-height: auto;
    min-height: calc(100vh - 200px);
    background: transparent;
} */

.dash-content-box {
    background: #f1f1f1;
    padding: 2rem;
    margin: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dash-container {
    display: flex;
    min-height: auto;
    min-height: calc(100vh - 200px);
    background: transparent;
    position: relative;
    background-image:
    /* linear-gradient(rgba(37, 149, 190, 0.766), rgba(0, 123, 255, 0.4)), */
    linear-gradient(rgba(37, 149, 190, 0.571), rgba(37, 149, 190, 0.571)),
    url('/static/IMAGES/home-002.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


.dash-sidebar {
    width: auto;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.2);
    /* display: flex;
    flex-direction: column;
    height: auto;
    position: sticky;
    top: 0; */
}

.dash-nav {
    padding: 1rem 0;
}


.dash-nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #1a237e;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 1rem;
}

.dash-nav-item:hover, .dash-nav-item.active {
    background: linear-gradient(135deg, #6572c5, #1a237e);
    color: white;
}

.dash-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}


.dash-main {
    flex-grow: 1;
    padding: 0.005rem;
    background: transparent;
    overflow-x: auto;
      -webkit-overflow-scrolling: touch;
}

.dash-title {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ensures only two cards per row */
    gap: 2rem;
}

.dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ensures only two cards per row */
    gap: 2rem;
}

.dash-card-3 {
    background: rgba(70, 77, 75, 0.452);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.dash-card-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4855a8, #1a237e);
    color: white;
}


.dash-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 170px;
    border-top: 2px solid #c2145e;
    border-left: 2px solid #c2145e;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4855a8, #1a237e);
    color: white;
    border: none;
}

.dash-card:hover h3 {
    color: white;
}

.dash-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #1a237e;
    transition: all 0.3s ease;
}

.dash-card:hover .dash-card-icon {
    color: white;
}

.dash-card h3 {
    color: #1a237e;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}


/* Remove fixed positioning from logo */
.logo-header {
    max-height: 50px;
}

.user-welcome {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.navbar .container-fluid {
  padding: 0 2rem;
}



.nav-links .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-links .btn:hover {
  background-color: #1a237e;
  color: #fff;
}





.logout-btn:hover {
    background: #111752 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Task Grid Specific Styles */
.task-grid-section {
    display: none;
    padding: 2rem;
    width: 100%;
}

.task-grid-section.active {
    display: block;
}

.task-grid-header {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.task-status-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #444;
}

.responsive-table-wrapper {
    width: 100%;
    /* overflow-x: auto;
    -webkit-overflow-scrolling: touch; */
    border-radius: 8px;
  }

.task-grid-table {
    width: 100%;
    min-width: 900px; /* or any size that fits your longest row */
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.task-grid-table th,
.task-grid-table td {
    padding: 1rem;
    white-space: nowrap; /* ✅ prevents text from wrapping and breaking layout */
    text-align: left;
    border-bottom: 1px solid #eee;
}

.task-grid-table th {
    background: #f8f9fa;
    color: #1a237e;
    font-weight: 600;
}

.task-grid-table tr:hover {
    background: #f5f5f5;
}

.task-grid-table td {
    color: #444;
}

.summary-scroll-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .summary-scroll-wrapper table {
    min-width: 400px; 
  }



.dash-main-content {
    display: block;
    
}

.dash-main-content.hidden {
    display: none;
}



/* Ref-num page */
.ref-num-page-content {
    background: white;
    margin: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .ref-num-title {
    color: #1a237e;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .ref-num-subtitle {
    color: #444;
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .ref-num-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .ref-num-tab {
    background: #4855a8;
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .ref-num-tab:hover {
    background: #1a237e;
  }
  
  .ref-num-tab.active {
    background: #1a237e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .ref-num-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .ref-num-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
  }
  
  .ref-num-label {
    font-weight: bold;
    color: #1a237e;
    width: 40%;
  }
  
  .ref-num-value {
    color: #444;
    width: 60%;
  }

  .ref-num-docs-table-container {
    margin-top: 2rem;
  }
  
  .ref-num-docs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .ref-num-docs-table th,
  .ref-num-docs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .ref-num-docs-table th {
    background: #f8f9fa;
    color: #1a237e;
    font-weight: 600;
  }
  
  .ref-num-docs-table tr:hover {
    background: #f5f5f5;
  }
  
  .ref-num-docs-table td {
    color: #444;
  }

  .task-grid-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .task-grid-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.task-grid-table th,
.task-grid-table td {
    padding: 1rem;
    text-align: center; /* ✅ Center align both header and data */
    border-bottom: 1px solid #eee;
}

.task-grid-table th {
    background: #f8f9fa;
    color: #1a237e;
    font-weight: 600;
    /* font-size: 9px; */
}

.task-grid-table tr:hover {
    background: #f5f5f5;
}

.task-grid-table td {
    color: #444;
}

.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
  }
  
  .task-grid-table {
    min-width: 700px; /* Or however wide your content needs to stay intact */
  }
  


  .ref-num-save-btn {
    color: white;
    /* background: #4855a8; */
    background: linear-gradient(90deg, #4855a8, #1a237e);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .ref-num-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }


  .ref-num-save-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
  


  .logout-container {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
  }
  
  .logout-btn {
    background: linear-gradient(to right, #002f6c, #c2145e);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .logout-btn i {
    margin-right: 8px;
  }
  
  .logout-btn:hover {
    background-color: #c82333;
    text-decoration: none;
  }










/* Force horizontal scroll on small and medium screens */
@media (max-width: 991px) {
    .responsive-table-wrapper {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 8px;
    }
  
    .task-grid-table {
      min-width: 900px;  /* Prevents table columns from squishing */
      white-space: nowrap;
    }
  
    .task-grid-table th,
    .task-grid-table td {
      white-space: nowrap; /* Keep text in one line */
      text-align: left;
      padding: 0.75rem 1rem;
    }

  
  }



  @media (max-width: 968px) {
    .login-page-container {
        flex-direction: column;
    }

    .login-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}



@media (max-width: 768px) {



    .login-subtitle {
        font-size: 1rem;
    }

    .login-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        width: 100%;
    }

    .login-page-container {
        padding: 0 1rem;
    }

    .dash-container {
        flex-direction: column;
        height: auto;
    }

    .dash-sidebar {
        width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .dash-nav-item {
        padding: 0.6rem 1rem;
    }

    .dash-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
        gap: 1rem;
    }

    .dash-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
        gap: 1rem;
    }

    .dash-card {
        padding: 1.5rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    .dash-title {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

   

    .task-grid-table {
        font-size: 0.9rem; /* Slightly smaller text */
      }
    
      .task-grid-table th,
      .task-grid-table td {
        padding: 0.75rem; /* Reduce padding */
      }
}
  