:root {
    --sidebar-width: 240px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(0,0,0,0.4);
}

.sidebar-overlay.show {
    display: block;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.sidebar .nav-link:hover {
    background: #f0f0f0;
    color: #212529;
}

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

.main-content {
    margin-left: var(--sidebar-width);
}

main {
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0;
    }
}

.card {
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.form-control,
.form-select {
    border-radius: 8px;
    font-size: 0.9rem !important;
    padding: 0.6rem 0.9rem;
}

@media (max-width: 575.98px) {
    .form-control,
    .form-select {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.65rem;
    }
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

.alert {
    border-radius: 8px;
    border: none;
}

.bg-light pre {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.bg-light pre::-webkit-scrollbar {
    width: 4px;
}

.bg-light pre::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
}

.modal-content {
    border-radius: 16px;
}

.batch-toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #212529;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    min-width: 360px;
}

.batch-toolbar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.min-w-0 {
    min-width: 0;
}

.dash-plan-title {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .dash-plan-title {
        font-size: 0.85rem;
    }
}

.batch-checkbox .form-check-input {
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .content-card .batch-checkbox {
        padding-left: 0;
        margin-top: -1px;
    }
    .content-card .batch-checkbox .form-check-input {
        width: 14px;
        height: 14px;
        margin-top: 0.35rem;
        margin-left: 0;
        float: none;
    }
    .content-card > .card-body > .d-flex.gap-2 {
        gap: 0.4rem !important;
    }
    .batch-toolbar {
        min-width: unset;
        width: calc(100% - 32px);
        bottom: 16px;
    }
}
