/* =========================
   SoccerMod Global Styles v1
   ========================= */

:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-primary: #0b5d1e;
    --color-primary-dark: #063f14;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --color-border: #d7dde3;
    --color-danger: #c62828;

    --font-main: Arial, Helvetica, sans-serif;
    --radius: 8px;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    padding-bottom: 64px;
    background: rgb(16, 26, 38);
}

.test-banner {
    background: var(--color-danger);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.site-header {
    background: rgb(14, 20, 28); /* matches your nav nicely */
    padding: 10px 0;
    border-bottom: 1px solid rgb(30, 42, 56);
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-header h1 {
    margin: 0;
}

.page-shell {
    min-height: calc(100vh - 71px - 64px);
    display: flex;
}

.sub-nav {
    width: 20%;
    min-width: 90px;
    padding: 20px 10px;

    border-right: 1px solid rgb(30, 42, 56);
}

.sub-nav a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 0;
    font-size: 13px;
}

.sub-nav a:hover {
    color: #ffffff;
}

.main-content {
    width: 90%;
    padding: 20px;
    color: #ffffff;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

/* Bottom Navigation */

.bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999;

    width: 100%;
    height: 64px;

    background: rgb(14, 20, 28);
    border-top: 1px solid rgb(30, 42, 56);

    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav a {
    color: #ffffff;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    height: 100%;

    font-size: 12px;
}

.bottom-nav a i {
    font-size: 22px;
    margin-bottom: 4px;
}

.bottom-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bottom-nav a.active {
    color: #4da3ff;
}

.bottom-nav a:active {
    transform: scale(0.95);
}

.bottom-nav {
    backdrop-filter: blur(6px);
}


.nation-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nation-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;

    background: rgb(14, 20, 28);
    color: #ffffff;

    border: 1px solid rgb(30, 42, 56);
    border-radius: 6px;

    padding: 8px;
    cursor: pointer;
    text-align: left;
}

.nation-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.nation-option:hover {
    background: rgb(30, 42, 56);
}

/* Custom nation dropdown fix */

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    width: 100%;
    background: rgb(14, 20, 28);
    color: #ffffff;
    border: 1px solid rgb(30, 42, 56);
    border-radius: 6px;
    padding: 7px 8px;
    cursor: pointer;
}

.custom-dropdown-options {
    display: none;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: rgb(14, 20, 28);
    border: 1px solid rgb(30, 42, 56);
    border-radius: 6px;
    margin-top: 4px;
}

.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-option {
    width: 100%;
    height: 34px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgb(14, 20, 28);
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.custom-dropdown-option img {
    width: 24px !important;
    height: 16px !important;
    max-width: 24px !important;
    max-height: 16px !important;
    object-fit: contain;
    flex: 0 0 24px;
    display: block;
}

.custom-dropdown-option span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Settings dropdowns (native select styling) */

#settings-panel select {
    width: 100%;
    height: 36px;

    background: rgb(14, 20, 28);
    color: #ffffff;

    border: 1px solid rgb(30, 42, 56);
    border-radius: 6px;

    padding: 6px 8px;
    font-size: 13px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Optional arrow styling */
#settings-panel select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* Sidebar text fix */

.sub-nav,
.sub-nav * {
    color: #ffffff;
}

/* Labels specifically */
.sub-nav label {
    font-size: 12px;
    opacity: 0.8;
}

.sub-nav-section {
    margin-bottom: 16px;
}

.sub-nav-section h4 {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Export Textareas */

.export-block {
    margin-bottom: 24px;
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.export-header label {
    color: #ffffff;
    font-weight: bold;
}

.export-header button {
    background: rgb(30, 42, 56);
    color: #ffffff;
    border: 1px solid rgb(45, 60, 78);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
}

.export-header button:hover {
    background: rgb(45, 60, 78);
}

.export-block textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;

    background: rgb(14, 20, 28);
    color: #ffffff;
    border: 1px solid rgb(30, 42, 56);
    border-radius: 6px;

    padding: 10px;
    font-family: monospace;
    font-size: 13px;
}

/* =========================
   Flag size fix
   ========================= */

.custom-dropdown-selected {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.custom-dropdown-selected .selected-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.custom-dropdown-selected .selected-content img,
.custom-dropdown-option img {
    width: 24px !important;
    height: 16px !important;
    max-width: 24px !important;
    max-height: 16px !important;
    object-fit: contain !important;
    flex: 0 0 24px !important;
    display: block !important;
}

.custom-dropdown-selected .selected-content span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-selected i {
    flex: 0 0 16px;
    margin-left: 8px;
    font-size: 12px;
    text-align: right;
}
