body {
    font-family: var(--font-geist-sans), 'Lato', 'Roboto', Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    color: #333;
}

h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Filter Container Styling */
.filter-container {
    width: 100%;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.filters-row {
    display: flex;
    justify-content: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 90%;
}

.filter-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
}

.filter-group:not(.curated-filter) {
    flex: 1;
    min-width: 120px;
}

.filter-group.curated-filter,
.filter-group.date-sort-filter {
    display: flex;
    align-items: center;
}

.filter-group.curated-filter .checkbox-wrapper,
.filter-group.date-sort-filter .checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.75rem;
    height: 36px; /* Ensure both wrappers have the same height */
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding-left: 0.25rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1a1a1a;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

.filter-select:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.filter-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    height: 36px;
    white-space: nowrap;
    box-sizing: border-box;
}

.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px; /* Prevents shrinking */
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.filter-checkbox:checked {
    background-color: #007aff;
    border-color: #007aff;
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox:hover {
    border-color: rgba(0, 0, 0, 0.4);
}

.filter-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.curated-label, .date-sort-label {
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-row {
        width: 100%;
        padding: 1rem;
    }

    .filter-section {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .filter-group:not(.curated-filter) {
        width: 100%;
    }

    .filter-group.curated-filter {
        margin-left: 0;
    }

    .checkbox-wrapper {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Toggle Button Styles */
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007aff; /* Apple's signature blue color */
    color: white;
    padding: 8px 16px; /* Reduced padding for a more compact size */
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.filter-toggle:hover {
    background-color: #005bb5; /* Slightly darker blue on hover */
}

.filter-toggle.open {
    padding: 6px 12px; /* Further reduced padding when the dropdown is open */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0; /* Flat bottom corners when open */
}

/* Dropdown Filter Styles */
.filter-dropdown {
    display: none; /* Hidden by default */
    background-color: #f9f9f9; /* Light background color */
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px; /* Rounded bottom corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 12px;
    width: 100%;
    max-width: 600px; /* Ensures dropdown width matches design */
}

/* Dropdown visible when the toggle is active */
.filter-dropdown.show {
    display: block;
}

/* Filter Group Styles */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group:not(.curated-filter) {
    flex: 1;
    min-width: 120px;
}

.filter-group.curated-filter {
    flex: 0 0 auto;
    width: auto;
}

.filter-checkbox {
    margin-right: 8px;
    flex-shrink: 0;
}

.filter-label {
    flex: 1;
}

.filter-label.curated-label {
    display: inline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Styling for filter labels and inputs */
.filter-label {
    flex: 1; /* Ensures labels take up appropriate space */
    font-size: 14px;
    color: #333; /* Dark text color for readability */
}

/* Smooth Fade Animation (if needed) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 480px) {
    .filter-container {
        align-items: center;
    }

    .filter-dropdown {
        width: 100%;
    }
}

.competition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.competitions-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.competition-card {
    width: 100%;
    background-color: white;
    border-radius: 16px; /* More pronounced rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Softer shadow */
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* More natural hover shadow */
}

/* Competition Header with Larger Logo */
.competition-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.competition-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.competition-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.competition-title {
    font-size: 18px;
    font-weight: bold;
    width: 100%;
}

.competition-logo {
    width: 60px; /* Increase the logo size */
    height: 60px; /* Increase height to match width for a larger display */
    border-radius: 8px; /* Optional rounded corners for a softer look */
    object-fit: contain; /* Ensure the logo scales correctly without distortion */
    flex-shrink: 0; /* Prevent the logo from shrinking on smaller screens */
    margin-right: 15px;
}

.competition-logo--circle {
    border-radius: 50% !important;
    clip-path: circle(50%);
}

.competition-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px; /* Space between location and date */
    font-size: 12px;
    color: #666;
}

.competition-date {
    display: flex;
    align-items: flex-start;
    color: #666;
    font-size: 12px;
}

.competition-date .material-icons {
    font-size: 1.4em;
    margin-right: 4px;
    color: #888;
    margin-top: 1px;
}

.competition-date-text {
    display: inline-block;
    margin-top: 2px; 
}

.flag-icon {
    width: 1.2em;
    height: 1.2em;
    border-radius: 2px; /* Slightly rounded corners */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); /* Very subtle border */
    background-color: transparent; /* Remove the background */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* For pseudo-element positioning */
}

.flag-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.2); /* Slightly enlarge the flag image */
}

