:root {
    --primary: #e30613;
    --primary-dark: #b3050f;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
    --dark-blue: #1a1a1a;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --ooredoo-color: #82278e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.event-header {
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    margin-top: 80px;
}
.event-header.has-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7))
        center/cover no-repeat;
}

.organizer-bar {
    background-color: var(--ooredoo-color);
    padding: 15px 0;
    text-align: center;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 80px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.organizer-bar img {
    height: 40px;
}

.event-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.meta-item i {
    color: var(--primary);
}

.price-tag {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 15px 0;
    display: inline-block;
}

/* Tabs Navigation */
.tabs-container {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    border-bottom: 2px solid #eee;
    padding: 0;
    flex-wrap: wrap;
}

.tab-item {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.about-event {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.no-description {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Enhanced Location Section */
.enhanced-location {
    background: linear-gradient(
        135deg,
        var(--ooredoo-color) 0%,
        var(--primary) 100%
    );
    color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.enhanced-location::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
    z-index: 1;
}

.enhanced-location .section-title {
    color: white;
    z-index: 2;
    position: relative;
}

.enhanced-location .section-title:after {
    background-color: white;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.location-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.location-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: white;
    min-width: 60px;
    text-align: center;
}

.location-text {
    flex: 1;
}

.location-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.location-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Events & Courses */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.event-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card-header {
    background: linear-gradient(135deg, var(--ooredoo-color), #5a1a63);
    color: white;
    padding: 20px;
    text-align: center;
}

.event-card-body {
    padding: 20px;
}

.event-card-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.event-details-list {
    list-style: none;
    margin: 15px 0;
}

.event-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.event-details-list li i {
    margin-right: 10px;
    color: var(--primary);
}

.btn-register {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-register:hover {
    background-color: var(--primary-dark);
}

/* Programme */
.programme-list {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.programme-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.programme-time {
    font-weight: 700;
    color: var(--ooredoo-color);
    min-width: 80px;
}

/* Points de vente */
.sales-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sales-point-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sales-point-card h3 {
    color: var(--ooredoo-color);
    margin-bottom: 15px;
}

/* Location */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.location-info {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.location-details {
    margin: 20px 0;
}

.location-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.location-detail-item i {
    color: var(--ooredoo-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
}

.map-container {
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

/* Video Section */
.video-section {
    margin: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 2001;
}

.nav-btn {
    color: white;
    font-size: 50px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Sponsors Carousel */
.sponsors-section {
    text-align: center;
    margin: 50px 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 30px 0;
}

.sponsors-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.sponsors-track {
    display: flex;
    animation: scroll 30s linear infinite;
    padding: 0 20px;
}

.sponsor-item {
    flex: 0 0 auto;
    margin: 0 30px;
    transition: transform 0.3s ease;
}

.sponsor-link {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sponsor-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sponsors-carousel:hover .sponsors-track {
    animation-play-state: paused;
}

/* Result Section */
.result-container {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.no-result-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-result-text {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* New Results Styles */
.event-results {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.result-event-title {
    color: var(--ooredoo-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.result-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.result-category-btn {
    padding: 8px 15px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.result-category-btn.active {
    background-color: var(--primary);
    color: white;
}

.result-category-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.results-table th {
    background-color: var(--ooredoo-color);
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.2;
}

.results-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f1f1f1;
}

/* UPDATED: Remove background colors for podium rows and add medal styling */
.podium-row,
.podium-row-1,
.podium-row-2,
.podium-row-3 {
    background-color: inherit !important;
}

/* NEW: Medal styling for table ranks */
.medal-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.medal-rank:hover {
    transform: scale(1.05);
}

.medal-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.medal-1 .medal-icon {
    background: linear-gradient(45deg, #ffd700, #ffec8b);
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.medal-2 .medal-icon {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.medal-3 .medal-icon {
    background: linear-gradient(45deg, #cd7f32, #e9b076);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style for podium rows with subtle highlighting */
.podium-row {
    border-left: 4px solid transparent;
}

.podium-row-1 {
    border-left-color: #ffd700;
    font-weight: 700;
}

.podium-row-2 {
    border-left-color: #c0c0c0;
    font-weight: 600;
}

.podium-row-3 {
    border-left-color: #cd7f32;
    font-weight: 600;
}

/* Ensure the rank column has enough space for medals */
.results-table td:first-child {
    width: 80px;
    text-align: center;
    font-weight: 600;
}

/* Event Selection and Search Styles */
.event-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-selection-btn {
    padding: 12px 20px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
}

.event-selection-btn.active {
    background-color: var(--ooredoo-color);
    color: white;
}

.event-selection-btn:hover {
    background-color: var(--primary);
    color: white;
}

.search-container {
    display: flex;
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
}

.search-button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: var(--primary-dark);
}

.no-results-message {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Footer */
.event-footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-contact-item i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.payment-method {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method img {
    max-width: 100%;
    max-height: 100%;
}

/* Registration Modal */
.registration-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.registration-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-registration {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-registration:hover {
    color: var(--primary);
}

.form-title {
    color: var(--ooredoo-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-section-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1 1 200px;
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--ooredoo-color);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.form-submit:hover {
    background-color: var(--primary-dark);
}

/* Podium Styles - Desktop */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    margin-bottom: 150px !important;
    position: relative;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.athlete-info {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.medal {
    font-size: 32px;
    margin-bottom: 5px;
}

.name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}
.competitor-detail-link {
    color: var(--ooredoo-color);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.competitor-detail-link:hover {
    color: var(--primary);
}
.time {
    font-family: "Courier New", monospace;
    font-size: 1.1rem;
    color: #555;
}

.podium-block {
    position: relative;
    background: #e30613;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.podium-block::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #e6c1b6;
    border-radius: 8px 8px 0 0;
}

.podium-block::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 70px;
    background: linear-gradient(to bottom, #e30613 60%, transparent 100%);
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
    z-index: -1;
}

.position {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.second {
    height: 160px;
}

.first {
    height: 200px;
}

.third {
    height: 140px;
}

.podium-platform {
    position: absolute;
    bottom: -40px;
    width: 100%;
    height: 40px;
    background: #333;
    border-radius: 4px;
    z-index: -2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Podium Titles */
.podium-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 15px 0;
}

.podium-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--ooredoo-color), var(--primary));
    border-radius: 2px;
}

.podium-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
}

/* Specific color variations for each podium type */
.podium-general {
    background: linear-gradient(135deg, var(--ooredoo-color), #5a1a63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podium-homme {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podium-femmes {
    background: linear-gradient(135deg, #c2185b, #f48fb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Filter Tabs for Gender and Categories */
.gender-filter-controls {
    display: flex !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.gender-filter-controls::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ooredoo-color), var(--primary));
    z-index: 1;
}

/* UPDATED: Enhanced Category Filter Controls - Multi-line Professional Layout */
.category-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-filter-controls::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ooredoo-color), var(--primary));
    z-index: 1;
}

.gender-filter-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gender-filter-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--ooredoo-color));
    border-radius: 6px;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.gender-filter-btn:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.gender-filter-btn:hover::before {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
}

.gender-filter-btn.active {
    color: white;
    transform: translateY(0);
}

.gender-filter-btn.active::before {
    width: 100%;
    height: 100%;
}

/* UPDATED: Enhanced Category Filter Buttons */
.category-filter-btn {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.category-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--ooredoo-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
}

/* Icon styles for gender buttons */
.gender-filter-btn[data-gender="M"]::after {
    content: "♂";
    font-size: 1.1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.gender-filter-btn[data-gender="F"]::after {
    content: "♀";
    font-size: 1.1rem;
    color: var(--ooredoo-color);
    transition: color 0.3s ease;
}

.gender-filter-btn.active[data-gender="M"]::after,
.gender-filter-btn.active[data-gender="F"]::after {
    color: white;
}

/* Category button icons */
.category-filter-btn::after {
    content: "🏷️";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-filter-btn:hover::after {
    transform: scale(1.1);
}

.category-filter-btn.active::after {
    transform: scale(1.2);
    filter: brightness(0) invert(1);
}

/* Special styling for "no-cat" button */
.category-filter-btn[data-category-slug="no-cat"]::after {
    content: "❓";
}

/* Category counter badge */
.category-filter-btn::before {
    content: attr(data-category-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.category-filter-btn:hover::before,
.category-filter-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Animation for tab transitions */
@keyframes tabSlide {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gender-table,
.category-table {
    animation: tabSlide 0.3s ease-out;
}

/* Enhanced active state indicators */
.gender-filter-btn.active,
.category-filter-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hover effects for the entire control container */
.gender-filter-controls:hover,
.category-filter-controls:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Optional: Add a subtle glow effect on active containers */
.gender-filter-controls:has(.gender-filter-btn.active),
.category-filter-controls:has(.category-filter-btn.active) {
    box-shadow: 0 4px 20px rgba(var(--primary-rgb, 227, 6, 19), 0.15);
}

/* Fallback for browsers that don't support :has() */
.gender-filter-controls.active-container,
.category-filter-controls.active-container {
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.15);
}

/* Sexe column styling */
.sexe-cell {
    font-weight: 600;
    text-align: center;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    min-width: 24px;
}

.sexe-f {
    background-color: #ffebee;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

.sexe-m {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Apply to all tables in results section */
.results-table td:nth-child(5) {
    text-align: center;
}

.results-table td:nth-child(5) span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
}

/*  */
/* Registration Status Messages */
.registration-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.registration-closed i {
    font-size: 1rem;
}

.registration-closed.before-start {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #1565c0;
}

.registration-closed.before-start i {
    color: #1565c0;
}

.registration-closed.after-end {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.registration-closed.after-end i {
    color: #c62828;
}

/* Hover effects for better interactivity */
.registration-closed:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/*  */

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.info-message {
    color: #17a2b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
    margin-top: 8px;
}

/* =========================== */
/* ENHANCED MOBILE STYLING */
/* =========================== */

/* Base mobile improvements */
@media (max-width: 768px) {
    /* Improved typography for mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Header and organizer bar improvements */
    .organizer-bar {
        padding: 10px 0;
        min-height: 60px;
    }

    .organizer-bar img {
        height: 30px;
    }

    .event-header {
        padding: 80px 0 40px;
        margin-top: 60px;
    }

    .event-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .event-meta {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .meta-item {
        font-size: 0.9rem;
        justify-content: center;
    }

    .price-tag {
        font-size: 1rem;
        padding: 6px 12px;
    }

    /* Enhanced tabs for mobile */
    .tabs-container {
        top: 50px;
    }

    .tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        padding: 12px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Improved tab content spacing */
    .tab-content {
        padding: 25px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    /* Enhanced about section */
    .about-event {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    /* Improved location section */
    .enhanced-location {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .location-card {
        padding: 20px;
        text-align: center;
    }

    .location-icon {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 2rem;
    }

    /* Enhanced events container */
    .events-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .event-card {
        margin-bottom: 0;
    }

    /* Improved programme list */
    .programme-list {
        padding: 20px;
    }

    .programme-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 0;
    }

    .programme-time {
        min-width: auto;
        font-size: 0.9rem;
    }

    /* Enhanced sales points */
    .sales-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sales-point-card {
        padding: 20px;
    }

    /* Improved location container */
    .location-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-container {
        height: 250px;
        order: -1;
    }

    /* Enhanced gallery */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item {
        height: 150px;
    }

    /* Improved sponsors section */
    .sponsors-section {
        margin: 30px 0;
        padding: 20px 0;
    }

    .sponsor-item {
        margin: 0 15px;
    }

    .sponsor-link {
        height: 90px;
        padding: 10px;
    }

    .sponsor-logo {
        height: 60px;
    }

    /* Enhanced results section */
    .result-container {
        padding: 25px 20px;
    }

    .event-selection {
        padding: 15px;
        gap: 10px;
    }

    .event-selection-btn {
        min-width: auto;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .search-container {
        padding: 15px;
        flex-direction: column;
    }

    .search-input {
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .search-button {
        border-radius: 5px;
    }

    /* Enhanced result categories */
    .result-categories {
        gap: 8px;
    }

    .result-category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Improved tables for mobile */
    .results-table-container {
        margin: 0 -10px;
        padding: 0 10px;
    }

    /* UPDATED: Increased min-width to accommodate the new column */
    .results-table {
        font-size: 0.75rem;
        min-width: 900px; /* Increased from 800px to accommodate the new column */
    }

    .results-table th,
    .results-table td {
        padding: 6px 8px;
    }

    .results-table th {
        font-size: 0.7rem;
    }

    /* NEW: Set minimum width for time columns on mobile */
    .results-table th:nth-child(7),
    .results-table td:nth-child(7),
    .results-table th:nth-child(8),
    .results-table td:nth-child(8) {
        min-width: 80px; /* Ensure time columns have enough space */
    }

    /* FIXED: Enhanced podium for mobile with better spacing */
    .podium-container {
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
        margin: 20px 0;
        margin-bottom: 120px !important;
        padding: 0 5px;
    }

    .podium-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        max-width: none;
    }

    .athlete-info {
        min-height: 85px; /* Increased to create more space */
        margin-bottom: 15px; /* Increased margin for better spacing */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .athlete-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px; /* Added gap between name and time */
    }

    .name {
        font-size: 0.9rem;
        min-height: 2.2em;
        line-height: 1.2;
        margin-bottom: 3px; /* Added small margin below name */
    }

    .time {
        font-size: 0.8rem;
        margin-top: 2px; /* Added margin above time */
    }

    .medal {
        font-size: 20px;
        margin-bottom: 8px; /* Increased margin below medal */
    }

    .podium-block {
        width: 70px;
        height: 70px;
        margin-top: 5px; /* Added margin above podium block */
    }

    .podium-block.first {
        height: 90px;
    }

    .podium-block.second {
        height: 75px;
    }

    .podium-block.third {
        height: 65px;
    }

    .position {
        font-size: 1.8rem;
        padding: 0;
    }

    .podium-platform {
        bottom: -25px;
        height: 20px;
        width: 95%;
    }

    .podium-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .podium-title::before {
        width: 40px;
    }

    .podium-title::after {
        width: 80px;
    }

    /* Enhanced filter controls */
    .gender-filter-controls {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .gender-filter-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .category-filter-controls {
        padding: 15px;
        gap: 8px;
    }

    .category-filter-btn {
        min-width: calc(50% - 8px);
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Improved footer */
    .event-footer {
        padding: 30px 0 15px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-contact-item {
        font-size: 0.9rem;
    }

    .payment-methods {
        gap: 10px;
    }

    .payment-method {
        width: 50px;
        height: 35px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Enhanced registration modal */
    .registration-modal {
        padding: 10px;
    }

    .registration-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-section-title {
        font-size: 1.1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-input,
    .form-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .form-submit {
        width: 100%;
        padding: 12px;
    }

    /* Enhanced competitor detail links */
    .competitor-detail-link {
        font-size: 1.1rem;
    }

    /* Improved medal ranks for mobile */
    .medal-rank {
        flex-direction: column;
        gap: 2px;
    }

    .medal-icon {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }

    .results-table td:first-child {
        width: 60px;
    }

    /* Enhanced country flags */
    .country-flag {
        width: 20px;
        height: 15px;
        margin-right: 5px;
    }

    .country-code {
        font-size: 0.7rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .event-title {
        font-size: 1.5rem;
    }

    .tab-item {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .podium-container {
        gap: 5px;
        margin-bottom: 110px !important;
    }

    .podium-block {
        width: 60px;
        height: 60px;
    }

    .podium-block.first {
        height: 80px;
    }

    .podium-block.second {
        height: 65px;
    }

    .podium-block.third {
        height: 55px;
    }

    .position {
        font-size: 1.5rem;
    }

    .name {
        font-size: 0.8rem;
    }

    .time {
        font-size: 0.75rem;
    }

    /* FIXED: Additional spacing adjustments for very small screens */
    .athlete-info {
        min-height: 80px; /* Adjusted for very small screens */
        margin-bottom: 12px;
    }

    .athlete-details {
        gap: 4px;
    }

    .category-filter-btn {
        min-width: 100%;
    }

    .results-table {
        font-size: 0.7rem;
    }

    .results-table th,
    .results-table td {
        padding: 4px 6px;
    }

    .medal-rank {
        font-size: 0.7rem;
    }

    .medal-icon {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }

    .results-table td:first-child {
        width: 50px;
        padding: 4px 2px;
    }

    /* Enhanced modal for very small screens */
    .registration-content {
        margin: 5% auto;
        padding: 15px;
    }

    .close-registration {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 992px) {
    .event-title {
        font-size: 2.2rem;
    }

    .podium-container {
        gap: 15px;
    }

    .podium-block {
        width: 140px;
    }

    .first {
        height: 170px;
    }

    .second {
        height: 140px;
    }

    .third {
        height: 120px;
    }

    .position {
        font-size: 2.8rem;
    }

    .category-filter-btn {
        min-width: calc(33.333% - 12px);
    }
}

/* Ensure podium sections stack properly on mobile */
@media (max-width: 768px) {
    #podium-section {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    #podium-section > div {
        width: 100%;
    }
}

/* Add hover effects for better interactivity */
@media (min-width: 769px) {
    .podium-item:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
}

@media (max-width: 768px) {
    .podium-item:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn-register,
    .result-category-btn,
    .event-selection-btn,
    .gender-filter-btn,
    .category-filter-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent horizontal scroll on body */
    body {
        overflow-x: hidden;
        position: relative;
    }

    /* Enhanced scrolling for tables */
    .results-table-container {
        -webkit-overflow-scrolling: touch;
    }

    /* Improved modal backdrop */
    .registration-modal {
        background-color: rgba(0, 0, 0, 0.8);
    }

    /* Better spacing for mobile */
    .tab-content > * {
        margin-bottom: 20px;
    }

    /* Enhanced text readability */
    .about-event,
    .sales-point-card,
    .location-info {
        line-height: 1.6;
    }
}

/* High-resolution mobile devices */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .organizer-bar img,
    .sponsor-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* =========================== */
/* SUCCESS MODAL STYLES */
/* =========================== */

/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.success-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

.success-header h3 {
    color: #2ecc71;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-header p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 25px;
}

.success-details {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.dossard-number {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e9ecef;
}

.dossard-number .label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.dossard-number .number {
    display: inline-block;
    background: linear-gradient(135deg, #e30613, #ff6b6b);
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
    animation: pulse 2s infinite;
}

.success-info {
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-item i {
    color: #e30613;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 1rem;
    min-width: 20px;
}

.info-item span {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e30613, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Success Modal Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(227, 6, 19, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
    }
}

/* Success Modal Mobile Responsive */
@media (max-width: 768px) {
    .success-content {
        padding: 30px 20px;
        width: 95%;
        margin: 20px;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-header h3 {
        font-size: 1.5rem;
    }

    .dossard-number .number {
        font-size: 2rem;
        padding: 12px 25px;
    }

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

    .success-actions button {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        padding: 10px;
    }

    .info-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .success-content {
        padding: 25px 15px;
    }

    .dossard-number .number {
        font-size: 1.8rem;
        padding: 10px 20px;
    }

    .success-details {
        padding: 20px 15px;
    }
}

/* =========================== */
/* CATEGORY GENDER FILTER STYLES */
/* =========================== */

.category-gender-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.category-gender-controls .gender-filter-btn {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.category-gender-controls .gender-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}


/* Animation for showing the gender filter */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-gender-controls[style*="display: flex"] {
    animation: slideInDown 0.3s ease-out;
}

/* Responsive adjustments for category gender controls */
@media (max-width: 768px) {
    .category-gender-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .category-gender-controls .gender-filter-btn {
        min-width: calc(33.333% - 10px);
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .category-gender-controls .gender-filter-btn {
        min-width: calc(50% - 10px);
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}