body {
    margin: 0;
    background: #0f1723;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
}

.app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;   /* header height */
    padding-bottom: 90px; /* footer height */
}


/* ---------------- HEADER ------------------ */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111a24;
    padding: 20px 0px;
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

#img-website-header {
    width: 60%;      /* controls how small the image is */
    max-width: 500px; /* prevents it from getting too big on large screens */
    height: auto;    /* keeps proportions */
    display: block;
    margin: 0 auto;  /* centers the image */
}

/* ---------------- CONTENT LAYOUT ------------------ */

.content {
    flex: 1 1 auto;              /* Fill remaining space */
    display: flex;         /* Keep left/right panels side by side */
    flex-direction: row;   /* horizontal layout */
    background: #1b1f27;
    color: #ffffff;
    box-sizing: border-box;
    min-height: 0;         /* allow children to shrink properly */
}

/* Main page title */
.content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

/* Section title */
.content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    margin-top: 10px;
}

/* Thin horizontal divider under the section title */
.section-divider {
    width: 100%;
    border-bottom: 1px solid #2f3640;  /* Subtle grey line */
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Make the parent container fill div-content-main */
#div-content-main {
    display: flex;
    flex-direction: column;
}
/* ---------------- LEFT PANEL ------------------ */

.player-list {
    width: 28%;
    min-width: 240px;
    background: #131d29;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.player-list h2 {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: #1b2634;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border 0.2s;
}

.player-item.active {
    border-color: #00e0ff;
}

.player-item img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

.player-item h3 {
    margin: 0;
    font-size: 14px;
}

.player-item p {
    margin: 0;
    opacity: 0.6;
    font-size: 12px;
}

/* ---------------- RIGHT PANEL ------------------ */

