/* ========================================= */
/* ASM Capability Tab Styling (V3 - Polished) */
/* ========================================= */

.asm-capability-wrapper {
    background: #f7f7f7; /* Very light background */
    padding: 25px;
    border: none;
    border-radius: 8px; /* Slightly more rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06); /* Stronger, softer shadow */
}

/* --- Section Headers --- */
.asm-cap-header {
    font-size: 2em; /* Slightly larger main header */
    color: #2c3338; 
    margin: 15px 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa; 
    font-weight: 600;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

/* Group Container */
.asm-cap-group {
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff; /* Crisp white background */
    border: 1px solid #e1e1e1; 
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.asm-cap-group h4 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 25px;
    color: #0073aa; 
    border-left: 5px solid #46b450; 
    padding-left: 15px;
    font-weight: 600;
}

/* --- Table Enhancements --- */
.asm-capability-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate; /* Allows border-radius on cells */
    border-spacing: 0;
}

.asm-capability-table thead th {
    background-color: #f0f0f0; /* Lighter header background */
    color: #555;
    font-weight: 700;
    border-bottom: 2px solid #c3c4c7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 8px; /* More vertical padding */
}

.asm-capability-table th, 
.asm-capability-table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 0.95em;
    border-bottom: 1px solid #efefef; /* Very thin border for separation */
    border-right: 1px solid #f7f7f7;
}

/* Capability Label Column */
.asm-capability-table th:first-child, 
.asm-capability-table td:first-child {
    text-align: left;
    width: 40%;
    font-weight: 500;
    color: #23282d;
    background-color: #fafafa; /* Very subtle background for label */
    padding-left: 20px;
}

/* Toggle Column Highlight (Focus Area) */
/* This highlights the column where the toggles are */
.asm-capability-table td:not(:first-child) {
    background-color: #fcfcfc; /* Slightly distinct background for toggle area */
    transition: background-color 0.2s ease;
}

/* Row Hover Effect */
.asm-capability-table tbody tr:hover td {
    background-color: #f0f8ff; /* Light blue on row hover */
}

/* Admin (✔) Status */
.cap-status {
    font-weight: 900;
    font-size: 1.4em;
    color: #00871d; 
}

/* ========================================= */
/* Toggle Switch Design (Smooth) */
/* ========================================= */

.asm-toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px; 
  height: 24px; 
  margin: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b3b3b3; /* Neutral grey for OFF */
  transition: all .4s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* Bigger handle */
  width: 20px;
  left: 2px; 
  bottom: 2px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25); /* Clearer shadow on handle */
  transition: all .4s ease;
}

/* Checked/ON State */
input:checked + .slider {
  background-color: #46b450; 
}

/* Focus Ring */
input:focus + .slider {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0073aa; 
}

input:checked + .slider:before {
  transform: translateX(21px); /* Adjusted movement */
}

/* Rounded shape */
.slider.round {
  border-radius: 24px; 
}

.slider.round:before {
  border-radius: 50%;
}
