/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Root Variables */
:root {
  --primary-color: #8F6FE0;
  --secondary-color: #4B4B4B;
  --at-risk: #FFCA1B;
  --vulnerable: #F4292F;
  --critical: #F4292F;
  --outdated: #2BC67E;
  --secure: #2BC67E;
  --bg-light: #F9F9F9;
  --white: #FFFFFF;
  --gray-border: #ddd;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(1deg,#8E6FE1,#D873AB);
  --border-color:#E4E5E7;
  --bg-white:#ffffff;
  --btn-primary:linear-gradient(1deg,#8E6FE1,#D873AB);
  --btn-danger:rgba(244, 41, 47, 1);
  --green-color:rgba(43, 198, 126, 1);
  --gray: #6b7381;
  --gray-light: #a2a6b1;
  --gray-lighter: #d3d5db;
}

/* #vigil-plugin * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
} */
#vigil-plugin p { margin: 0px !important;}
.gauge-chart {
  width: 100%;
  min-height:260px;
}
body {
  background-color: var(--bg-light);
}
/* Form Title */
h3 {
font-size: 14px;
font-weight: 700;  

}
/* Sidebar */
.sidebar {
  background-color: var(--white);
  padding: 20px;
  border-right: 1px solid var(--gray-border);
  height: calc(100%);
}

.logo-img{
  /* padding: 5px; */
  margin-top: 5px!important;
}
.logo-img img{
  /* width: 35px; */
  height: 35px;
}
.logo-text{
  font-size: 36px;
    font-weight: 700;
}
.sidebar .logo {
  margin-bottom: 20px;
}

.sidebar nav a {
  display: block;
  padding: 17px 24px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 300;
  border-radius: 8px;
}
.sidebar nav a:hover {
  display: block;
  padding: 17px 24px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 300;
  border-radius: 8px;
  background-color: #BC71BF1A;
}

.sidebar nav a.active {
  font-weight: bold;
  background-color: #BC71BF1A;
  color: var(--primary-color);
}

.sidebar nav a.active i {
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.sidebar nav a .fa {
  margin-right: 10px;
}

.right-box{
  margin-left: 0px !important;
  margin-right: 0px!important;
  width: 79%!important;
}
/* Top Bar */
.top-bar {
  padding: 10px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: gray;
}

.breadcrumb .divider {
  margin: 0 5px;
  color: var(--secondary-color);
}

.breadcrumb .current {
  color: var(--secondary-color);
}

/* Page Title */
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 5px;
}


/* Scan Button */
.scan-btn {
  background: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  border-radius: 5px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.scan-btn:hover {
  background: #5B21B6;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 16px;
}

.alert i {
  font-size: 18px;
  margin-right: 10px;
}

.success {
  background-color: #E5FFF2;
  color: #08DE73;
  border: 1px solid #2BB06D26;
}

.danger {
  background-color: #FFECEB;
  color: #F04438;
  border: 1px solid #F0443826;
}

.warning {
  background-color: #FFF4E5;
  color: #FF9F1A;
  border: 1px solid #C27B1A26;
}

.info {
  background-color: #F4E9FB;
  color: #A752E0;
  border: 1px solid #9535D226;
}


/* Grid gap using Bootstrap classes, but ensuring fallback with margin */
.row.g-4 {
  --bs-gutter-y: 30px; /* Adds spacing between rows */
  --bs-gutter-x: 30px; /* Adds spacing between columns */
}
.row.mt-25{
  margin-top:25px ;
}

/* License Box */
.full-card {
  display: flex;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(239, 240, 246, 1);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}
.scans-listing .full-card{
  padding: 0px 10px 0px 10px;
}
.license-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f4f4f4;
  font-size: 14px;
  color: #666;
}

.primary-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: var(--gradient);
  color: var(--white);
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;

}
.intiate_manual_scan{
  padding: 15px 20px;
  width: 30%;
  font-size: 20px;
}
.primary-btn:hover {
  background: linear-gradient(45deg, #732D91, #9B59B6);
}

.danger-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: var(--btn-danger);
  color: var(--white);
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: .25rem;
  font-size: .875em;
  color: var(--critical);
}
.is-invalid{
  border: 1px solid var(--vulnerable)!important;
}
.is-invalid.invalid-feedback{
  border: none!important;
}
.danger-btn:hover {
  background: linear-gradient(45deg, #732D91, #9B59B6);
}

/* Form Group */
.form-group {
  text-align: left;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--secondary-color);
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 14px;
}
.wd-50{
  width: 50% !important;
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.checkbox input {
  width: auto;
}

.checkbox a {
  color: #8E6FE1;
  text-decoration: none;
}
.license-info{
  font-size: 14px;
}



label {
  display: block;
  font-size: 14px;
  margin: 10px 0 5px;
  font-weight: 500;
}

.right-box input[type="text"],
.right-box input[type="email"],
.right-box select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #f5f5f5;
  height: 46px;
  line-height: 1;
  -webkit-appearance: auto;
  margin: 0 0px;
}
.section .inline-select{
  width: 28% !important;
  padding: 5px !important;
  height: 30px;
}
.section .inline span{
  font-size: 12px!important;
  color: rgba(0, 0, 0, 0.7);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.section {
  margin-bottom: 20px;
}
.right-box .section {
  padding-left: 100px;
}
.inline {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.inline-checked {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.inline label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  gap: 6px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  transition: 0.2s;
  position: relative;
}

.radio-option input[type="radio"]:checked {
  border-color: #8E6FE1;
}

.radio-option input[type="radio"]:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #8E6FE1;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.checkbox-option input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: 0.2s;
  position: relative;
}

.checkbox-option input[type="checkbox"]:checked {
  border-color: #8E6FE1;
  background-color: #8E6FE1;
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.center { text-align: center;}


.table-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin: 40px auto;
  max-width: 1000px;
}

#scanTable {
  width: 100%;
  border-collapse: collapse;
}

