@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Anuphan', sans-serif;
    background: #f8fafc;
    margin: 0;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-wrapper {
    flex: 1;
}

.header {
    background: #0f172a;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.header nav a:hover {
    color: white;
}

.container { width: 1200px; margin: 20px auto; padding: 0 20px; }

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

.page-header h2 {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Anuphan', sans-serif;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
    color: white;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

table th:first-child {
    border-top-left-radius: 12px;
}

table th:last-child {
    border-top-right-radius: 12px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
    border-bottom: none;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

table tr:last-child td {
    border-bottom: none;
}

/* Remove bottom border for the last row */

th,
td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

tr:hover {
    background: #f8fafc;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.sub-nav {
    background: white;
    padding: 15px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
}

.sub-nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sub-nav a:hover,
.sub-nav a.active {
    background: #f1f5f9;
    color: #38bdf8;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
}

.footer a {
    color: #38bdf8;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    color: white;
}

/* Small Buttons */
.action-links {
    display: flex;
    gap: 8px;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-view {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.btn-view:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-edit {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.btn-edit:hover {
    background: #fef3c7;
    color: #b45309;
}

.btn-action {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    margin-right: 5px;
    font-family: 'Anuphan', sans-serif;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.8;
}

.btn-confirm {
    background: #3b82f6;
}

.btn-absent {
    background: #f59e0b;
}

.btn-delete {
    background: #ef4444;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-main {
    background: #dcfce7;
    color: #166534;
}

.status-backup {
    background: #fef9c3;
    color: #854d0e;
}

.checkin-confirmed {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.checkin-absent {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Common Utilities */
.btn-back {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0;
}

.btn-back:hover {
    color: #0f172a;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #4ade80;
}

/* Dropdown */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #e2e8f0;
}

.action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 5px;
    overflow: hidden;
}

.action-menu form,
.action-menu a {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
}

.action-menu button,
.action-menu a {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.action-menu button:hover,
.action-menu a:hover {
    background-color: #f8fafc;
}

.action-menu .action-edit {
    color: #0ea5e9;
}

.action-menu .action-confirm {
    color: #10b981;
}

.action-menu .action-absent {
    color: #f59e0b;
}

.action-menu .action-delete {
    color: #ef4444;
}

.show-menu {
    display: block;
}

/* Login Page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #0f172a;
    margin: 0;
}

.login-box {
    background: rgba(30, 41, 59, 0.8);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 350px;
    text-align: center;
    color: white;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #38bdf8;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: white;
    outline: none;
    transition: border 0.3s;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #38bdf8;
}

.btn {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Anuphan', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
    color: white;
}

.error {
    color: #f87171;
    margin-bottom: 15px;
    font-size: 14px;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #cbd5e1;
}

/* Forms */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 24px;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.form-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    margin-top: 0;
    color: #3b82f6;
    font-size: 18px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #1e293b;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23475569%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

.custom-file-upload:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.file-name-display {
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
    text-align: center;
}

.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 200px;
}

.player-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    margin-top: 15px;
}

.player-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-submit {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Bracket Configuration */
.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stat-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin: 10px 0;
}

.group-card {
    border-radius: 12px;
    overflow: hidden;
    margin: 0 10px 20px 10px;
}

.group-header {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-list {
    padding: 15px;
}

.team-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.team-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-danger {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

.stage-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn.active {
    background: #0284c7;
    color: white;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* Bracket Layout */
.bracket-container {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 20px;
}

.bracket {
    display: flex;
    gap: 50px;
    min-width: max-content;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 250px;
    position: relative;
}

.round::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.round:last-child::after {
    display: none;
}

.match {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}

.match:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.match-header {
    background: #f8fafc;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.team {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.team:last-child {
    border-bottom: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.team.winner {
    background: #f0fdf4;
}

.team.winner .team-name {
    color: #166534;
    font-weight: 700;
}

.team.winner .score {
    color: #166534;
    font-weight: 800;
}

.team.loser {
    opacity: 0.7;
}

.score {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

/* Game View */
.match-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.match-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.team-vs {
    flex: 1;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.team-vs.away {
    text-align: left;
}

.vs-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 15px;
}

.score-input {
    width: 45px;
    text-align: center;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    background: #f8fafc;
}

.btn-save {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-advance {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: block;
    width: auto;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-advance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.champion-banner {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    margin-bottom: 40px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.champion-banner h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.champion-banner .trophy {
    font-size: 100px;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.champion-banner .team-name {
    font-size: 72px;
    font-weight: 900;
    margin-top: 15px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Table profile images */
.profile-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Action Dropdown */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}

.action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 100;
    border: 1px solid #e2e8f0;
    padding: 8px 0;
}

.action-dropdown.active .action-menu {
    display: block;
}

.action-menu a,
.action-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.action-menu a:hover,
.action-menu button:hover {
    background: #f8fafc;
    color: #0f172a;
}

.action-confirm {
    color: #10b981 !important;
}

.action-absent {
    color: #f59e0b !important;
}

.action-delete {
    color: #ef4444 !important;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

.status-main {
    background: #dcfce7;
    color: #166534;
}

.status-backup {
    background: #fef9c3;
    color: #854d0e;
}

/* Image Preview */
.img-preview {
    width: 60px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Compact Player Box */
.player-box .row {
    gap: 10px;
    margin-top: 5px !important;
    align-items: flex-start;
}

.player-box .form-group {
    margin-bottom: 0;
}

.player-box label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #475569;
}

.player-box input[type="text"] {
    padding: 10px 12px;
    font-size: 14px;
    border-color: #cbd5e1;
    border-radius: 6px;
}

.player-box .custom-file-upload {
    padding: 8px 12px;
    font-size: 13px;
}

.img-preview {
    width: 45px;
    margin-right: 10px;
}

.swal-custom-font {
    font-family: 'Anuphan', sans-serif !important;
}

.swal2-title {
    font-size: 22px !important;
}

.swal2-html-container {
    font-size: 15px !important;
}

/* Bracket Config 2026 */
.stage-section {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.stage-section.bg-yellow {
    background: #fefce8;
    border-color: #fde047;
}

.stage-section.bg-blue {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.stage-section.bg-purple {
    background: #fdf4ff;
    border-color: #e879f9;
}

.stage-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.badge-stage {
    background: #3b82f6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
}

.config-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.config-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.config-row .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
}

.config-row .form-group select,
.config-row .form-group input {
    padding: 8px 10px;
    font-size: 14px;
}


/* Apply font to all elements including forms and buttons */
body,
button,
input,
select,
textarea,
.btn,
.btn-save,
.btn-advance,
.btn-danger,
.btn-success,
.btn-primary {
    font-family: 'Anuphan', sans-serif !important;
}
.team-vs.right {
    text-align: left !important;
    justify-content: flex-start !important;
}