.curated {
    background-color: #e6f7e6;
    color: #28a745;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
    align-self: flex-start;
}

.competition-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.competition-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

competition-info {
    flex-grow: 1;
}

.competition-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*
.label {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
}

.label {
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
*/

.label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
    background-color: #f0f0f0; /* Light gray for all labels */
    color: #555; /* Consistent text color */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.label .material-icons {
    font-size: 16px; /* Adjust as needed */
}

.label-Offline {
    background-color: #fff3e0;
    color: #ff9800;
}

.label-Online {
    background-color: #e8f5e9;
    color: #4caf50;
}

.label-language {
    background-color: #f3e5f5;
    color: #9c27b0;
}

/* .label-grades {
    background-color: #fff9c4;
    color: #fbc02d;
}
*/
.label-grades {
    background-color: #e3f2fd; /* Light blue background */
    color: #1976d2; /* Soft blue text */
}

.register-container {
    margin-top: auto;
    padding-top: 10px;
}

.card-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.details-grid {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

@media (min-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-nav {
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 12px;
}

.detail-nav-bottom {
    margin-top: 12px;
    margin-bottom: 0;
}

/*.register-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    display: inline-block;
}
    
.register-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #0056b3;
}

*/

.register-btn {
    background: linear-gradient(to bottom right, #007bff, #0056b3); /* Subtle gradient */
    color: white;
    border: none;
    border-radius: 22px; /* Rounded button shape */
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.register-btn:hover {
    background: linear-gradient(to bottom right, #0056b3, #003f7f); /* Darker gradient on hover */
    transform: scale(1.02); /* Slightly enlarge on hover */
}

.details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 22px;
    border: 1px solid rgba(0, 123, 255, 0.35);
    color: #0056b3;
    background: #f7fbff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.practice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 22px;
    border: 1px solid #2B3784;
    color: #ffffff;
    background: #2B3784;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.practice-link:hover {
    background: #1f2861;
    transform: scale(1.02);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #007aff;
    padding: 5px 0;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #0056b3;
    border-bottom-color: currentColor;
}

.competition-detail-page .resource-link {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.details-link:hover {
    background: #e9f2ff;
    border-color: rgba(0, 123, 255, 0.6);
    transform: scale(1.02);
}

.competition-detail-page .detail-actions {
    margin-top: 24px;
    padding-top: 0;
}

.competition-detail-page .seq-element {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.competition-detail-page .seq-element.seq-animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}


.show-more {
    background: none;
    border: none;
    color: #666; /* Black color */
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
}

.show-more:hover {
    text-decoration: underline;
}

.show-more-icon {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.show-more-text {
    font-weight: 500; /* Make the text slightly bolder */
    font-size: 13px; /* Reduced from 13px to 12px (approximately 1pt smaller) */
}

/* Rotate the icon when the additional info is shown */
.show-more.active .show-more-icon {
    transform: rotate(180deg);
}

.additional-info {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.additional-info h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #333;
}

/* Smaller gap within fields for line breaks */
.small-gap {
    display: block;
    height: 7px; /* Adjust this value to control the gap size within a field */
}

.additional-info p {
    margin: 10px 0; /* Space between different fields */
    overflow-wrap: break-word; /* Allow long URLs to break across lines */
}

.additional-info br + br {
    margin: 0; /* Reset margin between two consecutive <br> tags */
}

/* Style for links in additional info to handle long URLs */
.additional-info a {
    word-break: break-all; /* More aggressive breaking for URLs */
    display: inline-block;
    max-width: 100%;
}

.prerequisites-list {
    padding-left: 20px;
    margin: 5px 0;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    .competition-list {
        flex-direction: column;
        align-items: center;
    }

    .competition-card {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 479px) {
    .competitions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .competition-card {
        width: 100%;
    }
    
    .competition-title {
        font-size: 16px;
    }
    
    .competition-details {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .competition-card {
        width: 95%;
    }

    .filters {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .competition-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .competition-logo {
        align-self: flex-start;
        margin-bottom: 10px;
    }

    .competition-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .curated {
        margin-bottom: 5px;
    }
    
    /* Adjust URL display on mobile */
    .additional-info a {
        font-size: 13px; /* Slightly smaller font for URLs on mobile */
    }
}

.intro-section {
    font-family: var(--font-geist-sans), 'Lato', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto 40px;
}

.intro-section h2 {
    color: #166534;  /* green-700 */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-section p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* ============================================
   REGISTRATION MODAL STYLES
   ============================================
   
   This section contains all styles for the registration modal:
   
   HEADINGS:
   - .modal-section-title (line ~811): Main section headings (e.g., "Registration Link")
     Font: 16px, weight: 600, color: #333
   
   - .modal-subsection-heading (line ~854): Subsection headings (e.g., "Online Competition")
     Font: 14px, weight: 600, color: #444
     Spacing: margin-top: 12px, margin-bottom: 8px (adjust here for line spacing)
   
   FIELDS/LABELS:
   - .info-line (line ~850): Container for structured fields (deadline, infopack, etc.)
     Flex layout with icon, label, and value
   
   - .info-icon (line ~870): Icon/emoji before field labels
     Font: 1.0em, min-width: 16px
   
   - .info-line strong: Field labels (e.g., "Deadline:", "Info Pack:")
     Font-weight: 600, color: #333, min-width: 80px for alignment
   
   CONTENT:
   - .modal-section-content: Main content container
     Font: 14px, color: #666, line-height: 1.6
   
   - .modal-subsection-content: Content within subsections
     Same styling as modal-section-content
   
   - .modal-subsection-list: Ordered/unordered lists within subsections
     Margin: 0px 0, padding-left: 20px
   
   ============================================ */

/* Registration Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-logo.competition-logo--circle {
    border-radius: 50% !important;
    clip-path: circle(50%);
}

.modal-title {
    flex: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Subsection heading styling - for headings within sections (e.g., "Online Competition") */
.modal-subsection-heading {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-top: 12px;        /* LINE SPACING: Space above heading - adjust here */
    margin-bottom: 8px;      /* LINE SPACING: Space below heading - adjust here */
    /* border-bottom removed - no line below heading */
}

.modal-subsection-heading:first-child {
    margin-top: 0;
}

.modal-section-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;        /* LINE SPACING: Space between lines of text - adjust here */
}

/* Subsection content styling - for content blocks within subsections */
.modal-subsection-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;        /* LINE SPACING: Space between lines of text - adjust here */
    margin-bottom: 0px;      /* LINE SPACING: Space below content block - adjust here */
}

/* Subsection list styling - for ordered/unordered lists within subsections */
.modal-subsection-list {
    margin: 0px 0;
    padding-left: 20px;
}

.modal-subsection-list li {
    margin-bottom: 0px;
    line-height: 1.6;
}

/* Info line styling - for structured fields (deadline, infopack, etc.) */
.modal-section-content .info-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0px;      /* LINE SPACING: Space between field rows - adjust here */
    line-height: 1.6;         /* LINE SPACING: Space between lines within a field - adjust here */
}

.modal-section-content .info-line strong {
    color: #333;
    font-weight: 500;
    /*min-width: 120px; /* Ensures labels align nicely */ 
}

.modal-section-content .info-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.modal-section-content a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    padding-right: 20px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.modal-section-content a::after {
    content: 'open_in_new';
    font-family: 'Material Icons';
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.modal-section-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.modal-section-content a:hover::after {
    opacity: 1;
}

.registration-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.registration-status.open {
    background-color: #ecfdf5;
    color: #059669;
}

.registration-status.closed {
    background-color: #fef2f2;
    color: #dc2626;
}

.registration-status.coming-soon {
    background-color: #fffbeb;
    color: #d97706;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(to bottom right, #007bff, #0056b3);
    color: white;
}

.modal-btn-primary:hover {
    background: linear-gradient(to bottom right, #0056b3, #003f7f);
    transform: scale(1.02);
}

.modal-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-btn-secondary:hover {
    background-color: #e5e7eb;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-logo {
        width: 48px;
        height: 48px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

/* Section headers for date grouping */
.competition-section-header {
    width: 100%;
    max-width: 90%;
    margin: 30px auto 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.competition-section-header:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 0px;
    background-color: #4dabf7;
    border-radius: 3px;
}

.competition-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.competition-count {
    font-size: 0.875rem;
    color: #666;
    font-weight: normal;
    margin-left: 8px;
    background-color: #f0f8ff;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Section icons */
.section-icon {
    margin-right: 8px;
    font-size: 1.4rem;
}

/* Custom border colors for each section type */
.competition-section-header[data-section="in-the-next-30-days"]:before {
    background-color: #e64a19;
}

.competition-section-header[data-section="in-1-2-months"]:before {
    background-color: #039be5;
}

.competition-section-header[data-section="in-3-6-months"]:before {
    background-color: #00897b;
}

.competition-section-header[data-section="later-this-year"]:before {
    background-color: #7b1fa2;
}

.competition-section-header[data-section="next-year"]:before {
    background-color: #1565c0;
}

.competition-section-header[data-section="past-competitions"]:before {
    background-color: #757575;
}

.competition-section-header[data-section="other-competitions"]:before {
    background-color: #f57c00;
}

/* Date sort filter */
.filter-group.date-sort-filter {
    margin-left: 1rem;
}

.filter-group.date-sort-filter .checkbox-wrapper {
    display: flex;
    align-items: center;
    background-color: #f0f8ff; /* Light blue background */
    border-color: #4dabf7;
}

.calendar-filter {
    background-color: #f0f7ff;
    border-color: #74b9ff;
}

.calendar-icon {
    font-size: 18px;
    margin-right: 6px;
    color: #1c7ed6;
    display: flex;
    align-items: center;
    line-height: 1;
}

.date-sort-label {
    font-weight: 500;
    color: #1c7ed6; /* Blue color for emphasis */
    display: flex;
    align-items: center;
    line-height: 1;
}

/* No results placeholder */
.no-results {
    width: 100%;
    max-width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    color: #666;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-group.date-sort-filter {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .filter-group.date-sort-filter .checkbox-wrapper,
    .filter-group.curated-filter .checkbox-wrapper {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Specific section header styling removed - replaced with data attributes */

/* New shadcn-style toggle filters */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 90%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.filter-toggle-wrapper {
    display: inline-flex;
    align-items: center;
}

.filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: #f4f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    user-select: none;
    height: 36px;
}

.filter-toggle-label:hover {
    background-color: #e9ecef;
}

.calendar-toggle .filter-toggle-label {
    background-color: #eef5ff;
    border-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.calendar-toggle .filter-toggle-label:hover {
    background-color: #e0ebff;
}

/* Add animation for the calendar toggle */
.calendar-toggle .filter-toggle-checkbox:checked + .calendar-icon-wrapper .material-icons {
    animation: pulse 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.filter-toggle-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-toggle-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.filter-toggle-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.calendar-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-icon-wrapper .material-icons {
    font-size: 1.125rem;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .filters-row {
        padding: 1rem;
    }
    
    .filter-toggle-wrapper {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .filter-toggle-label {
        width: 100%;
        justify-content: center;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

/* Remove old styles */
