* {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: white;
    color: rgba(9, 55, 8);
    overflow-x: hidden;
}

.card {
    background-color: white; /* Cream color for the card */
    border: 2px solid rgba(9, 55, 8); /* Dark green outline */
}

.card-body {
    color: rgba(9, 55, 8);; /* Dark green text color */
}

.form-control {
    border: 1px solid rgba(9, 55, 8); /* Dark green border for input fields */
}

.form-group label {
    color: rgba(9, 55, 8); /* Dark green color for labels */
    font-weight: bold; /* Make labels bold */
}

.form-control {
    border: 1px solid rgba(9, 55, 8); /* Dark green border for input fields */
    background-color: white; /* Cream background for input fields */
    color: rgba(9, 55, 8); /* Dark green text color for input fields */
}

.form-control:focus {
    border-color: #004d00; /* Darker green border on focus */
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.5); /* Add a shadow effect on focus */
}

.btn-primary {
    background-color: #D22B2B;
    border-color: #D22B2B;
    color: white;
}

.btn-primary:hover {
    background-color: rgba(9, 55, 8);
    border-color: rgba(9, 55, 8);
}

/* 📝 Scoped Form Container */
#add-round-form {
    background-color: #f8f9fa;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    border: 1px solid #092308; /* Dark green border */
    box-sizing: border-box;
}

/* 🏷️ Form Header */
#add-round-form .form-header {
    background-color: #D22B2B; /* Red background */
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
}

/* 🎯 Input & Select Fields */
#add-round-form .form-control, 
#add-round-form .form-select {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

#add-round-form .form-control:focus, 
#add-round-form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
}

/* 🎯 Hole Selection Buttons */
#add-round-form .hole-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#add-round-form .hole-selection .btn {
    border-radius: 20px;
    font-weight: 600;
    width: 110px;
    padding: 8px 0;
    font-size: 1rem;
    text-align: center;
    border: 1px solid rgba(9, 55, 8);
    color: rgba(9, 55, 8);
    background-color: transparent;
    transition: all 0.2s ease;
}

#add-round-form .hole-selection .btn:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

#add-round-form .btn-check:checked + .btn {
    background-color: rgba(9, 55, 8);
    color: white;
}

/* 💾 Submit Button */
#add-round-form .btn-submit {
    background-color: rgba(9, 55, 8);
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

#add-round-form .btn-submit:hover {
    background-color: rgba(9, 55, 8);
}

/* 🏷️ Labels */
#add-round-form label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: rgba(9, 55, 8);
}

/* 📱 Responsive Design */
@media (max-width: 576px) {
    #add-round-form {
        padding: 16px;
    }

    #add-round-form .row {
        flex-direction: column;
    }

    #add-round-form .hole-selection {
        flex-direction: column;
        gap: 8px;
    }

    #add-round-form .hole-selection .btn {
        width: 100%;
    }
}



.main-content {
    padding: 20px;
    margin-top: 20px;
}

/* ✅ Header Styling */
.header-menuitem {
    height: 200px;
    width: 100%;
    background: linear-gradient(rgba(210, 43, 43, 0.25), rgba(210, 43, 43, 0.25)), url('../images/CDNBanner.jpg') top/cover no-repeat;
    position: relative;
}

/* ✅ Navbar Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 6%;
    position: relative;
    z-index: 1000;
}

/* ✅ Logo */
.nav-logo img {
    width: 175px;
    height: auto;
    object-fit: contain;
}

/* ✅ Navigation Links */
.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

