/*body {
  font-size: .875rem;
}
*/
body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; }

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
  font-weight: bold;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .89rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
 * Utilities
 */

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.chart-card { 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
}
.badge { padding: 5px 10px; border-radius: 4px; color: white; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; }
.risk-3 { background-color: #e74c3c; } /* High */
.risk-2 { background-color: #e67e22; } /* Medium */
.risk-1 { background-color: #f1c40f; color: #2c3e50; } /* Low */
.risk-0 { background-color: #3498db; } /* Informational */
.mt_10{
  margin-top:5rem!important;
}
#pentest_result .btn-link::before {
    content: "\2212"; /* Unicode for minus sign */
    font-weight: bold;
    margin-right: 10px;
}

/* The collapsed state - Show the plus sign */
#pentest_result .btn-link.collapsed::before {
    content: "\002B"; /* Unicode for plus sign */
    font-weight: bold;
}

/* Optional: Remove the default underline from Bootstrap buttons */
.btn-link:hover, .btn-link:focus {
    text-decoration: none;
}

.report-container { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        
/* Accordion +/- Toggle Logic */
.btn-link { text-decoration: none !important; color: #333; font-weight: 600; }
.btn-link::before {
    content: "\2212"; /* Minus sign */
    font-weight: bold;
    margin-right: 12px;
    color: #666;
}
.btn-link.collapsed::before {
    content: "\002B"; /* Plus sign */
}

/* Scrollable Instance Box */
.scrollable-instances {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.scrollable-desc {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}


/* Custom Scrollbar */
.scrollable-instances::-webkit-scrollbar { width: 5px; }
.scrollable-instances::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* Small Copy Button */
.btn-xs { padding: 0.1rem 0.4rem; font-size: 0.75rem; }

code { word-break: break-all; white-space: pre-wrap; }
.instance-card { border-left: 3px solid #dee2e6; }

.card-header { background: transparent; border-bottom: 1px solid #eee; padding: 1.5rem; }
.form-control { border-radius: 8px; padding: 0.6rem 1rem; border: 1px solid #dce1e7; }
.form-control:focus { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); }
.btn-primary { border-radius: 8px; padding: 0.6rem 1.5rem; font-weight: 600; transition: all 0.3s; }
.section-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #e7f1ff; color: #007bff; margin-right: 15px; }
.danger-zone { background-color: #fff5f5; border: 1px solid #ffe3e3; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 55px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  }

  .sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 2.1rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if too long */
  }

.navbar {
      padding: 0.75rem 1.5rem;
      background-color: #1e293b !important; /* Dark slate for a premium feel */
      border-bottom: 1px solid rgba(255,255,255,0.1);
  }
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.25rem;
    color: #f8fafc !important;
}
  .status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981; /* Green for 'System Live' */
    border-radius: 50%;
    display: inline-block;
}
.status_msg{
  color:#007bff !important;
  font-weight: bold;
}

    .findings-header { border-bottom: 1px solid #edf2f7; padding-bottom: 1.5rem; margin-bottom: 2rem; }
    .meta-pill { background: #f8fafc; border: 1px solid #e2e8f0; padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; color: #475569; }
    .severity-card { border: none; border-radius: 12px; overflow: hidden; max-width: 600px; } /* Kept compact as it's a summary */
    .table thead th { background-color: #f8fafc; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: #64748b; border-top: none; }
    .accordion .card { border: 1px solid #e2e8f0; margin-bottom: 0.5rem; border-radius: 8px !important; }
    .section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 1.25rem; display: flex; align-items: center; }
    /* Dashboard specific styling to complement Inter font */
    .dash-header { border-bottom: 1px solid #e2e8f0; padding-bottom: 1.5rem; margin-bottom: 2rem; }
    .meta-badge { background: #f1f5f9; padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; color: #475569; border: 1px solid #e2e8f0; }
    .card { border: 0.1px solid lightgrey !important; border-radius: 12px; transition: all 0.3s ease; }
    .card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; }
    .card-title { font-size: 1rem; font-weight: 600; color: #1e293b; margin-bottom: 1.5rem; }
    
    .chart-container { 
        position: relative; 
        width: 100%; 
        height: 250px; /* Uniform height for both */
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    
    .dial-label { 
        position: absolute; 
        top: 60%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        text-align: center; 
    }

.badge-soft-warning {
    background-color: #fff3cd; /* Light yellow background */
    color: #856404;            /* Darker text for readability */
    border: 1px solid #ffeeba;
}

.badge-soft-info {
    background-color: #e0f7fa;
    color: #006064;
    border: 1px solid #b2ebf2;
}