.player-details {
    flex: 1;
    padding: 30px;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ovr {
    background: #f9c422;
    color: #000;
    font-size: 32px;
    font-weight: bold;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta .name {
    font-size: 24px;
    font-weight: bold;
}

.meta .sub {
    opacity: 0.7;
    font-size: 14px;
}

.report-btn {
    margin-left: auto;
    background: #00d97e;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

/* ---------------- STATS SECTION ------------------ */

.detail-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stats ul,
.financial ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.stats li,
.financial li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats h3,
.financial h3 {
    font-size: 18px;
    margin: 0;
}
/* ---------------- TEAMS STYLES ------------------ */
/* Make teams container fill the parent */
.teams-container {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0; /* fallback */
}

/* LEFT PANEL */
.teams-left {
    width: 28%; /* fixed width for left panel */
    min-width: 240px;
    background-color: #131d29;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* RIGHT PANEL */
.teams-right {
    flex: 1; /* take remaining width */
    background-color: #1b1f27;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}


/* Divider between left and right */
.teams-divider {
    width: 1px;
    background-color: #2f3640;
    height: 100%;
}
/* ---------------- FOOTER/NAV SECTION ------------------ */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111a24;
    padding: 15px 20px; /* padding adds clear space on left and right */
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

.div-footer-navigation {
    display: flex;
    justify-content: space-between; /* spreads all items evenly */
    align-items: center;
    width: 100%;
    gap: 25px; /* spacing between items */
    flex-wrap: nowrap; /* keeps all icons on one line */
}

.faicon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    flex: 1; /* each icon gets equal width */
}

.faicon i {
    font-size: 26px;
}

.faicon p {
    margin: 0;
    font-size: 13px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:visited {
    color: #fff;
}

.footer-nav a:hover {
    color: #00e0ff; /* optional: bright hover color */
}


/* ---------------------------------------------------
     FORM ITEMS
---------------------------------------------------- */
/* Flash animation for copied effect */
@keyframes flash {
    0%   { background-color: #11161e; }
    50%  { background-color: #00c4df;; }
    100% { background-color: #11161e; }
}

@keyframes flash-button {
    0%   { background-color: #00c4df; } /* default light blue */
    50%  { background-color: #ffffff; } /* white when copied */
    100% { background-color: #00c4df; }
}

.copy-box-wrapper {
    display: flex;
    align-items: center;   /* vertically center the button */
    gap: 10px;
    margin-top: 0;
}

.copy-textbox {
    width: 100%;
    height: 180px;
    background: #111722;
    color: #ffffff;
    border: 1px solid #2f3640;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    font-family: "Segoe UI", sans-serif;
}

.copy-btn:hover {
    background: #00a9c9;
}

.copy-btn.copied {
    transform: scale(1.05);
}

.copy-textbox-single {
    flex: 1;               /* expand to take available width */
    padding: 12px 14px;
    background: #11161e;
    border: 1px solid #2f3640;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    height: 42px;          /* same height as button */
    transition: box-shadow 0.3s;
}

.copy-btn {
    background: #00c4df;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;       /* horizontal padding only */
    height: 42px;          /* same height as input */
    transition: background 0.2s, transform 0.2s;
}

.copy-textbox-single.copied {
    animation: flash 0.5s ease-in-out;
    box-shadow: 0 0 8px #00c4df;
}

.copy-textbox-single,
.copy-btn {
    border-radius: 6px;
    box-sizing: border-box;
}

/* Label styling (optional, matches the section titles) */
.dropdown-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

/* Styled select dropdown */
.styled-dropdown {
    width: 100%;
    padding: 10px 14px;
    background-color: #11161e; /* matches input fields */
    border: 1px solid #2f3640;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none; /* removes default arrow on some browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.3s, border 0.2s;
}

/* Hover/focus effect */
.styled-dropdown:hover,
.styled-dropdown:focus {
    border-color: #00c4df;
    box-shadow: 0 0 6px #00c4df;
}

/* Optional: add a custom arrow using pseudo-element */
.styled-dropdown {
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    font-family: "Segoe UI", sans-serif;
}

.dropdown-toggle {
    width: 100%;
    padding: 8px 12px;
    background-color: #11161e;
    border: 1px solid #2f3640;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 8px;
    box-sizing: border-box;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    border-color: #00c4df;
    box-shadow: 0 0 6px #00c4df;
}

.dropdown-flag {
    width: 30px; /* fits nicely inside toggle */
    height: auto; /* maintain aspect ratio */
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #11161e;
    border: 1px solid #2f3640;
    border-radius: 6px;
    margin-top: 4px;
    display: none;
    list-style: none;
    padding: 0;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-menu li:hover {
    background-color: #00c4df;
    color: #000;
}

.dropdown-menu img.dropdown-flag {
    width: 80px; /* scaled proportionally inside menu */
    height: auto;
    border-radius: 8px;  /* rounds the corners */
}

/* Dropdown toggle image */
.dropdown-toggle img.dropdown-flag {
    width: 70px;       /* fits nicely inside toggle */
    height: auto;
    border-radius: 8px;  /* same rounded corners for consistency */
}

/* ---------------------------------------------------
     RESPONSIVE DESIGN
---------------------------------------------------- */

/* Tablet Layout */
@media (max-width: 1024px) {

    .player-list {
        width: 35%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .ovr {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .meta .name {
        font-size: 20px;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {

    .content {
        flex-direction: column;
    }

    .player-list {
        width: 100%;
        min-width: unset;
        max-height: 240px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        overflow-x: auto;
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

    .player-list h2 {
        display: none;
    }

    .player-item {
        min-width: 180px;
        flex-direction: column;
        align-items: flex-start;
    }

    .player-item img {
        width: 60px;
        height: 60px;
    }

    .player-details {
        padding: 20px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .meta .name {
        font-size: 18px;
    }

    .ovr {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .report-btn {
        padding: 10px 12px;
    }
}

@media (max-width: 1024px) {
    #img-website-header {
        width: 70%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    #img-website-header {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #img-website-header {
        width: 90%;
        max-width: 250px;
    }
}

/* MOBILE: stack vertically on small screens */
@media (max-width: 480px) {
    .copy-box-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .copy-btn {
        width: 100%;
        height: 42px;   /* maintain consistent height */
    }
}

/* Mobile Footer Scroll */
@media (max-width: 768px) {

    .footer-nav {
        padding: 10px 0;
        overflow-x: auto;      /* allows horizontal scroll */
        white-space: nowrap;   /* prevents wrapping */
    }

    .div-footer-navigation {
        display: inline-flex;  /* allows natural horizontal scrolling */
        justify-content: flex-start;
        gap: 25px;             /* space between items */
        padding: 0 15px;       /* left/right padding */
        width: auto;           /* important: prevents forced stretching */
    }

    .faicon {
        flex: 0 0 auto;        /* keeps icons their natural width */
        text-align: center;
    }
}