#scanTable thead th {
  text-align: left;
  font-weight: 600;
  background:var(--bg-white);
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
}
table.dataTable.stripe>tbody>tr.odd>*, table.dataTable.display>tbody>tr.odd>* {
  box-shadow:none!important;
}

#scanTable td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

.badge {
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 13px;
  /* font-weight: 500; */
  display: inline-block;
  color: #fff;
  text-align: center;
}

.badge.scanning {
  background-color: #44A9F2;
}
.badge.processing {
  background-color: #44A9F2;
}

.badge.available {
  background-color: #2BC67E;
}

.badge.failed {
  background-color: #F4292F;
}

.d-flex{display: flex;}
.left-sidebar{margin-left: 0px !important; margin-top: 0px!important; margin-right: 0px!important;}

/* Toggle Switch */
.toggle-wrapper {
  text-align: center;
  font-family: Arial, sans-serif;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 50px;
  transition: 0.4s;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  box-sizing: border-box;
}

.slider::before {
  content: "";
  position: absolute;
  height: 30px;
  width: 30px;
  right: 5px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.label-on {
  display: block;
}

.label-off {
  display: none;
}

/* Toggle ON */
.toggle-switch input:checked + .slider {
  background-color: #146C43;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(-40px);
}

.toggle-switch input:checked + .slider .label-on {
  display: block;
}

.toggle-switch input:checked + .slider .label-off {
  display: none;
}

/* Toggle OFF */
.toggle-switch input:not(:checked) + .slider .label-on {
  display: none;
}

.toggle-switch input:not(:checked) + .slider .label-off {
  display: block;
}

/* Text under toggle */
.label-text {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}





.switch {
  position: relative;
  display: inline-block;
  width: 63px;
  height: 32px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
  top: 6px;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(239, 240, 246, 1);
}

.slider::before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 0px;
  bottom: 0px;
  background-color:var(--green-color);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color:rgba(255, 255, 255, 1);
}

input:checked + .slider::before {
  transform: translateX(31px);
}

/* Buttons */


/* Layout */
.log-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  gap: 20px;
}

.log-label {
  flex: 1;
  min-width: 120px;
}

.log-subtext {
  font-size: 14px;
  color: #777;
}
.logo-section { padding: 0px 25px 0px 25px;}

.one-col-setting .full-card{
  margin: auto 25%;
}
.one-col-setting.right-box .section{
  padding-left: 0px;
}
   /* Loader Overlay Styling */
   .ajax-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* display: flex; */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* border-radius: 8px; */
}

