/* base.css */
body {
    background-color: var(--bg-primary);
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
}

h1 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 2rem;
}

h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--bg-primary);
    font-weight: bold;
}

/* Inputs inside table */
input[type="number"] {
    width: 70px;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
}

/* Select dropdown */
select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

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

input:checked + .slider {
  background-color: #4CAF50;
}

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

.custom-tooltip,
.material-icons.custom-tooltip {
    position: relative;
    display: inline-flex; /* container wraps icon + switch */
    align-items: center;
    cursor: pointer;
}

/* Tooltip text */
.custom-tooltip::after,
.material-icons.custom-tooltip::after {
    content: attr(data-custom-tooltip);
    position: absolute;
    bottom: 140%; /* position above container */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.7s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 9999;
}

/* Show tooltip on hover */
.custom-tooltip:hover::after,
.material-icons.custom-tooltip:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    table {
        font-size: 0.85rem;
    }
    input[type="number"] {
        width: 50px;
    }
    select {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
}

