.main-content header {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

.logo {
    height: 40px;
}

.tabs {
    display: flex;
    flex-grow: 1;
}

.tab {
    background: none;
    border: none;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-theme-toggle {
    margin-right: 12px;
}

.user-menu {
    position: relative;
    margin-left: auto;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    right: -20px;
    top: 42px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    font-size: 12px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

/* body style removed to avoid conflict with main dashboard */


.toggle-btn {
    padding: 10px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: small;
    margin-top: 2px;
    text-align: center;
}

.row-container {
    display: flex;
    flex-direction: row;
    margin-top: -10px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 10px 0;
    text-transform: capitalize;
    max-width: 1400px;
}

.controls-labels,
.card {
    background: var(--card-bg, #fff);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-main, #5a5757);
}


.theme-dark .card {
    background: var(--bg-secondary, #fff);
}

.back-arrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid grey;
    margin-right: 15px;
    cursor: pointer;
}

.invisible {
    opacity: 0;
    cursor: unset;
}

@media (max-width: 800px) {
    .row-container {
        flex-direction: column;
    }
}
