/* ======================== Shortcode Styles ======================== */

/* General Styles */
.rrm-plugin-container .rrm-tab-container {
    max-width: 500px; /* Further reduced width from 800px to 700px */
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Event Name */
.rrm-plugin-container .rrm-event-name {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Toggle Bar */
.rrm-plugin-container .rrm-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0073aa;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
}

.rrm-plugin-container .rrm-toggle-text {
    font-size: 18px;
    font-weight: bold;
}

.rrm-plugin-container .rrm-toggle-button {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 16px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.rrm-plugin-container .rrm-toggle-button:hover,
.rrm-plugin-container .rrm-toggle-button:focus {
    background-color: #005f8d !important; /* Retained !important for critical overrides */
    transform: rotate(90deg) !important;      /* Retained !important for critical overrides */
}

.rrm-plugin-container .rrm-toggle-icon {
    font-size: 24px;
    line-height: 1;
}

/* Hidden Content */
.rrm-plugin-container .rrm-tab-content {
    display: none; /* Hidden by default */
    margin-top: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rrm-plugin-container .rrm-tab-content[aria-hidden="false"] {
    display: block;
}

/* Date Tabs */
.rrm-plugin-container .rrm-dates {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.rrm-plugin-container .rrm-tab {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    color: #0073aa;
}

.rrm-plugin-container .rrm-tab:hover,
.rrm-plugin-container .rrm-tab:focus {
    background-color: #0073aa !important; /* Retained !important for critical overrides */
    color: #fff !important;                /* Retained !important for critical overrides */
}

.rrm-plugin-container .rrm-tab.active {
    background-color: #005f8d;
    color: #fff;
}

/* Year Content */
.rrm-plugin-container .rrm-year-content {
    display: none;
}

.rrm-plugin-container .rrm-year-content.active {
    display: block;
}

/* Class Section */
.rrm-plugin-container .rrm-class-section {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Class Toggle Button */
.rrm-plugin-container .rrm-class-toggle {
    background: #fff;
    border: none;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
}

.rrm-plugin-container .rrm-class-toggle:hover,
.rrm-plugin-container .rrm-class-toggle:focus {
    background-color: #f0f0f0 !important; /* Retained !important for critical overrides */
}

.rrm-plugin-container .rrm-class-toggle[aria-expanded="true"] {
    background-color: #0073aa;
    color: black;
}

.rrm-plugin-container .arrow-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.rrm-plugin-container .rotated {
    transform: rotate(45deg);
}

/* Class Content */
.rrm-plugin-container .rrm-class-content {
    display: none;
    padding: 15px 20px;
    background: #fff;
}

.rrm-plugin-container .rrm-class-content[aria-hidden="false"] {
    display: block;
}

/* Regatta Table */
.rrm-plugin-container .rrm-regatta-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
}

.rrm-plugin-container .rrm-regatta-table th,
.rrm-plugin-container .rrm-regatta-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.rrm-plugin-container .rrm-regatta-table th {
    background: #f4f4f4;
    font-weight: bold;
}

.rrm-plugin-container .rrm-regatta-table tr:hover,
.rrm-plugin-container .rrm-regatta-table tr:focus-within {
    background: #f9f9f9;
}

/* Link Actions */
/* Removed hover and focus styles for links as per request */
.rrm-plugin-container  {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
    margin-right: 10px;
    transition: color 0.3s ease;
}

/* Previously there were hover styles like below, now removed:
.rrm-plugin-container .rrm-link-action:hover,
.rrm-plugin-container .rrm-link-action:focus {
    color: #005f8d !important;
}

.rrm-plugin-container .rrm-pdf-link:hover,
.rrm-plugin-container .rrm-pdf-link:focus {
    color: #d94334 !important;
}
*/

/* If you want to keep the hover effects without using !important, you can optionally include:
.rrm-plugin-container .rrm-link-action:hover,
.rrm-plugin-container .rrm-link-action:focus {
    color: #005f8d;
}

.rrm-plugin-container .rrm-pdf-link:hover,
.rrm-plugin-container .rrm-pdf-link:focus {
    color: #d94334;
}
But as per your request, these have been removed.
*/

/* Toggle Bar (Ribbon) */
.rrm-plugin-container .rrm-toggle-bar {
    display: flex;
    justify-content: space-between; /* Push text to the left and icon to the right */
    align-items: center;
    background: #0073aa; /* Background color for the ribbon */
    color: #fff;
    padding: 15px 20px; /* Adjust padding */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rrm-plugin-container .rrm-toggle-text {
    font-size: 18px;
    font-weight: bold;
    flex-grow: 1; /* Allow the text to take available space */
    margin-right: 10px; /* Add space between text and icon */
    text-align: left; /* Ensure the text aligns to the left */
}

.rrm-plugin-container .rrm-toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.rrm-plugin-container .rrm-toggle-bar:hover .rrm-toggle-button {
    transform: scale(1.1); /* Slightly enlarge the icon on hover */
}

/* Toggle Bar (Ribbon) */
.rrm-plugin-container .rrm-toggle-bar {
    display: flex;
    justify-content: space-between; /* Align text to the left and icon to the right */
    align-items: center;
    background: #0073aa; /* Ribbon background color */
    color: #fff;
    padding: 15px 25px; /* Add more padding for a spacious look */
    border-radius: 8px; /* Slightly round the corners for better aesthetics */
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rrm-plugin-container .rrm-toggle-text {
    font-size: 18px; /* Adjust font size for better readability */
    font-weight: bold;
    margin-right: auto; /* Push the icon to the right */
    text-align: left; /* Ensure text is left-aligned */
}

.rrm-plugin-container .rrm-toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Increase button size for better spacing */
    height: 45px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%; /* Ensure the button remains circular */
    font-size: 22px; /* Slightly larger font size for the icon */
    color: #fff;
    transition: transform 0.3s ease;
}

.rrm-plugin-container .rrm-toggle-bar:hover .rrm-toggle-button {
    transform: scale(1.1); /* Slightly enlarge the button on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Toggle Bar (Ribbon) */
    .rrm-plugin-container .rrm-toggle-bar {
        padding: 14px 22px; /* Slightly increase padding for better spacing */
        flex-direction: row; /* Ensure text and icon align horizontally */
        align-items: center; /* Center-align text and icon */
        gap: 10px; /* Add spacing between text and button */
    }

    /* Toggle Text */
    .rrm-plugin-container .rrm-toggle-text {
        font-size: 16px; /* Maintain readability on smaller screens */
        flex-grow: 1; /* Ensure text takes up available space */
        text-align: left;
    }

    /* Toggle Button (Icon) */
    .rrm-plugin-container .rrm-toggle-button {
        width: 40px; /* Adjust button size */
        height: 40px;
        font-size: 18px; /* Icon size */
        margin-left: auto; /* Push the button to the far right */
    }

    /* Tabs Container */
    .rrm-plugin-container .rrm-dates {
        flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
        justify-content: center; /* Center-align tabs */
        gap: 10px; /* Add space between tabs */
    }

    /* Tabs */
    .rrm-plugin-container .rrm-tab {
        padding: 10px 18px; /* Adjust padding for smaller tabs */
        font-size: 15px; /* Slightly smaller font size */
    }

    /* Table Adjustments */
    .rrm-plugin-container .rrm-regatta-table th,
    .rrm-plugin-container .rrm-regatta-table td {
        padding: 8px; /* Adjust padding for compact tables */
        font-size: 14px; /* Reduce font size for smaller screens */
    }
}

@media (max-width: 480px) {
    /* Toggle Bar (Ribbon) */
    .rrm-plugin-container .rrm-toggle-bar {
        padding: 12px 18px; /* Compact padding for extra small screens */
        flex-direction: row; /* Keep text and button horizontal */
        align-items: center; /* Center-align text and button */
        gap: 8px; /* Space between text and icon */
    }

    /* Toggle Text */
    .rrm-plugin-container .rrm-toggle-text {
        font-size: 14px; /* Smaller font size */
        flex-grow: 1; /* Ensure text stretches to fill available space */
        text-align: left;
    }

    /* Toggle Button (Icon) */
    .rrm-plugin-container .rrm-toggle-button {
        width: 35px; /* Further reduce button size */
        height: 35px;
        font-size: 15px;
        margin-left: auto; /* Push the button to the far right */
    }

    /* Tabs Container */
    .rrm-plugin-container .rrm-dates {
        flex-wrap: wrap; /* Allow wrapping of tabs */
        justify-content: center; /* Center-align tabs */
        gap: 8px; /* Compact spacing between tabs */
    }

    /* Tabs */
    .rrm-plugin-container .rrm-tab {
        padding: 8px 15px; /* Adjust padding for compact layout */
        font-size: 14px; /* Reduce font size */
    }

    /* Table Adjustments */
    .rrm-plugin-container .rrm-regatta-table th,
    .rrm-plugin-container .rrm-regatta-table td {
        padding: 6px; /* Compact padding for smaller devices */
        font-size: 12px; /* Reduce font size further */
    }

    /* Links */
    .rrm-plugin-container .rrm-link-action {
        font-size: 12px; /* Compact link font size */
    }
}

