/* Website Login Page */

.loginpage-body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  background-image: url('/media/WebsiteLoginPage/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f1c40f;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.loginpage-container {
  background-color: rgba(30, 30, 30, 0.9);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.loginpage-title {
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Quantico', sans-serif;
}
.loginpage-secondtitle {
  margin-bottom: 20px;
  color: #f1c40f;
  font-family: 'Quantico', sans-serif;
}
.loginpage-branding {
  padding-top: 20px;
  margin-bottom: 15px;
  color: #d2d2d2;
  font-family: 'Quantico', sans-serif;
}

.loginpage-input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #2c2c2c;
  color: #f1c40f;
}

.loginpage-submit {
  background-color: #f1c40f;
  color: #121212;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  font-family: 'Quantico', sans-serif;
}

.loginpage-submit:hover {
  background-color: #f1c40f;
}

.loginpage-error {
  color: #ff4d4d;
  margin-top: 10px;
}

.role-selection {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.role-selection label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
}

.role-selection input[type="radio"] {
    margin-right: 8px;
    accent-color: yellow; /* optional: makes the dot yellow */
    transform: scale(1.2); /* slightly bigger radio dot */
}

/* Fonts */
@font-face {
  font-family: 'Quantico';
  src: url('/fonts/quantico/quantico-regular.woff2') format('woff2'),
       url('/fonts/quantico/quantico-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Quantico';
  src: url('/fonts/quantico/quantico-italic.woff2') format('woff2'),
       url('/fonts/quantico/quantico-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Quantico';
  src: url('/fonts/quantico/quantico-bold.woff2') format('woff2'),
       url('/fonts/quantico/quantico-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Quantico';
  src: url('/fonts/quantico/quantico-bolditalic.woff2') format('woff2'),
       url('/fonts/quantico/quantico-bolditalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}


.header {
    position: relative;
    padding: 40px 20px;
    background: linear-gradient(90deg, #2b2b2b, #2b2b2b, #000000);
    border-bottom: 1px solid #444;
}

/* Logo left */
.header-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.logo {
    max-height: 120px;
    width: auto;
}

/* Right dropdown */
.top-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Title centered absolutely */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    left: 0; /* ensure center within middle column */
}
.header-center h1 {
    font-family: 'Quantico', sans-serif;
    font-size: 36px;
    color: #ffd700;
    margin: 0;
    text-shadow: 0 0 2px #ffffff, 1px 1px 2px #000;
}
.header-center h2 {
    font-family: 'Quantico', sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: #ccc;
    margin: 0;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .logo { max-height: 80px; }
    .header-center h1 { font-size: 24px; }
    .header-center h2 { font-size: 12px; }
}

@media (max-width: 480px) {
    .logo { max-height: 60px; }
    .header-center h1 { font-size: 20px; }
    .header-center h2 { font-size: 10px; }
    .top-right { top: auto; bottom: 10px; left: 50%; transform: translateX(-50%); }
}


/* === Top right section (dropdown + logout) === */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.top-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.top-right select {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 6px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    font-weight: bold;
    margin-right: 10px;
}

/* === Top main tabs === */
.tabs {
    display: flex;
    justify-content: center;
    background-color: #2b2b2b;
    border-bottom: 1px solid #444;
    color: #ffffff;
    flex-wrap: wrap;
}

/* Individual tab styling */
.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    border-bottom: 3px solid transparent;
    border-right: 1px solid #444; /* Separator between tabs */
    transition: background-color 0.3s ease;
    font-size: 13px;
    font-family: 'Quantico', sans-serif;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Remove right border from last tab */
.tab:last-child {
    border-right: none;
}

/* Hover effect */
.tab:hover {
    background-color: #d4af37;
    color: #000000;
}

/* Active tab styling */
.tab.active {
    color: #000000;
    background-color: #d4af37;
    font-weight: 600;
}

/* === Main container area === */
.main-container {
    padding: 30px;
}

/* === Base styles === */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #1e1e1e;
    color: #f1c40f;
}

/* === Layout === */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: #1e1e1e;
    padding-top: 20px;
    border-right: 1px solid #444;
    box-sizing: border-box;
    min-height: 100vh;
}

.main-container {
    flex: 1;
    padding: 40px 50px; /* Space between sidebar and content */
    box-sizing: border-box;
    background-color: #1e1e1e;
    display: flex;
    align-items: flex-start;
}
.group-main-container {
    flex: 1;
    width: 100%;
    padding: 40px 50px; /* Space between sidebar and content */
    flex-direction: column;
    box-sizing: border-box;
    background-color: #1e1e1e;
    display: flex;
    align-items: flex-start;
}


.content {
    flex: 1;
    padding: 30px;
    background-color: #1e1e1e;
}


/* === Sidebar items === */
.sidebar div {
    padding: 15px 20px;
    cursor: pointer;
    color: #f1c40f;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.sidebar div:hover {
    background-color: #292929;
}

.sidebar div span {
    margin-left: 8px;
}

.sidebar .active {
    background-color: #d4af37;
    color: #000;
}

/* === Section navigation (Create Group, etc.) === */
.nav-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-tabs a {
    padding: 10px 20px;
    background-color: #333;
    color: #f1c40f;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-tabs a:hover {
    background-color: #444;
}
.nav-tabs.group-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.nav-tabs.group-tabs {
    display: flex;
    justify-content: space-between; /* spread evenly */
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 30px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.nav-tabs.group-tabs a {
    flex: 1 1 20%; /* allow 4 in a row with spacing */
    padding: 15px;
    background-color: #2d2d2d;
    color: gold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: 1px solid #444;
}
.nav-tabs.user-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}
.nav-tabs.user-tabs {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 30px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.nav-tabs.user-tabs a {
    flex: 1 1 12%; /* allow 5 in a row with spacing */
    padding: 15px;
    background-color: #2d2d2d;
    color: gold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: 1px solid #444;
}

.nav-tabs.group-tabs a:hover,
.nav-tabs.group-tabs a.active {
    background-color: #444;
    color: #fff;
}
.nav-tabs.user-tabs a:hover,
.nav-tabs.user-tabs a.active {
    background-color: #444;
    color: #fff;
}


/* === Forms and inputs === */
input,
select,
button {
    padding: 10px;
    margin-top: 10px;
    background-color: #2b2b2b;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
}

input:focus,
select:focus {
    outline: none;
    border-color: #f1c40f;
}

.form-group {
    margin-bottom: 20px;
    margin-right: 10px;
    display: flex;
    align-items: flex-start;;
}

.form-group label {
    width: 160px;
    margin-right: 15px;
    font-weight: bold;
    color: #FFD700;
}

.form-group input,
.form-group select {
    background-color: #222;
    border: 1px solid #666;
    padding: 8px 10px;
    color: white;
    border-radius: 4px;
    flex: 1;
}

/* === Group form wrapper === */
.group-form {
    margin-top: 25px;
    width: 100%;
}

/* === Buttons === */
button,
button.btn {
    background-color: #FFD700;
    color: black;
    font-weight: bold;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
button.btn:hover {
    background-color: #e6c200;
}

/* === Alerts / Success messages === */
.alert {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
}

th,
td {
    padding: 12px;
    border: 1px solid #444;
}

thead tr {
    background-color: #1f1f1f;
}

/* === Section Headings === */
h2 {
    color: #ffcc00;
    margin-bottom: 20px;
}

/* === Flexible form rows (e.g., for policy mapping) === */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-end;
}

.policy-field {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.policy-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #ffcc00;
}

.policy-field input,
.policy-field select {
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background-color: #222;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

/* === Responsive fix for very narrow screens === */
@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        width: 100%;
        margin-bottom: 6px;
    }

    .tabs, .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
}
.content {
    flex: 1;
    padding: 30px;
    background-color: #1e1e1e;
}
.group-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.group-btn {
    padding: 10px 16px;
    background-color: #333;
    color: #ffc107;
    border: 1px solid #444;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.group-btn:hover {
    background-color: #444;
    color: #fff;
}

.group-form .form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.group-form .form-group {
    flex: 1 1 45%;
    min-width: 250px;
}

.group-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.group-form input,
.group-form select {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
}

.group-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* This ensures children stretch full width */
    padding: 20px;
    box-sizing: border-box;
}
/* Group form headings */
.group-wrapper h2,
.group-wrapper h3 {
    color: white;
}

/* Optional: make the group name in heading bold or slightly bigger */
.group-wrapper h3 {
    font-weight: 600;
    font-size: 1.2em;
}

.group-form-wrapper {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    align-items: stretch;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
}


.form-actions {
    text-align: center;
    margin-top: 30px;
}
.policy-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.policy-table th, .policy-table td {
    padding: 10px;
    border: 1px solid #444;
    text-align: center;
}

.policy-table th {
    background-color: #333;
    color: #fff;
}
.block-user-wrapper {
    width: 100%;
    margin-top: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 14px 20px;
    border-left: 4px solid #ffeeba;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.block-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block-form .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.block-form .form-group label {
    text-align: left !important;
    align-self: flex-start !important;
    font-size: 15px;
    font-weight: 600;
    color: #f1c40f;
    margin-bottom: 8px;
}

.block-form .form-group .required {
    color: #ff4444;
    margin-left: 4px;
}

.block-form textarea {
    padding: 14px;
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
    height: 120px;
    resize: vertical;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.helper-text {
    margin-top: 6px;
    color: #aaa;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-start; /* align left to stretch naturally */
    padding-top: 10px;
}

button[type="submit"] {
    background-color: #f1c40f;
    color: #111;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #e6b800;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Loader overlay */
#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.7); /* dark transparent */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* Spinner styling */
#loaderOverlay .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top: 6px solid #f1c40f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* === Reports Page === */
.main-header {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffcc00;
}

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.left-info,
.right-select {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.label {
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 10px;
    display: block;
}

.nasid-box {
    background-color: #2b2b2b;
    padding: 12px 20px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
}

.select-report {
    width: 100%;
    padding: 10px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
}

.report-output {
    margin-top: 30px;
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #444;
    min-height: 150px;
    color: #ccc;
}

.custom-date {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 36px 8px 10px;
    width: 160px;
    font-weight: bold;
    cursor: pointer;
}

.custom-date:focus {
    outline: none;
    border-color: #d4af37;
}

.custom-date::-webkit-calendar-picker-indicator {
    opacity: 1;                    /* 🔧 Make it visible */
    filter: invert(1);             /* ✅ Make it white */
    cursor: pointer;
    height: 18px;
    width: 18px;
    background: none;
}



.date-wrapper {
    position: relative;
    display: inline-block;
}

.calendar-icon {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-radius: 4px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm1-8h-1V1h-2v1H9V1H7v1H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V2h-2v1zm1 18H6V8h12v12z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
}
.line-text {
    color: white !important;
    font-weight: 500;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* makes icon white */
}

.success-text {
    color: rgb(115, 210, 115) !important;
    font-weight: 500;
}
.highlight-text {
    color: rgb(150, 150, 150) !important;
    font-weight: 500;
}
.side-by-side-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.half-width {
    flex: 1 1 45%;
    min-width: 250px;
}
.input-bold-grey {
    font-size: 16px;
    font-weight: bold;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #000000 !important;
    text-align: center !important; /* ✅ Centers the text */
}
.input-pop-text {
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ccc !important;
    color: #000000 !important;
    text-align: center !important; /* ✅ Centers the text */
}
.preview-button {
    font-size: 20px;       /* Increase size */
    color: #ffcc00;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #555555;  /* Grey background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
}
.modal-box p, .modal-box h3, .modal-box button {
    color: #ffffff; /* Darker text for better contrast */
}
/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
  }
  input:checked + .slider {
    background-color: #2196F3;
  }
  input:checked + .slider:before {
    transform: translateX(22px);
  }
  .slider.round {
    border-radius: 24px;
  }
  .slider.round:before {
    border-radius: 50%;
  }
  .input-field {
    width: 100%;
    padding: 8px;
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .isd-select {
    width: 150px !important;
}
.info-text {
    color: grey;
}
.yellow-link {
    color: yellow;
    font-weight: 500; /* optional */
}
.tight-form .form-group {
    margin-bottom: 2px; /* or whatever you prefer */
}

.tight-form .form-actions {
    margin-top: 2px;
}
.label {
    color: white !important;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    display: inline-block;
}

.nasid-box {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    max-width: 200px;
    word-break: break-word;
}

.select-report {
    width: 220px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
    background-color: #fff;
    color: #000;
    font-size: 14px;
}

.custom-date {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
    font-size: 14px;
}

.date-wrapper {
    position: relative;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm1-8h-1V1h-2v1H9V1H7v1H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V2h-2v1zm1 18H6V8h12v12z"/></svg>');
    background-size: cover;
    cursor: pointer;
}

/* This is the wrapper for the date and report inputs */
.report-controls {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Optional: remove that yellow background highlight on calendar icon click */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Remove background highlight (Firefox fallback: set dark theme) */
input[type="date"] {
    color-scheme: dark;
}

/* Date field wrapper if needed for spacing */
.date-wrapper {
    position: relative;
    display: inline-block;
}
.custom-date::-webkit-calendar-picker-indicator {
    opacity: 1;
    filter: invert(1);
    cursor: pointer;
    height: 18px;
    width: 18px;
    margin-left: 4px;
}
.quick-filters {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn.small {
    font-size: 13px;
    padding: 4px 10px;
}
/* style.css */

/* Cancel button styling */
.btn-secondary {
    background-color: transparent; /* or white background if you want */
    color: white;                 /* text color */
    border: 1px solid white;      /* optional border */
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: white;      /* on hover, you can invert */
    color: black;
}

.report-container {
    padding: 20px;
    background-color: #1c1c1c;
    color: #fff;
}

h2 {
    color: #ffcc00;
    margin-bottom: 20px;
}

table.display {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    background-color: #2b2b2b;
}

table.display th {
    background-color: #333;
    color: #ffcc00;
    padding: 10px;
    text-align: left;
}

table.display td {
    padding: 8px;
    border-bottom: 1px solid #444;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    color: #fff;
    background-color: #444;
    padding: 6px 12px;
    margin: 0 3px;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
}
/* Dashboard Network Health Graph */
/* -------------------------------
   TABS BAR (scrollable + wrap)
--------------------------------*/
.tabs-bar {
    display: flex;
    flex-wrap: wrap;            /* allow multiple rows */
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px solid #d4af37;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tabs-bar::-webkit-scrollbar {
    height: 6px;
}
.tabs-bar::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

/* -------------------------------
   DEFAULT TAB
--------------------------------*/
.tab {
    flex: 0 0 auto;
    background: #222;
    color: #fff;
    padding: 7px 15px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
    transition: 0.2s;
    user-select: none;
}

.tab strong {
    font-size: 14px;
    color: inherit;         /* inherits tab color */
}

.tab small {
    font-size: 11px;
    opacity: 0.85;
    color: inherit;         /* inherits tab color */
}

/* -------------------------------
   ACTIVE TAB (FIXED)
--------------------------------*/
.tab.active {
    background: #d4af37;        /* gold background */
    color: #000 !important;     /* black text */
    border-bottom: 1px solid #222;
    font-weight: bold;
}

/* Ensure child text also switches color */
.tab.active strong,
.tab.active small {
    color: #000 !important;
}

/* -------------------------------
   CONTENT AREA
--------------------------------*/
.tab-content {
    padding: 20px 0;
}

/* --- Chart Scroll Wrapper (adds padding left and right, avoids overflow) --- */
.chart-scroll-wrapper {
    overflow-x: auto;
    padding: 0 50px;
    margin-bottom: 25px; /* Adds left & right space to avoid edge cutoff */
}

.dashboard-wrapper {
    padding: 20px;
}

/* --- Main Chart Container --- */
.chart-container {
    background-color: #2b2b2b; /* Slightly lighter than black */
    border: 1px solid #444;   /* Outline effect */
    border-radius: 8px;
    padding: 15px;
    margin: 20px 20px 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Optional: adds depth */
    display: flex;
    flex-direction: column;
    width: auto; /* instead of min-width: max-content */
}

/* --- Title --- */
.chart-title {
    font-family: 'Quantico', sans-serif;
    padding: 12px 20px;
    margin: 20px auto 15px auto;
    color: white;
    font-size: 1.7rem;
    font-weight: bold;
    width: fit-content;
    display: block; 
}


/* --- Per Row (Date + Slots) --- */
.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

/* --- Date Label on Left --- */
.chart-date {
    width: 60px;
    text-align: right;
    padding-right: 10px;
    font-size: 12px;
    color: white;
    white-space: nowrap;
}

/* --- Slot Container (All Time Blocks) --- */
.chart-slots,
.chart-slots-labels {
    display: grid;
    grid-template-columns: repeat(144, 1fr);
    gap: 1px;
    flex-grow: 1;
    width: 100%; /* Ensures they fit container */
}


/* --- Individual Slot --- */
.chart-slot {
    height: 20px;
    border-radius: 4px;
    background-color: #444;
    max-width: 8px;
    width: 100%;
}



.chart-slot.up {
    background-color: #4caf50; /* Green */
}

.chart-slot.down {
    background-color: #f44336; /* Red */
}

.chart-slot.no-data {
    background-color: #999; /* Grey */
}

/* --- Time Labels Row --- */
.chart-time-labels {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

/* --- Left Label Under Time Row --- */
.chart-date-label {
    width: 60px;
    padding-right: 10px;
}


.chart-slot-label {
    font-size: 10px;
    color: white;
    text-align: center;
    width: 6px;
    min-width: 6px;
    white-space: nowrap;
}

.chart-slot-label.empty {
    visibility: hidden;
}

/* --- Legend --- */
.health-labels {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: white;
    font-size: 13px;
    justify-content: center;
}

.legend-box {
    width: 12px;
    height: 20px;
    display: inline-block;
    border-radius: 2px;
    margin-right: 6px;
}

.legend-box.up {
    background-color: #4caf50;
}

.legend-box.down {
    background-color: #f44336;
}
.legend-box.future {
    background-color: #555;
}
.chart-slot.future {
    background-color: #555; /* dark grey for future slots */
    cursor: default;
}


.legend-box.no-data {
    background-color: #999;
}
.dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 30px 20px;
}

.chart-container canvas {
    height: 400px !important; /* Adjust as needed (try 150px–250px) */
}
/* --- Legend for data usage --- */
.chart-labels {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: white;
    font-size: 13px;
    justify-content: center;
}
.legend-boxdata {
    width: 20px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
    margin-right: 6px;
}
.legend-boxdata.upload {
    background-color: #2479f9;
}

.legend-boxdata.download {
    background-color: #dbdb06;
}

/* --- Summarty card styles --- */
.summary-card {
    background: #444;
    border-radius: 12px;
    padding: 20px 25px;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.summary-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffd700;
}

.summary-card span {
    font-size: 0.9rem;
    color: #ccc;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    color: #ffffff;
}

.summary-header-right {
    display: flex;
    justify-content: flex-end;       /* Optional: affects vertical space if needed */
    align-items: flex-end;           /* Align items to the right horizontally */
    text-align: center;               /* Align text inside child elements to the right */
    margin-bottom: 15px;
    flex-direction: column;          /* Stack items vertically */
}

.location-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.location-name-pill {
    background-color: #60b4f8;
    color: #1e1e2f;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.95rem;
    top: 0;
    left: 0;
}

.online-users-pill {
    background-color: #d4af37;
    color: #1e1e2f;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: underline;
}

.online-users-pill:hover {
    background-color: #00c173;
}

.summary-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

.summary-left, .summary-right {
    flex: 1;
    min-width: 220px;
    line-height: 1.8;
}
.align-right {
    text-align: right;
}
.summary-details {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.left-details,
.right-details {
    flex: 1;
    min-width: 200px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
}
.summary-card-container {
    background-color: #2b2b2b; /* Slightly lighter than black */
    border: 1px solid #444;   /* Outline effect */
    border-radius: 8px;
    padding: 15px;
    margin: 20px 20px 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Optional: adds depth */
    display: flex;
    width: auto; /* instead of min-width: max-content */
    gap: 15px;
    flex-direction: column;
}
.popup-modal, .modal-content {
    background-color: #1e1e1e !important; /* match summary card */
    color: white !important;
    border-radius: 12px;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#onlineUsersModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Dim background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


#onlineUsersModalContent {
    background-color: #1e1e1e;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
    max-width: 700px;
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
}

#onlineUsersModalContent table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#onlineUsersModalContent th,
#onlineUsersModalContent td {
    padding: 10px;
    border: 1px solid #555;
    text-align: left;
}

#onlineUsersModal .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/*Settings*/
.settings-card {
    background: #1e1e1e;
    color: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.toggle-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2c2c2c;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

/* input[type="checkbox"] {
    display: none;
} */

.slider {
    width: 42px;
    height: 22px;
    background: #555;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

input[type="checkbox"]:checked + .slider {
    background: #d4af37;
}

input[type="checkbox"]:checked + .slider::before {
    transform: translateX(18px);
}

.apply-btn {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 150px;
    margin: 0 auto;
}

.apply-btn:hover {
    background-color: #222;
}
.success-msg {
    background-color: #d4af37;
    color: rgb(0, 0, 0);
    padding: 10px 15px 16px; /* Added extra bottom padding */
    border-radius: 6px;
    margin: 15px 0 20px;     /* Added bottom margin */
    text-align: center;
    font-weight: 500;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.success-msg.fade-out {
    opacity: 0;
}

/* Search Bar */
.search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1px;
    margin-bottom: 5px; 
}

.search-bar {
    position: relative;
    width: 300px;
}
#searchInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 16px;
    outline: none; /* prevent default blue outline */
    box-shadow: 0 0 0 2px transparent; /* placeholder for smooth focus effect */
    transition: box-shadow 0.2s ease-in-out;
}

#searchInput:focus {
    border-color: #ffcc00; /* yellow border on focus */
    box-shadow: 0 0 5px 2px rgba(255, 204, 0, 0.6); /* glowing yellow outline */
}
.search-bar input[type="text"] {
    padding: 6px 12px;
    width: 200px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.search-bar button {
    padding: 6px 12px;
    margin-left: 5px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #555;
}
.search-container {
    position: relative;
    display: inline-block;
}

/* Container for the suggestions */
/* Suggestion Box Container */
#suggestionBox {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: #222;
    border: 1px solid #555;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}

/* Individual Suggestion Items */
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    color: white;
    border-bottom: 1px solid #444;
    transition: background 0.2s, border 0.2s;
}

/* Hover Effect */
.suggestion-item:hover {
    background-color: #333;
    border-left: 3px solid #ffcc00;
}

/* Last item should not have bottom border */
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item.highlight {
    background-color: #444;
    border-left: 3px solid #00ffff;
}


/* Toggle button */
/* Toggle switch base */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  background: transparent !important; /* ✅ no grey box */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider track */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #666;   /* OFF state color */
  transition: .4s;
  border-radius: 34px;
}

/* Slider knob */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* ON state background */
input:checked + .slider {
  background-color: #f1c40f;  /* gold/yellow when ON */
}

/* Move knob when ON */
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Optional: focus ring */
input:focus + .slider {
  box-shadow: 0 0 1px #f1c40f;
}

/* Select box itself */
/* select {
  appearance: none;      
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #000 !important; 
  color: #fff !important;           
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
} */

/* Dropdown options */
select option {
  background-color: #000 !important;
  color: #fff !important;
}

/* Highlighted/hovered option */
select option:checked,
select option:hover {
  background-color: #222 !important; /* Dark grey highlight */
  color: #ff0 !important;           /* Yellow text when hovered/selected */
}

/* =========================
   Custom Dropdown Component
   ========================= */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select .selected {
  background: #000;
  color: #fff;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
}

.custom-select .dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  background: #000;
  border: 1px solid #444;
  border-radius: 6px;
  z-index: 999;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
}

.custom-select.active .dropdown-content {
  display: block;
}

.dropdown-search {
  width: 100%;
  padding: 6px;
  border: none;
  outline: none;
  background: #111;
  color: #fff;
  border-bottom: 1px solid #333;
}

.dropdown-search::placeholder {
  color: #888;
}

.custom-select .options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-select .options li {
  padding: 8px;
  cursor: pointer;
  color: #fff;
}

.custom-select .options li:hover {
  background: #222;
  color: #ff0;
}
/* --- Settings Page --- */
.settings-container {
  max-width: 600px;
  margin: 40px auto;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.settings-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f5c518;
  text-align: center;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #f5c518;
}
input:checked + .slider:before {
  transform: translateX(22px);
}

/* Button */
.apply-btn {
  background: #f5c518;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  color: #000;
}
.apply-btn:hover {
  background: #ffdb4d;
}

/* Success Message */
.success-message {
  background: #1a1a1a;
  border-left: 5px solid #4caf50;
  padding: 10px 15px;
  color: #4caf50;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Loader Overlay */
#loaderOverlay {
    display: none; /* hidden by default */
    position: fixed; /* overlay the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* semi-transparent dark background */
    z-index: 9999; /* ensure it’s on top */
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
}

/* Loader animation */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ffcc00; /* yellow spinner color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f5c518;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* MacBypass */

.content h2 {
    color: #FFD700; /* yellow/gold for "Connected Devices" */
}

.content p,
.content th,
.content td,
.content {
    color: #fff !important; /* force all other text white */
}
.content.full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0 10px; /* small breathing space */
}
td.status-dynamic { color: white !important; font-weight: bold !important; }
td.status-static { color: #f1c40f !important; font-weight: bold !important; }
td.status-na { color: rgb(255, 141, 141) !important; font-weight: bold !important; }

td.bypassed-yes { color: #f1c40f !important; font-weight: bold !important; }
td.bypassed-no { color: white !important; font-weight: bold !important; }

.action-dropdown { position: relative; display: inline-block; }
.action-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #222;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.action-dropdown .dropdown-content a {
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}
.action-dropdown .dropdown-content a:hover { background-color: #444; }
.action-dropdown:hover .dropdown-content { display: block; }
.btn-action { background-color: #555; color: white; padding: 6px 12px; border: none; cursor: pointer; border-radius: 4px; }

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    color: white;
}
.modal-content h3 {
    margin-top: 0;
    color: #ffd700;
}
.modal-content button {
    margin-right: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#modalSubmit { background: #f1c40f; color: rgb(0, 0, 0); }
#modalCancel { background: #dc3545; color: white; }

/* User whitelist */

.expired-row {
    background-color: #d87575 !important; /* light red */
    color: #000000 !important; /* dark red text */
}

/* Unique Renew Modal */
.renew-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.renew-modal-content {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 12px;
  width: 70%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.renew-modal-content h3 {
  margin-top: 0;
  font-size: 20px;
  color: #ffd700;
  text-align: center;
}

#expiredUserList {
  max-height: 400px;
  text-align: left !important; 
  overflow-y: auto;
  margin-bottom: 15px;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 6px;
}
/* Renew Modal - expired user list styling */


#expiredUserList label {
  display: inline-flex !important; /* keep checkbox + text inline */
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px;
  width: auto !important;
  margin: 4px 0;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}

#expiredUserList input[type="checkbox"] {
  margin: 0 !important;
}
.select-all-container {
    margin-bottom: 10px;
    text-align: left;
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px; /* space between checkbox and text */
    font-weight: 500;
    color: white; /* matches your theme */
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0 !important;
}
/* Quick select row */
.quick-buttons-row {
    margin-top: 10px;
}

/* Label spacing inside quick select row */
.quick-buttons-row .quick-label {
    flex: 0 0 150px;
}

/* Button container inside quick select row */
.quick-buttons-container {
    flex: 1;
}
/* Bigger quick select buttons */
.quick-select {
    padding: 0 20px;       /* horizontal padding only */
    font-size: 14px;       
    min-width: 90px;       
    margin: 3px;
    height: 40px;          /* 👈 fixed button height */
    line-height: 40px;     /* centers the text vertically */
}

/* ================= Location Overview Page ================= */

/* ---------- Change Font for Location Overview ---------- */
.main-content, 
.card, 
.kpi-card, 
.styled-table, 
.health-label, 
.health-percent, 
.card-title {
    font-family: 'Quantico', sans-serif; /* Futuristic/tech font */
}

/* ---------- General Card Title ---------- */
.card-title {
  text-align: center;       /* Center the h2 title */
  margin-top: 10px;         /* Top spacing */
  margin-bottom: 25px;      /* Bottom spacing */
  color: #ffffff;           /* White color */
}

/* ---------- Health Section Container ---------- */
.health-container {
  display: flex;
  flex-direction: column;
  align-items: center;      /* Center circle and label horizontally */
  margin: 30px auto;        /* Vertical spacing, centered horizontally */
}

/* ---------- Health Circle ---------- */
.health-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #2e2e2e, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    animation: blinkShadow 1.5s infinite; /* blinking shadow */
}

/* Glow depending on health status */
/* Different colors based on health status */
.health-circle.excellent { --shadow-color: rgba(76, 175, 80, 0.6); }
.health-circle.very-good { --shadow-color: rgba(255, 152, 0, 0.6); }
.health-circle.moderate  { --shadow-color: rgba(255, 193, 7, 0.6); }
.health-circle.critical  { --shadow-color: rgba(244, 67, 54, 0.6); }

/* Blinking shadow animation using CSS variable */
@keyframes blinkShadow {
    0%, 100% {
        box-shadow: 0 0 15px var(--shadow-color), 0 0 35px var(--shadow-color) inset;
    }
    50% {
        box-shadow: 0 0 35px var(--shadow-color), 0 0 50px var(--shadow-color) inset;
    }
}

/* ---------- Health Percentage Text ---------- */
.health-percent {
  font-size: 2.5rem;
  font-weight: bold;
  transition: color 0.3s ease-in-out; /* Smooth color change */
}

/* Color matches health status */
.health-percent.excellent { color: #4caf50; }
.health-percent.very-good { color: #ff9800; }
.health-percent.moderate { color: #ffc107; }
.health-percent.critical { color: #f44336; }

/* ---------- Health Label Below Circle ---------- */
.health-label {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease-in-out;
}

/* Color matches health status */
.health-label.excellent { color: #4caf50; }
.health-label.very-good { color: #ff9800; }
.health-label.moderate { color: #ffc107; }
.health-label.critical { color: #f44336; }


/* ---------- Styled Table ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  background-color: #1e1e1e; /* Dark card background */
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4); /* subtle shadow */
}

/* Table Header and Cell Padding */
.styled-table th, 
.styled-table td {
  padding: 12px 16px;
  text-align: left;
}

/* ---------- Table Header ---------- */
.styled-table thead th {
  color: #f1c40f;      /* Yellow headers */
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  background-color: #333; /* Dark background for contrast */
}

/* ---------- Table Row Styles ---------- */
.styled-table tbody tr:nth-child(even) {
  background-color: #2c2c2c; /* alternate dark rows */
}

.styled-table tbody tr:hover {
  background-color: #3a3a3a; /* hover effect */
}

/* ---------- Status Badges ---------- */
.status-online {
  color: #4caf50;       /* green */
  font-weight: bold;
  text-shadow: 0 0 6px rgba(76, 175, 80, 0.7); /* subtle glow */
}

.status-offline {
  color: #f44336;       /* red */
  font-weight: bold;
  text-shadow: 0 0 6px rgba(244, 67, 54, 0.7); /* subtle glow */
}

/* Table Container with Shadow */
.table-container {
  margin: 20px 15px 30px 15px;
  border-radius: 12px;
  background-color: #1e1e1e; /* table card background */
  padding: 10px;

  /* Balanced shadow all around */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* default black, will override dynamically */
  transition: box-shadow 0.3s ease-in-out;
}

/* Dynamic shadow based on health status */
.table-container.excellent {
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); /* green glow */
}

.table-container.very-good {
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.5); /* orange glow */
}

.table-container.moderate {
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5); /* yellow glow */
}

.table-container.critical {
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.5); /* red glow */
}

/* Keep table itself transparent so container shadow shows */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent;
}
/* KPI Container */
.kpi-container {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* align vertically if needed */
  gap: 20px;                 /* space between cards */
  margin: 20px 0;            /* spacing above/below */
}

/* KPI Card Base */
.kpi-card {
  flex: 0 0 120px;           /* equal fixed width */
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Individual KPI Colors */
.kpi-card.total   { background: #34495e; } /* dark gray */
.kpi-card.online  { background: #27ae60; } /* green */
.kpi-card.offline { background: #e74c3c; } /* red */

/* ISP Status */

.isp-box {
    background: #0d0d0d;
    padding: 20px;
    border-radius: 10px;
    color: #f7c600;
    margin-top: 20px;
}

.add-box, .list-box {
    margin-top: 20px;
}

.isp-table {
    width: 100%;
    border-collapse: collapse;
}

.isp-table th, .isp-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #fff;
}

.isp-table input {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #1a1a1a;
    color: #f7c600;
}

select {
    padding: 6px;
    border-radius: 5px;
    background: #1a1a1a;
    color: #f7c600;
    border: 1px solid #555;
}

.btn-yellow {
    background: #f7c600;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-yellow:hover {
    opacity: 0.8;
}

.btn-red {
    background: #ff3b3b;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-red:hover {
    opacity: 0.8;
}