.ajax-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
.settings .form-group span{
  font-size: 11px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.right-box .ajax-loader-overlay {
  position: absolute;
  top: 0%;
  left: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  border-bottom-left-radius: 8px; /* Left bottom corner */
  border-bottom-right-radius: 8px; /* Right bottom corner */
  /* border-radius: 8px; */
}
button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
.vulnerabilities-list table {
  width: 100%;
}
.vulnerabilities-list th, .vulnerabilities-list td {
  border-bottom: 1px solid #ddd;
  text-align: center;
}
@media only screen and (max-width: 480px) {
  /* Styles for phones */
  .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .right-box{ width: 100%!important;}
  .log-settings {
   
    flex-wrap: wrap;
    gap: 50px;
  }
  .right-box .section {
    padding-left: 0px;
  }
  .inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .section .inline-select {
    width: 100% !important;
    
  }
}

@media only screen and (min-width: 481px) and (max-width: 767px) {
  .d-flex{ display: block;}
  .right-box{ width: 100%!important;}
  .right-box .section {
    padding-left: 0px;
  }
  .left-sidebar{display: inline-grid; width: 100%!important;}

  .row {
    /* display: flex; */
    flex-direction: column;
    gap: 20px;
  }


  .rating-card {
    margin: 0 auto;
  }

  .chart-lable .title {
    font-size: 22px;
  }

  .chart-lable small {
    font-size: 14px;
  }

  .endpoint {
    width: 30px;
    height: 30px;
  }
  .scan-date{
    font-size: 15px;
  }
  .full-card{
    position: relative;
  }
  .log-setting .full-card{
    position: relative;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Styles for tablets in portrait */
  .scan-label{
    font-size: 12px;
  }
  .scan-date{
    font-size: 15px;
  }
  .sidebar{
    padding: 12px;
  }
  .sidebar nav a{
    padding: 17px 5px;
  }
  .full-card{
    position:relative;
  }
  .log-setting .full-card{
    position: relative;
  }
  .inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .section .inline-select {
    width: 100% !important;
    
  }
  .right-box .section {
    padding-left: 0px;
  }
  
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  /* Styles for tablets in landscape */
  .scan-label{
    font-size: 12px;
  }
  .scan-date{
    font-size: 15px;
  }
  .sidebar{
    padding: 12px;
  }
  .sidebar nav a {
    padding: 17px 5px;
  }
  .inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .section .inline-select {
    width: 100% !important;
}
  .right-box .section {
    padding-left: 0px;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1439px) {
  /* Styles for small desktops and laptops */
}
@media only screen and (min-width: 1440px) {
  /* Styles for large desktops */
}
@media only screen and (min-width: 1920px) {
  /* Styles for very large screens */
}
.tablenav-pages{
    float: right;
    margin-top: 23px;
    color: #333;
}

/* Pagination Container */
#vigisesc-scan-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Pagination Links Wrapper */
.pagination-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Base Button Styles */
.pagination-links .button {
    display: inline-block;
    padding: 8px 12px;
    margin: 0;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

/* Hover Effect for Clickable Buttons */
.pagination-links .button:hover:not(.disabled):not(.current) {
    background: #f5f5f5;
    border-color: #999;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Current/Active Page */
.pagination-links .button.current,
.pagination-links .button.dt-paging-button {
    background: linear-gradient(to bottom, #585858 0%, #111 100%);
    color: white !important;
    border: 1px solid #111;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

/* Disabled State (Previous/Next when not applicable) */
.pagination-links .button.disabled {
    background: #f7f7f7;
    color: #a7aaad;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Previous and Next Buttons */
.pagination-links .prev-page,
.pagination-links .next-page {
    padding: 8px 16px;
    font-weight: 500;
}

/* Focus States for Accessibility */
.pagination-links .button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #fff;
}

/* Alternative Modern Style */
.pagination-links.modern-style .button {
    border-radius: 8px;
    padding: 10px 14px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    margin: 0 1px;
}

.pagination-links.modern-style .button:hover:not(.disabled):not(.current) {
    background: #e9ecef;
    color: #212529;
}

.pagination-links.modern-style .button.current {
    background: #007bff;
    color: #fff;
}

.pagination-links.modern-style .button.disabled {
    background: #f8f9fa;
    color: #6c757d;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    #vigisesc-scan-pagination {
        margin: 15px 0;
    }
    
    .pagination-links .button {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .pagination-links .prev-page,
    .pagination-links .next-page {
        padding: 6px 12px;
    }
    
    /* Hide some page numbers on mobile */
    .pagination-links .button:nth-child(n+6):nth-last-child(n+4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination-links {
        gap: 1px;
    }
    
    .pagination-links .button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .pagination-links .prev-page,
    .pagination-links .next-page {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Show only prev, current, next and a few pages on mobile */
    .pagination-links .button:nth-child(n+5):nth-last-child(n+3) {
        display: none;
    }
}

/* Alternative Pill Style */
.pagination-links.pill-style {
    border-radius: 25px;
    background: #f8f9fa;
    padding: 4px;
}

.pagination-links.pill-style .button {
    border-radius: 20px;
    border: none;
    background: transparent;
    margin: 0 2px;
}

.pagination-links.pill-style .button:hover:not(.disabled):not(.current) {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-links.pill-style .button.current {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Loading State */


.pagination-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ddd;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

        .table-container {
            padding: 20px;
            overflow-x: auto;
        }

        .table-container table {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #ddd;
        }

        .table-container thead {
            background-color: #34495e;
            color: white;
        }

        .table-container th {
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
        }

        .table-container tbody tr {
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s;
        }

        .table-container tbody tr:hover {
            background-color: #f8f9fa;
        }

        .table-container tbody tr:nth-child(even) {
            background-color: #fafafa;
        }

        .table-container tbody tr:nth-child(even):hover {
            background-color: #f0f0f0;
        }

        .table-container td {
            padding: 12px 15px;
            font-size: 14px;
            vertical-align: middle;
        }

        .table-container .cve-code {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            color: #2c3e50;
        }

        .table-container .severity {
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            display: inline-block;
        }

        .table-container .severity-critical {
            background-color: #e74c3c;
            color: white;
        }

        .table-container .severity-high {
            background-color: #e67e22;
            color: white;
        }

        .table-container .severity-medium {
            background-color: #f39c12;
            color: white;
        }

        .table-container .severity-low {
            background-color: #27ae60;
            color: white;
        }

        .table-container .reference-link {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
        }

        .table-container .reference-link:hover {
            text-decoration: underline;
            color: #2980b9;
        }

        @media (max-width: 768px) {
            .table-container {
                padding: 10px;
            }
            
            .table-container th, td {
                padding: 8px 10px;
                font-size: 12px;
            }
            
            .table-container .header h1 {
                font-size: 20px;
            }
        }