/* static/css/styles.css */
.offcanvas-body {
    padding: 0;
}

.menu-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.container {
    margin-left: 250px;
    transition: margin-left 0.3s;
}

.menu-btn {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1000;
}

/* CSS for the dataset Clone */
.dataset-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dataset-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.dataset-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dataset-item:hover {
    background-color: #e9ecef;
}

.dataset-item.selected {
    background-color: #d1e7dd;
}

.form-section {
    margin-bottom: 25px;
}

.loading-spinner {
    display: none;
    margin-left: 10px;
}


.dataset-item.selected {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
}

.selected-count {
    margin-bottom: 10px;
    font-weight: bold;
    color: #198754;
}

.project-code-input {
    margin-bottom: 15px;
}

/* Add these to styles.css */
.metadata-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.metadata-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.metadata-item:hover {
    background-color: #e9ecef;
}

.metadata-item.selected {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
}

.config-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.hierarchy-select {
    margin-bottom: 10px;
}

.hierarchy-select select {
    margin-bottom: 5px;
}

.hidden-section {
    display: none;
}

.mode-toggle-container {
    margin-bottom: 15px;
}

.mode-btn {
    min-width: 140px;
}

.mode-btn.active-mode {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Landing page cards */
.landing-grid .landing-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}
.landing-grid .landing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(16,24,40,0.12);
}
.landing-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(13,110,253,0.06), rgba(111,66,193,0.04));
}
.landing-body {
    padding: 14px 16px;
}
.landing-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}
.landing-card .text-muted.small {
    color: #6c757d;
}

/* responsive tweaks: keep 3 cards per row on large screens, 2 on md, 1 on small */
@media (min-width: 992px) {
    .landing-grid .col-lg-4 { display: flex; }
    .landing-grid .col-lg-4 > .landing-card { flex: 1 1 auto; }
}
@media (max-width: 991px) {
    .landing-image { height: 100px; }
}
@media (max-width: 575px) {
    .landing-image { height: 80px; }
}

/* small helper for page heading */
.container h1 { font-weight: 600; }
.container p.text-muted { margin-bottom: 1.5rem; }