.nav-links ul li {
    list-style: none;
    margin: 0 10px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Underline Effect */
.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 3px;
    background: #cf4044;
    display: block;
    margin: auto;
    transition: width 0.3s ease;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* ✅ Hamburger Icon (Mobile Only) */
.menu-icon {
    display: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* Close Icon inside the mobile menu */
.close-icon {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 📱 Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -250px;
        top: 0;
        width: 250px;
        height: 100vh;
        background-color: rgba(9, 55, 8, 0.99);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: right 0.4s ease;
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links ul li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links ul li a {
        padding: 10px 20px;
        width: 100%;
        display: block;
        font-size: 18px;
    }

    .close-icon {
        display: block;
    }
}


/* Table Styles */
.rounds {
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    background-color: #c9c7c7;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease;
}

.rounds thead tr {
    background-color: #cf4044;
    color: #ffffff;
    text-align: left;
}

.rounds th,
.rounds td {
    padding: 12px 15px;
}

.rounds tbody tr {
    border-bottom: 1px solid #dddddd;
}

.rounds tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.rounds tbody tr:last-of-type {
    border-bottom: 2px solid #cf4044;
}

.rounds.visible {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none;
}

.dropdown {
    text-align: center;
}

body .text-center {
    text-align: center;
}

.table-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.group-photo-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.group-photo {
    max-width: 80%;
    width: auto;
    height: auto;
    padding: 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid rgba(9, 55, 8);
}

.schedule-table th, .schedule-table td {
    padding: 10px;
    border: 1px solid rgba(9, 55, 8);
}

.schedule-table th {
    background-color: rgba(9, 55, 8);
    color: white;
    text-align: left;
}

#member-card {
    border: 2px solid rgba(9, 55, 8) !important;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

select {
    color: rgba(9, 55, 8);
}

.page-heading {
    color: rgba(9, 55, 8, 0.9);
    font-size: 2.5em;
    text-align: center;
    margin: 20px 0 40px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-title {
    padding: 30px 20px;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    display: flex;
    flex-direction: row; /* Keep this to align items in a row */
    gap: 2px; /* Space between the label and input */
}

.form-group label {
    font-weight: 500;
    color: #333; /* Adjust the width of the label */
}

.form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #D22B2B;
}
.profile-picture {
        width: 100px; /* Set the desired width */
        height: 100px; /* Set the desired height */
        border-radius: 50%; /* Make it circular */
        object-fit: cover; /* Ensure the image covers the area */
        cursor: pointer; /* Change cursor to pointer */
    }

.border-primary {
    border-color: rgba(9, 55, 8)!important;
}


.hole-selection {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}

.hole-button {
    padding: 10px 25px;
    border: 2px solid rgba(9, 55, 8);
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    background-color: white;
    color: #D22B2B;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

input[type="radio"]:checked + .hole-button {
    background-color: white;
    color: white;
    box-shadow: 0px 4px 7px rgb(5, 50, 4);
    border-radius: 13px;
    transform: scale(1.05);
}

input[type="radio"] {
    display: none;
}

.hole-button:hover {
    background-color: rgb(166, 223, 165);
    color: white;
    opacity: 0.75;
}

.bg-laagared {
    background-color: #D22B2B!important;
}

.laaga-highlight {
    color: #D22B2B !important; /* Red color for lowest differentials */
    font-weight: bold;
}

.text-primary {
    color: rgba(9, 55, 8)!important;
}

.handicap-count {
    font-size: 1rem;
    color: rgb(5, 50, 4); /* Default text color */
    text-align: center;
    margin-bottom: 10px;
}

.handicap-number {
    color: #D22B2B; /* Bold red color */
    font-weight: bold;
}

.member-name {
    font-size: 1.2rem;
    margin-left: 20px; /* Moves it slightly to the right */
}

.handicap-text {
    font-size: 1rem;
    margin-right: 15px; /* Moves it slightly to the left */
}

.handicap-text {
    font-size: 1rem;
    margin-right: 5px;
}

button.btn-light.btn-sm {
    padding: 2px 6px;
    font-size: 1rem;
}

/* Rotate chevron when open */
button[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.chevron-btn {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 5px;
    color: white; /* White chevron */
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Make chevron rotate when expanded */
.chevron-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Optional: Add slight opacity on hover */
.chevron-btn:hover {
    opacity: 0.8;
}
.toggle-icon {
    transition: transform 0.3s ease;
}

.rotate-chevron {
    transform: rotate(180deg);
}

/* Scope login styles to .login-container to avoid affecting other forms */
.login-container {
    min-height: 100vh;
    width: 100%;
}

/* Card specifically for the login form */
.login-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Styling for labels inside login */
.login-label {
    font-weight: bold;
}

/* Input fields for login */
.login-input {
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
}

/* Login button */
.login-btn {
    background-color: #D22B2B;
    border: none;
    color: white;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #D22B2B;
}

/* ✅ Scoped styles only for the handicap table */
.handicap-table-container {
    width: 80%;
    margin: 0 auto;
}

.handicap-table {
    font-size: 1.1rem;  /* Bigger text */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.handicap-table th {
    font-size: 1.3rem;
    padding: 1rem;
}

.handicap-table td {
    padding: 1.5rem; /* Increase row height */
}

/* Styling for handicap values */
.handicap-value {
    font-weight: bold;
    color: #D22B2B;  /* Red for visibility */
    font-size: 1.2rem;
}

/* 📐 Prevent wrapping and space out handicaps */
.hcp-cell {
    display: flex;
    justify-content: center;
    align-items: center;    /* Slightly smaller font for mobile */
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.bg-laagaprimary {
    background-color: #D22B2B!important;
}
.bg-laagasecondary {
    background-color: #2980b9!important;
}
.bg-laagagreen {
    background-color: rgba(9, 55, 8)!important;
}

.prime-number {
    color: #2980b9; /* Bold red color */
    font-weight: bold;
}

/*EVENTS PAGE*/
/* Event List Styling */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Card Layout */
.event-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    padding: 15px;
    transition: transform 0.2s ease-in-out;
}

.event-card:hover {
    transform: scale(1.02);
}

/* Event Date Section */
.event-date {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    border-radius: 8px 0 0 8px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 32px;
    font-weight: bold;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

/* Event Info */
.event-info {
    padding-left: 20px;
    flex: 1;
}

.event-title {
    color: #2980b9;
    font-size: 18px;
    margin: 0;
}

.event-description {
    font-size: 14px;
    color: #444;
}

.event-time {
    font-size: 14px;
    color: #444;
    background: lightgrey;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

/* Color Variations Based on Event Type */
.event-tournament .event-date {
    background: #2980b9; /* Blue for tournaments */
}

.event-round .event-date {
    background: #27ae60; /* Green for rounds */
}

.event-event .event-date {
    background: #f39c12; /* Orange for events */
}

.event-other .event-date {
    background: #7f8c8d; /* Gray for other */
}

.section-divider {
    border-top: 2px solid #ccc;
    margin: 30px 0;
}

/* Custom Hyperlink Styling */
.custom-link {
    color: #2980b9;
}

.custom-link:hover {
    text-decoration: underline;
}

/* Full-Width Add Round Button */
.add-round-section .btn {
    display: block;
    width: 100%;
    font-size: 20px;
    padding: 15px;
    border-radius: 8px;
}

/* Ensure the page always fills the screen */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Wrapper to take full height */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should expand to push the footer down */
.main-content {
    flex: 1;
}

/* Footer Styling */
.footer {
    background-color: rgb(5, 50, 4); /* Dark Green */
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: auto; /* Push footer to the bottom */
}

/* Footer Text */
.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* Footer Links */
.footer-link {
    color: #f0db4f; /* Light Yellow for contrast */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.round-form select,
.round-form input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.round-form select {
    width: 100% !important;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}