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

.app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ---------------- 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;
    flex: 0 0 80px;
}

#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 */
    padding-top: 80px;   /* header height */
    padding-bottom: 90px; /* footer height */
}

/* 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 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;  /* side by side */
    min-height: 0;        /* allows child scrolling */
}
/* ---------------- LEFT PANEL ------------------ */

.div-search-result-list
{
    min-width: 240px;
    background: #131d29;
    overflow-y: auto;
    box-sizing: border-box;
}

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

.div-search-result-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;
    box-sizing: border-box; /* include padding and border in width */
    position: relative;
}

.div-search-result-item.active
{
    border-color: #00e0ff;
}

.div-search-result-item h3 
{
    margin: 0;
    font-size: 14px;
}

.div-search-result-item p
{
    margin: 0;
    font-size: 12px;
}

.div-search-result-item img.meta-flag
{
    width: 22px !important;
    height: 15px !important;
    border-radius: 3px;
}

.div-search-result-item img.img-search-result-bigcrest,
.div-search-result-item img.img-search-result-bighead,
.div-search-result-item img.img-search-result-biglogo
{
    width: 50px !important;
    height: 50px !important;
    border-radius: 3px;
}

.div-search-result-item img.player-flag
{
    width: 22px !important;
    height: 15px !important;
    border-radius: 3px;
}


.div-search-result-item:hover
{
    border-color: #00e0ff;
    transition: border 0.2s;
}

.div-search-result-item-topright {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;           /* space between position and rating */
}

.div-search-result-item-topright-position {
    background-color: #00c4df; /* you can adjust */
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 12px;
    color: #000;
}

.div-search-result-item-topright-rating {
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 12px;
    color: #000;
    background-color: #00c4df;
}

.img-search-result-flag {
    opacity: 1 !important;   /* Force full opacity */
    filter: none !important; /* Remove any grayscale/filter effects */
    width: 22px;             /* optional: adjust size */
    height: auto;
    margin-right: 4px;
    vertical-align: middle;
    border-radius: 3px;
    height: 15px;
}

.para-search-result-meta
{
    margin: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;               /* space between flag and text */
}

.para-search-result-meta-text
{
    font-size: 12px;
    opacity: 0.6;  /* semi-transparent text */
}

.span-search-result-meta-text
{
    font-size: 12px;
    opacity: 0.6;  /* semi-transparent text */
}


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

.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 */
.div-content-main {
    display: flex;
    flex: 1;
    flex-direction: row; /* side by side */
    width: 100%;
    min-height: 0; /* fallback */
}

/* LEFT PANEL */
.div-content-left {
    flex-shrink: 0;
    width: 28%;
    background-color: #131d29;
    padding-top: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 0;
    padding-left:20px;
    padding-right:20px;
}

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

.div-content-full {
    flex-shrink: 0;
    width: 100%;
    background-color: #131d29;
    box-sizing: border-box;
    overflow-y: auto;
    padding-bottom: 0;
    padding-left:20px;
    padding-right:20px;
    padding-top:50px;
}



/* Divider between left and right */
.div-content-divider {
    width: 1px;
    background-color: #2f3640;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
}

/* ---------------- 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;
    flex: 0 0 90px;
}

.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-crest {
    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 */
}


/* Wrapper to align button */
.left-generate-wrapper {
    margin-top: 20px;       /* space above button */
    display: flex;
    justify-content: center; /* center horizontally */
    padding-bottom: 20px;   /* extra space at bottom */
}

.left-error-wrapper {
    margin-top: 20px;       /* space above button */
    display: flex;
    justify-content: center; /* center horizontally */
    padding-bottom: 20px;   /* extra space at bottom */
    color: #e83023;
}

/* Button style */
.btn {
    background: #00c4df;        /* match your report-btn style */
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

/* Hover / active effect */
.btn:hover {
    background: #00a9c9; /* slightly darker on hover like copy button */
    transform: scale(1.03);
}

.btn:active {
    transform: scale(0.98);
}

.btn-invalid {
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
    color: white !important;
}

.input-search-text {
    width: 100%;
    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;
    transition: box-shadow 0.3s, border 0.2s;
    font-family: "Segoe UI", sans-serif;
}

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

/* ---------------- BROWSE TABLE ---------------- */

.tbl-browse {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;          /* forces full-width columns */
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
}

/* Header */
.tbl-browse th {
    text-align: left;
    padding: 14px 16px;
    background-color: #111a24;
    border-bottom: 1px solid #2f3640;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Body rows */
.tbl-browse td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

/* Stretch rows full width */
.tbl-browse tr {
    width: 100%;
}

/* Hover effect */
.tbl-browse tbody tr:hover {
    background-color: #1b2634;
    cursor: pointer;
}


/* Links column */
.tbl-browse th:last-child,
.tbl-browse td:last-child {
    text-align: left;
}

.tbl-browse a {
    color: #00e0ff;
    font-weight: 600;
    text-decoration: none;
}

.tbl-browse a:hover {
    text-decoration: underline;
}

.tbl-browse tbody tr:last-child td {
    border-bottom: none;
}

.tbl-browse th,
.tbl-browse td {
    text-align: left;
}

/* Table header styling */
.tbl-browse th {
    background-color: #0f1c2b;
    color: #00e0ff;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #00c4df;
}

/* Animated row hover */
.tbl-browse tbody tr {
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

.tbl-browse tbody tr:hover {
    background-color: #1b2634;
    box-shadow: inset 0 0 0 1px rgba(0,224,255,0.35);
    transform: scale(1.005);
}

.tbl-browse a {
    transition: color 0.2s ease;
}

.tbl-browse tbody tr:hover a {
    color: #ffffff;
}

.img-tableflag {
    height: 30px;
    width: 50px;
    padding: 5px;
}

.img-tablehead {
    height: 64px;
    width: 64px;
    padding: 5px;
}

.img-tablecrest {
    height: 50px;
    width: 50px;
    padding: 5px;
}

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



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

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

    .manager-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;
    }

    .manager-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;
    }

    .manager-list h2 {
        display: none;
    }

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

    .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;
    }
}
