@import url('variables.css');


/* Button Styling */
.link-button, .button, .bkbutton, .nxtbutton, .savebutton, .logoutbutton, .finishbutton{
    display: flex;
    flex: 1;
    width: 200px; /* Fixed width for consistency */
    min-height: 50px; /* Fixed height */
    max-height: 50px;
    /*background-color: #007bff;*/
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    text-decoration: none; /* Remove underline from links */
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.auto-width {
    width: auto !important;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
}

.disabled-button {
    background-color: #666 !important;
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}


.nxtbutton::after{
    content: " →"; /* Unicode Right Arrow */
    margin-left: 5px;
}

.bkbutton::before{
    content: "← "; /* Unicode Right Arrow */
    margin-right: 5px;
}

.savebutton::before {
    content: "💾"; /* Unicode Floppy Disk */
    margin-right: 5px; /* Add space between icon and text */
}

.addbutton {
    background-color: var(--primary-color);
}

.removebutton {
    background-color: #b61b1b;
}

.logoutbutton::before {
    content: "🏃‍♂️";
    margin-right: 5px;
}

.finishbutton::before {
    content: "🏁";
    margin-right: 5px;
}

.small-button{
    flex: 1;
    width: 60px; /* Fixed width for consistency */
    min-height: 30px; /* Fixed height */
    /* background-color: #007bff; */
    background-color: var(--primary-color);
    color: var(--text-light); /* White text */
    border: none;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    text-decoration: none; /* Remove underline from links */
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.event-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    margin-top: 16px;
}


.event-button {
    flex: 0 0 auto; /* buttons won't grow/shrink automatically */
    width: 140px;   /* fixed width */
    height: 40px;   /* fixed height */
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-button.selected {
    background-color: var(--primary-hover); /* highlight selected */
    color: var((--text-light)); /* ensure text contrast */
}


/* Button Hover Effect */
.button:hover {
    background-color: var(--primary-hover); /* Darker blue */
    transform: scale(1.05); /* Slight scale-up on hover */
}


.link-button:active, .button:active {
    transform: scale(0.98); /* Slight press effect */
}

.removeplayer {
    background-color: #e74c3c;       /* 🔴 red */
    color: white;                    /* ➖ white minus */
    border: none;
    border-radius: 50%;              /* round */
    width: 15px;
    height: 15px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
  }
  
  .removeplayer:hover {
    background-color: #c0392b;       /* darker red on hover */
  }

.accept-button, .decline-button {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px;
    height: 100%;
}

.match-button {
    max-width: 150px; /* Prevents buttons from becoming too wide */
    min-width: 100px; /* Ensures they don’t shrink too much */
    padding: 8px 12px;
    font-size: 14px; /* Slightly smaller text to save space */
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.score-type-button.selected {
    /* background-color: #0056b3; */
    background-color: var(--primary-hover);
    color: var(--text-light);
    font-weight: bold;
}


.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    z-index: 2;
}

.add-friend-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.add-friend-button:hover {
    background-color: #084B80;
}