/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* Sidebar Styles */
.sidebar {
    background-color: #fff;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #0d6efd;
    background-color: #e9ecef;
}

.sidebar .nav-link .feather {
    margin-right: 8px;
    color: #6c757d;
}

.sidebar .nav-link.active .feather,
.sidebar .nav-link:hover .feather {
    color: #0d6efd;
}

/* Main Content Styles */
.content {
    padding: 2rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: transparent;
    color: #212529;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Utility classes */
.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.h2 {
    font-weight: 300;
}

/* ===== Settings page ===== */

/* Card header with inline toggle */
.settings-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    min-height: 48px;
}

.settings-card .card-header .form-check {
    margin-bottom: 0;
    padding-top: 0;
}

/* Prevent settings cards from hover-lifting (they're form containers, not clickable) */
.settings-card:hover {
    transform: none;
}

/* Section heading with subtle divider */
.settings-section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.settings-section-heading i {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Top-level master toggle */
.settings-master-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Vertically center checkboxes alongside inputs in a row */
/* min-height = Bootstrap .form-control height (1.5em + 0.75rem + 2px) + label row (~1.75rem) */
.settings-card .form-switch-centered {
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px + 1.75rem);
    padding-top: 1.75rem;
}

/* Remove double border when card-header is the last child (no card-body) */
.settings-card .card-header:last-child {
    border-bottom: 0;
}

/* Tooltip help icon next to labels */
.settings-tip {
    font-size: 0.8em;
    color: #adb5bd;
    cursor: help;
    margin-left: 0.2rem;
    vertical-align: middle;
    transition: color 0.15s;
}
.settings-tip:hover {
    color: #6c757d;
}
