/* CSS for Tiki Taka Soccer Mockup */

@font-face {
    font-family: 'GameFont';
    src: local('Impact'), local('Arial Black'), sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'GameFont', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    background-color: #111115;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #333;
}

/* --- Header --- */
.top-bar {
    background-color: #2b5cb2;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

.team-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.top-bar h1 {
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* --- Main Layout --- */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 15px;
    padding: 15px;
    overflow: hidden;
}

.section-header {
    font-size: 18px;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 2px solid #444;
    padding-bottom: 4px;
    text-transform: uppercase;
}

/* --- Left Column Elements --- */
.stat-row {
    background-color: #1a1a1e;
    height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 15px;
}

.stat-icon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
}

.icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon.battery {
    background-color: #444;
    position: relative;
    border-radius: 2px;
}
.icon.battery::after {
    content: '';
    position: absolute;
    top: 4px; right: -2px;
    width: 2px; height: 16px;
    background: #444;
}

.label {
    font-size: 16px;
    color: #aaa;
    font-weight: bold;
}

.stat-value {
    flex: 1;
    text-align: right;
    font-size: 18px;
    color: #eee;
}

.highlight {
    color: #ffcc00;
}

.plus-btn {
    width: 28px;
    height: 28px;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
}

.progress-container {
    flex: 1;
    height: 14px;
    background-color: #000;
    border: 1px solid #333;
}

.progress-bar {
    height: 100%;
}

.progress-bar.green { background-color: #66cc33; }
.progress-bar.red { background-color: #cc3333; }

/* --- Manager Card --- */
.manager-card {
    background-color: #1a1a1e;
    padding: 10px;
    display: flex;
    gap: 15px;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: #333;
    border: 1px solid #444;
}

.manager-info {
    flex: 1;
}

.manager-name {
    font-size: 18px;
    color: #66ff66;
    margin-bottom: 5px;
}

.level-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-label { font-size: 12px; color: #888; }
.level-num { font-size: 18px; font-weight: bold; }
.level-num.next { color: #fff; }

.level-progress {
    flex: 1;
    height: 14px;
    background-color: #000;
    border: 1px solid #333;
    position: relative;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 10px;
    line-height: 14px;
    color: #fff;
    z-index: 1;
}

/* --- Staff Rows --- */
.staff-row {
    background-color: #1a1a1e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    gap: 15px;
}

.staff-avatar {
    width: 44px;
    height: 44px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #444;
}

.staff-info {
    flex: 1;
}

.staff-name { font-size: 14px; color: #fff; }
.staff-stars { font-size: 12px; color: #444; }
.staff-stars.highlight { color: #ffcc00; }
.staff-desc { font-size: 11px; color: #777; }

/* --- Right Column: League Table --- */
.right-col {
    display: flex;
    flex-direction: column;
}

.table-headers {
    display: flex;
    gap: 15px;
}

.flex-grow { flex: 1; }
.fixed-w { width: 140px; }

.league-container {
    flex: 1;
    background-color: #1a1a1e;
    padding: 0 10px;
    overflow-y: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
}

.league-table th {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 10px 5px;
}

.league-table th.team-col { text-align: left; padding-left: 10px; }

.league-table td {
    padding: 6px 5px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.league-table td.team-col {
    text-align: left;
    padding-left: 10px;
    color: #ccc;
}

.league-table tr.highlight-row td {
    background-color: rgba(255,255,255,0.05);
}

.league-table tr.highlight-row td.team-col {
    color: #66ccff;
}

.league-table tr.separator {
    border-bottom: 1px dashed #444;
}

.points {
    color: #ffcc00;
}

/* --- Footer --- */
.bottom-bar {
    background-color: #1a1a1e;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 20px;
    border-top: 1px solid #222;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    color: #888;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-btn.active {
    color: #fff;
    border-bottom-color: #2b5cb2;
}

.next-action {
    margin-left: auto;
}

.next-btn {
    background-color: #2b5cb2;
    border: none;
    color: #fff;
    padding: 8px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
}

.next-btn .btn-label { font-size: 18px; font-weight: bold; }
.next-btn .btn-detail { font-size: 10px; opacity: 0.7; }
