/* ---------------------------
   Combined CSS from all files
---------------------------- */

/* FILE 1 + FILE 2 + FILE 4 + FILE 5 + FILE 6 + FILE 7 + FILE 8 share this */
body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* FILE 5: Additional font-weight classes */
.dm-sans-400-normal {
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.dm-sans-600-normal {
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* FILE 1 + FILE 2 + FILE 4 + FILE 5 + FILE 6 + FILE 7 + FILE 8 (merged definitions) */
.flex-row {
    display: flex;
    flex-direction: row; /* Ensures row direction */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.flex-column {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* from FILE 5, ensuring columns also take full width */
}

.flex-center {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.flex-start-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: center;
}

.background-color {
    width: 100%;
    background-color: var(--primary_color);
}

.content-background-color {
    width: 100%;
    background-color: var(--secondary_color);
}

/* FILE 1 had font-size: 26px; Others just had margin: 0; We’ll keep the more specific version. */
h1 {
    margin: 0;
    font-size: 26px;
}

/* FILE 1 + FILE 2 + FILE 4 + FILE 6 + FILE 7 + FILE 8 (merged) */
a {
    text-decoration: none;
    color: black;
}

/* FILE 1 only */
.login_button {
    margin-top: 12px;
    background: var(--button-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    width: 128px;
}

/* FILE 2 only */
.teams-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    overflow-y: scroll;
}

/* FILE 2 + FILE 6 + FILE 7 + FILE 8 (merged) */
.carousel-container {
    overflow: hidden;
    border-bottom: 6px solid var(--button-color);
    width: 100%;
}

.carousel {
    display: flex;
    width: 100%;
}

/* FILE 2 + FILE 6 + FILE 7 + FILE 8 (merged) */
.button {
    flex: 0 0 calc(90vw / 3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px; /* Adjust height as needed */
    color: black;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.button.active {
    background: var(--button-color);
    color: white;
}

/* FILE 2 only */
.player-container {
    width: calc(100vw * 1 / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 156px;
    margin: 8px 0;
}

/* FILE 2 only */
.player-profile-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* FILE 1 + FILE 2 + FILE 4 + FILE 6: they all define .player-name in some form;
   keeping margin: auto from FILE 4 + margin: 8px from FILE 2 can conflict.
   We'll unify: if you prefer auto-centering, keep margin: auto. If you prefer spacing, keep margin: 8px.
   Adjust as needed. Here, we’ll keep margin: 8px from FILE 2 but note it below. */
.player-name {
    margin: 8px; /* from FILE 2, if you want auto-centering use margin: auto from FILE 4 instead */
    word-break: break-all; /* from FILE 2 */
}

/* FILE 2 + FILE 4 + FILE 6 + FILE 7 + FILE 8 (merged) */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    top: -32px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid black;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: black transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* FILE 2 only */
.from-container {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 24px;
    width: calc(100% - 16px);
}

/* FILE 2 only */
.text-input-shell {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
}

/* FILE 2 only */
.text-checkbox-shell {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
}

/* FILE 2 only */
.text-input {
    border: 2px #ebebeb solid;
    background-color: #ffffff;
    color: #313131;
    font-size: 18px;
    padding: 8px;
    width: calc(100% - 20px);
}

/* FILE 2 only */
.text-checkbox {
    border: 2px #ebebeb solid;
    background-color: #ffffff;
    padding: 8px;
    width: 20px;
    margin-left: 12px;
}

/* FILE 2 only */
.save-button {
    background-color: var(--button-color);
    border: 0;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    width: 100%;
    height: 48px;
    margin: 0;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 400;
    font-style: normal;
    border-radius: 4px;
    transition-duration: 0.4s;
    cursor: pointer;
}

/* FILE 2 only */
.save-button.loading:before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    border-top-color: transparent;
    border-right-color: transparent;
    animation: loading 1s linear infinite;
    position: absolute;
    left: calc(50% - 8px);
    transform: translate(-50%, -50%);
    margin-top: 3px;
}

@keyframes loading {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* FILE 2 only */
.save-button.loading #save-button-text {
    visibility: hidden;
}

/* FILE 2 only */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* FILE 2 only */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

/* FILE 2 only */
.image-preview {
    max-width: 95%;
    max-height: 70vh;
    margin: 20px 0;
}

/* FILE 2 + FILE 8 mention .profile-container, we unify. FILE 2 adds width:128px; height:128px */
.profile-container {
    position: relative;
    width: 128px;
    height: 128px;
}

/* FILE 2 only */
.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

/* FILE 2 + FILE 4 both define .overlay but differently:
   - FILE 2: .overlay is absolutely positioned inside .profile-container
   - FILE 4: .overlay is fixed, used as a “screen fade”
   They conflict in usage. We’ll rename the FILE 2 one to .profile-overlay to avoid collision OR
   keep them separate if you truly need both.
   For clarity, here's the FILE 2 version renamed to .profile-image-overlay.
*/

/* Renamed from .overlay in FILE 2 to avoid conflict with FILE 4 */
.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

/* FILE 2 only */
.profile-container.active-img .profile-image-overlay {
    opacity: 1;
}

/* FILE 2 only */
.overlay-icon {
    width: 40px;
    height: 40px;
    z-index: 2;
    margin-left: 6px;
}

/* FILE 2 + FILE 7 + FILE 8 (merged) */
.icon-container {
    position: absolute;
    right: 46px;
    top: 64px;
    width: auto; /* auto fits the SVG */
    height: 32px; /* height of the volgen-icon */
    cursor: pointer;
    display: inline-block;
}

/* FILE 2 + FILE 7 + FILE 8 (merged) for the "follow" icons */
.icon-container[data-followed='true'] #follow-full,
.icon-container[data-followed='false'] #follow-outline {
    opacity: 1;
    transform: scale(1);
}

.volgen-icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 32px;
    width: auto;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

/* FILE 2 + FILE 7 + FILE 8 (merged) */
.settings-icon {
    height: 32px;
    width: auto;
    position: absolute;
    right: 48px;
    top: 64px;
}

/* FILE 2 only */
.logout-button {
    background-color: #ff0000;
    border: 0;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    width: 100%;
    height: 48px;
    margin: 0;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 400;
    font-style: normal;
    border-radius: 4px;
    transition-duration: 0.4s;
    cursor: pointer;
}

/* FILE 2 only */
.search-container {
    display: flex;
    align-items: center;
    background: #d9d9d9;
    padding: 4px;
    border-radius: 4px;
    height: 24px;
    cursor: pointer;
    transition: width 0.3s ease-in-out;
}

/* FILE 2 only */
.search-icon {
    height: 24px;
    width: 24px;
    transition: 0.3s ease-in-out;
}

/* FILE 2 only */
.search-container img {
    height: 24px;
    width: 24px;
}

/* FILE 2 only */
.search-input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: none;
    width: 0;
    opacity: 0;
    transition:
        width 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
    font-size: 16px;
    height: 100%;
}

/* FILE 2 only */
.team-button {
    width: 100%;
    min-height: 96px;
    border-top: 1px solid #d9d9d9;
    justify-content: space-around;
}

/* FILE 2 only */
.team-container {
    width: calc(100% - 124px);
    border-radius: 0 0 4px 4px;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
}

/* FILE 2 only */
.past-request {
    background-color: #d9d9d9;
    border-radius: 4px;
    margin: 0;
    margin-right: 8px;
    display: flex;
    flex-direction: row;
}

/* FILE 2 only */
.past-request-text {
    font-size: 16px;
    padding: 5px 0 5px 8px;
    margin: 0;
    margin-left: 4px;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FILE 2 only */
.remove-button {
    font-size: 16px;
    margin: 0;
    padding: 5px 8px;
}

/* FILE 2 + FILE 6 + FILE 8: merged definitions of select (one mentions background-size, etc.) */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 26px; /* from FILE 2 for a large style, adjust as needed */
    font-weight: 600; /* from FILE 2’s emphasis */
    padding: 0 1em 0 0;
    margin: 0;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path d='M0 0 L10 0 L5 5 z' fill='black'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px 5px;
    color: black;
}

/* FILE 2 only */
option {
    font-size: 16px;
    font-weight: 300;
}

/* FILE 2 only */
.selection-button {
    border: 2px solid var(--button-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 18px;
    font-weight: 300;
    width: calc(50% - 24px);
    height: 32px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selection-button.active {
    background-color: var(--button-color);
    color: white;
}

/* FILE 2 only */
.team-logo {
    width: 64px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

/* FILE 2 + FILE 6 + FILE 7 + FILE 8 (merged) */
.stat-selector-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: black;
    text-decoration: none;
    font-size: 16px;
    width: 112px;
    height: 42px;
    font-weight: 400;
    font-style: normal;
    border-radius: 4px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.stat-selector-button.active {
    background-color: var(--button-color);
    color: var(--text-color);
}

/* FILE 3 only */
.stickyBottomNav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 5;
    background-color: var(--primary_color);
    color: white;
    text-align: center;
    height: 64px;
}

.stickyBottomNav ul {
    width: 100%;
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.stickyBottomNav li {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stickyBottomNav a {
    color: var(--text-color);
    height: calc(100% - 8px);
    text-align: center;
    padding: 4px 16px;
    text-decoration: none;
    font-size: 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stickyBottomNav img {
    height: 32px;
    width: auto;
}

.stickyTopNav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 5;
    background-color: var(--primary_color);
    color: white;
    text-align: center;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stickyTopNav img {
    height: 42px;
    width: auto;
}

/* FILE 4 + FILE 6 mention .player-selector */
.player-selector {
    background-color: #d9d9d9;
    color: black;
    border-radius: 4px;
    height: 46px;

    cursor: pointer;
}

/* FILE 4 + FILE 6 mention .player-group-players */
.player-group-players {
    gap: 8px;
    margin: 0 8px;
    width: calc(100% - 16px);
}

.action-selector {
    background-color: #d9d9d9;
    color: black;
    border-radius: 4px;
    height: 46px;

    cursor: pointer;
}

.action-red {
    background-color: red;
    color: white;

    cursor: not-allowed;
}

/* FILE 4 only */
.attack-button {
    background: var(--button-color);
    border-radius: 4px;
    width: calc(100% - 12px);
    border: 0;
    color: white;
    height: 32px;

    cursor: pointer;
}

.pause-button {
    background: var(--button-color);
    border-radius: 4px;
    width: calc(100% - 12px);
    border: 0;
    color: white;
    height: 32px;

    cursor: pointer;
}

/* FILE 4 only
   (Note: Renamed the FILE 2 .overlay to .profile-image-overlay above to avoid collision.
   This .overlay is a full-screen dim background for modals/popup.)
*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* FILE 4 only */
.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* FILE 4 only */
.small-lds-ring {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.small-lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 48px;
    height: 48px;
    margin: 8px;
    border: 8px solid black;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: black transparent transparent transparent;
}

.small-lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.small-lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.small-lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

/* FILE 4 + FILE 6 mention .event-type, .description, .current-score */
.event-type {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 64px;
    padding: 0 10px;
}

.description {
    margin: 0;
    font-size: 14px;
}

.current-score {
    margin-right: 10px;
    text-align: center; /* from FILE 4 ensures alignment if needed */
}

/* FILE 4 only */
.swipe-content {
    flex-grow: 1;
    transition: transform 0.3s ease;
    height: 100%;
    background-color: lightgray;
    z-index: 1;
}

.delete-btn {
    width: 100px;
    height: 100%;
    background-color: red;
    color: white;
    border: none;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

#match-event-swipe {
    position: relative;
}

.transition-back {
    transition: transform 0.3s ease;
}

/* FILE 5 only */
.box-48 {
    width: 48px;
    height: 48px;
}

.divider {
    border-bottom: 1px solid var(--divider-color);
    width: calc(100% - 2px);
    margin: 0;
}

.scrollable {
    width: 100%;
    height: calc(100%);
    overflow-y: auto;
    position: relative;
}

.group-divider {
    padding: 6px 12px;
    width: calc(100% - 24px);
    background-color: #c8c8c8;
}

.player {
    padding: 0 12px;
    width: calc(100% - 24px);
    height: 64px;
    justify-content: flex-start;
}

.profile_picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.options-bar {
    padding: 0 12px;
    width: calc(100% - 24px);
    height: 48px;
    background-color: #1b1b1b;
    position: absolute;
    bottom: 64px;
    left: 0;
    z-index: 1;
}

.done-button {
    font-size: 18px;
    margin: 0;
    text-decoration: none;
    color: white;
    padding: 6px 14px;
    background: var(--button-color);
    border-radius: 6px;
    cursor: pointer;
}

.add-players-button {
    width: 216px;
    height: 48px;
    color: white;
    background-color: var(--button-color);
    border-radius: 6px;
    cursor: pointer;
}

/* FILE 5 only */
.search-div {
    width: calc(100% - 24px);
    height: 48px;
    padding: 0 12px;
    background-color: #1b1b1b;
}

.search-field {
    width: calc(100% - 48px);
    height: 46px;
    background-color: #1b1b1b;
    border: none;
    color: white;
    font-size: 18px;
}

.search-field:focus {
    outline: none;
}

/* FILE 6 only */
.event {
    height: 46px;
    border-bottom: 1px solid black;
}

/* FILE 6 only */
.tracker-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--button-color);
    border: 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    width: 256px;
    height: 48px;
    font-weight: 400;
    font-style: normal;
    border-radius: 4px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.cross-icon {
    position: relative; /* Needed to position pseudo-elements absolutely */
    display: inline-block; /* So it can size according to width & height */
    width: 24px; /* Icon width  */
    height: 24px; /* Icon height */
    cursor: pointer; /* Show pointer on hover */
}

.cross-icon::before,
.cross-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Start at the middle horizontally */
    width: 2px; /* Thickness of the line */
    height: 100%;
    background-color: white; /* Color of the lines */
    transform-origin: center;
}

/* Diagonal line leaning one way ( \ ) */
.cross-icon::before {
    transform: translateX(-50%) rotate(45deg);
}

/* Diagonal line leaning the other way ( / ) */
.cross-icon::after {
    transform: translateX(-50%) rotate(-45deg);
}
