/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --bg-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --menu-width: 250px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: auto;
}

.screen.active {
    display: flex;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Login Card */
.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    animation: fadeIn 0.3s ease-in;
}

.login-card h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5em;
}

.login-card h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #95a5a6;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.app-title {
    font-size: 1.5em;
    flex: 1;
    text-align: center;
}

.menu-btn,
.settings-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-btn:hover,
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--menu-width);
    max-width: 80%;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.menu-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h2 {
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.menu-list a {
    display: block;
    padding: 18px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.menu-list a:hover {
    background: var(--bg-color);
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.view-header h2 {
    color: var(--primary-color);
    font-size: 1.8em;
}

.view-header .btn {
    width: auto;
    margin-bottom: 0;
    padding: 10px 20px;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--secondary-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.team-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.team-card p {
    margin: 5px 0;
    color: #7f8c8d;
}

.team-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.team-card-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.edit-btn {
    background: var(--secondary-color);
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: var(--accent-color);
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Schedule Container */
.schedule-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* Schedule Split View */
.schedule-split-view {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.schedule-left,
.schedule-right {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.schedule-left h3,
.schedule-right h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.schedule-table-container {
    overflow-x: auto;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

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

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table tbody tr:hover {
    background: var(--bg-color);
    cursor: pointer;
}

.schedule-listbox {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.schedule-listbox-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.schedule-listbox-item:hover {
    background: var(--bg-color);
}

.schedule-listbox-item:last-child {
    border-bottom: none;
}

.schedule-listbox-item.selected {
    background: var(--secondary-color);
    color: white;
}

.season-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.season-select {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.season-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.date-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group .btn {
    flex: 1;
}

.game-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.game-item:last-child {
    border-bottom: none;
}

.game-teams {
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
}

.game-date {
    color: #7f8c8d;
}

/* Standings Container */
.standings-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.standings-table th,
.standings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.standings-table tr:hover {
    background: var(--bg-color);
}

/* Settings Container */
.settings-container {
    max-width: 600px;
}

.setting-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.setting-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.setting-item p {
    margin: 10px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.modal-footer .btn {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Team Detail View */
.team-detail-container {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.players-sidebar {
    width: 250px;
    padding: 20px;
    border-right: 2px solid var(--border-color);
    background: #f8f9fa;
}

.players-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.player-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-item.active {
    background: var(--secondary-color);
    color: white;
    border-left-color: var(--primary-color);
}

.stats-main {
    flex: 1;
    padding: 20px;
}

.stats-main h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.table-container {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.stats-table th.sortable:hover {
    background: #34495e;
}

.stats-table th.sorted-asc .sort-indicator::after {
    content: ' ▲';
}

.stats-table th.sorted-desc .sort-indicator::after {
    content: ' ▼';
}

.stats-table tbody tr:hover {
    background: var(--bg-color);
}

.stats-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.stats-table tbody tr:nth-child(even):hover {
    background: var(--bg-color);
}

/* Team Select Dropdown */
.team-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
    cursor: pointer;
}

.team-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-card h1 {
        font-size: 2em;
    }

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

    .view-header {
        flex-direction: column;
        align-items: stretch;
    }

    .view-header .btn {
        width: 100%;
    }

    .app-title {
        font-size: 1.2em;
    }
    
    .team-detail-container {
        flex-direction: column;
    }
    
    .players-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }
    
    .stats-main {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .schedule-split-view {
        flex-direction: column;
    }
    
    .season-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .season-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .standings-table {
        font-size: 0.9em;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px;
    }
}

/* Fullscreen Support */
@media screen and (display-mode: fullscreen) {
    body {
        background: var(--primary-color);
    }
}

/* Player Game Statistics Detail Modal */
.player-stats-modal-content {
    max-width: 95%;
    width: 1200px;
}

.player-stats-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.player-stats-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
}

.date-select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.date-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.player-stats-table-container {
    overflow-x: auto;
    max-height: calc(70vh - 120px);
    overflow-y: auto;
}

.player-stats-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.player-stats-detail-table th,
.player-stats-detail-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.player-stats-detail-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.player-stats-detail-table tbody tr:hover {
    background: var(--bg-color);
}

.player-stats-detail-table tbody tr.date-separator {
    height: 10px;
    background: transparent;
    border: none;
}

.player-stats-detail-table tbody tr.date-separator td {
    border: none;
    padding: 5px;
}

.player-stats-detail-table tbody tr.match-total {
    background: #e8f4f8;
    font-weight: 600;
}

.player-stats-detail-table tbody tr.match-total:hover {
    background: #d4ebf3;
}

.player-stats-detail-table td.editable {
    cursor: pointer;
    transition: background 0.2s;
}

.player-stats-detail-table td.editable:hover {
    background: #fff9c4;
}

.player-stats-detail-table td input {
    width: 100%;
    border: 2px solid var(--secondary-color);
    padding: 4px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
}

.player-stats-detail-table tfoot {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 5;
}

.player-stats-detail-table tfoot tr.totals-row {
    background: var(--secondary-color);
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.player-stats-detail-table tfoot td {
    padding: 12px 10px;
    border: 2px solid var(--primary-color);
}

/* Player Stats Action Buttons */
.player-stats-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
}

.btn-action {
    width: auto;
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.btn-edit {
    background: var(--secondary-color);
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-monies {
    background: var(--success-color);
    color: white;
}

.btn-monies:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-delete {
    background: var(--accent-color);
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* iOS Safe Area Support */
@supports (padding-top: env(safe-area-inset-top)) {
    .app-header {
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }

    .main-content {
        margin-top: calc(60px + env(safe-area-inset-top));
        height: calc(100vh - 60px - env(safe-area-inset-top));
        padding-bottom: env(safe-area-inset-bottom);
    }

    .side-menu {
        padding-top: env(safe-area-inset-top);
    }
}

/* Scores Schedule Modal Styles */
.scores-schedule-list {
    max-height: 500px;
    overflow-y: auto;
}

.schedule-item {
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-item:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.schedule-item-date {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.schedule-item-teams {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
}

.schedule-item-status {
    font-size: 0.85em;
    color: var(--success-color);
    margin-top: 5px;
}

/* Game Scores Modal Styles */
.game-scores-modal-content {
    max-width: 600px;
}

.game-scores-teams-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.game-scores-team-name {
    text-align: center;
    font-size: 1.2em;
    color: var(--primary-color);
}

.game-scores-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.game-scores-table th,
.game-scores-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.game-scores-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.game-scores-table tbody tr:hover {
    background: #f8f9fa;
}

.game-scores-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f8f9fa;
}

.score-input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}

.score-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Remove spinner from number inputs */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input[type=number] {
    -moz-appearance: textfield;
}

/* Fees Sidebar */
.fees-sidebar {
    min-width: 150px;
    max-width: 200px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.fees-sidebar h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.fees-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

.fees-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--success-color);
}

.fees-table tr:hover td {
    background-color: #f8f9fa;
}

/* Player Fees Modal */
.player-fees-modal-content {
    max-width: 700px;
    max-height: 85vh;
}

.player-fees-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.player-fees-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.player-fees-table-container {
    overflow-x: auto;
}

.player-fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.player-fees-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.player-fees-table th:last-child {
    text-align: center;
}

.player-fees-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.player-fees-table td:last-child {
    text-align: center;
}

.player-fees-table tr:hover td {
    background-color: #f8f9fa;
}

.fees-total-row td {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid var(--primary-color);
    padding: 15px 12px;
}

.fees-total-row td:first-child {
    color: var(--primary-color);
}

.fees-total-row td:nth-child(2) {
    color: var(--success-color);
    font-size: 1.1em;
}

.btn-mini {
    padding: 4px 8px;
    font-size: 0.85em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 2px;
    transition: all 0.2s;
}

.btn-mini.btn-edit {
    background-color: var(--secondary-color);
    color: white;
}

.btn-mini.btn-edit:hover {
    background-color: #2980b9;
}

.btn-mini.btn-delete {
    background-color: var(--accent-color);
    color: white;
}

.btn-mini.btn-delete:hover {
    background-color: #c0392b;
}

.fee-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
}

.fee-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Update team detail container for three columns */
.team-detail-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

/* Adjust stats-main width to accommodate fees column */
.stats-main {
    flex: 1;
    min-width: 600px;
}
