.mrm-file-list {
    background: #fafafa;
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0.5em 1em;
}

.mrm-file-list li {
    background: #f5f5f5;
    border-left: 5px solid #3f51b5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1em;
    transition: background 0.3s ease;
}

.mrm-file-list li:hover {
    background: #e0e0e0;
}

.mrm-file-list a {
    color: #333;
    display: block;
    font-weight: bold;
    text-decoration: none;
    word-wrap: break-word;
}

.mrm-file-list a::before {
    content: "📎 ";
    font-size: 1.2em;
    margin-right: 0.3em;
}

/* Base styling */
.mrm-file-item {
    background: #fff;
    border-left: 4px solid #bbb;
    font-size: 1em;
    margin: 0.5em 0;
    padding: 0.5em 0.75em;
    transition: background 0.3s ease;
}

/* Observer role */
.role-observer {
    border-color: #4caf50;
}

/* Ride Leader role */
.role-ride-leader {
    border-color: #2196f3;
}

/* Admin role */
.role-administrator {
    border-color: #f44336;
}

/* Add more roles here as needed */

.mrm-grouped-files {
    margin-top: 1em;
}

.mrm-role-heading {
    border-left: 6px solid #ccc;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    margin-top: 2em;
    padding-left: 0.5em;
}

/* Role-specific highlights */
.role-observer .mrm-role-heading,
.role-observer .mrm-file-item {
    border-color: #4caf50;
}

.role-ride-leader .mrm-role-heading,
.role-ride-leader .mrm-file-item {
    border-color: #2196f3;
}

.role-administrator .mrm-role-heading,
.role-administrator .mrm-file-item {
    border-color: #f44336;
}

.mrm-toggle {
    background: #eee;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 1em;
    padding: 0.8em 1em;
    text-align: left;
    transition: background 0.3s;
    width: 100%;
}

.mrm-toggle[aria-expanded="true"] {
    background: #d0e0ff;
}

.mrm-toggle:hover {
    background: #ddd;
}

.mrm-file-date {
    color: #777;
    display: block;
    font-size: 0.9em;
    margin-top: 4px;
}

.dashboard.page .entry-content {
    margin: 0 auto;
}

.dashboard.page .entry-info {
    margin: 20px auto 0;
}

.dashboard.page .mrm-dashboard-sidebar {
    --color__headings: #ededed;
    --color__links: #ffffff;
    --color__links-hover: #dedede;
    --color__primary: #ffffff;
}

.dashboard h1 {
    color: white;
}

.dashboard header {
    background-color: #191919;
}

.dashboard.page .mrm-dashboard-login-required {
    background: #fff;
    border: 1px solid #dcdcde;
    margin: 2rem auto;
    max-width: 640px;
    padding: 1.25rem;
    text-align: center;
}

.dashboard.page .mrm-dashboard-login-required p {
    margin: 0 0 0.75rem;
}

.dashboard.page .mrm-dashboard-login-required p:last-child {
    margin-bottom: 0;
}

.dashboard.page .mrm-dashboard-login-logo {
    margin-bottom: 1rem;
    background-color: black;
    padding: 1rem;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
}

.mrm-dashboard-login-link {
    display: inline-block;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    text-decoration: none;
}

.mrm-dashboard-container {
    display: flex;
    flex-wrap: nowrap;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
    min-height: 60vh;
    width: 100vw !important;
}

.mrm-dashboard-sidebar {
    background: #191919;
    color: #fff !important;
    flex: 0 0 260px;
    height: auto;
    margin: 0;
    padding: 0;
}

.mrm-dashboard-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrm-dashboard-sidebar li {
    list-style: none !important;
    position: relative;
}

.mrm-sidebar-link {
    align-items: center;
    border-left: 4px solid transparent;
    color: #fff !important ;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.mrm-dashboard-sidebar a.active,
.mrm-dashboard-sidebar a:hover {
    background: #222;
    border-left: 4px solid #0073aa;
}

.mrm-sidebar-toggle {
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 8px;
    transition: transform 0.2s;
    user-select: none;
}

.mrm-has-children-yes > .mrm-sidebar-link .mrm-sidebar-toggle {
    display: inline-block;
}

.mrm-has-children-no > .mrm-sidebar-link .mrm-sidebar-toggle {
    display: none;
}

.mrm-sidebar-submenu {
    background: #181818;
    display: none;
}

.mrm-has-children-yes.open > .mrm-sidebar-submenu {
    display: block;
}

.mrm-has-children-yes.open > .mrm-sidebar-link .mrm-sidebar-toggle {
    transform: rotate(90deg);
}

.mrm-dashboard-content {
    background: #fff;
    box-sizing: border-box;
    flex: 1 1 0%;
    min-width: 0;
    padding: 24px;
}

@media (max-width: 800px) {
    .mrm-dashboard-container {
        flex-direction: column;
        margin-left: 0;
        max-width: 100vw;
        width: 100vw;
    }

    .mrm-dashboard-sidebar {
        max-width: 100%;
    }
}

.dashboard.page .entry-content{
    margin: 0 auto;
    max-width: 100%;
}

.dashboard.page .entry-content .mrm-dashboard-container {
    margin: 0;
    max-width: 100%;
}