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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a472a;
    color: #fff;
    min-height: 100vh;
    padding-bottom: 70px;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

header {
    text-align: center;
    padding: 16px 0;
    border-bottom: 2px solid #2d6a4f;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #d4edda;
}

#forat-indicator {
    font-size: 18px;
    color: #95d5b2;
    margin-top: 8px;
}

#status {
    font-size: 14px;
    color: #95d5b2;
    margin-top: 4px;
    min-height: 20px;
}

/* Targeta del jugador */
.jugador-block {
    background: #1b4332;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 2px solid #2d6a4f;
}

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

.jugador-nom {
    font-weight: 700;
    font-size: 16px;
    color: #d4edda;
}

.jugador-hcp {
    font-size: 14px;
    color: #95d5b2;
    background: #2d6a4f;
    padding: 2px 10px;
    border-radius: 12px;
}

.jugador-actiu {
    border-color: #ffd60a;
    background: #2d6a4f;
}

.jugador-signat {
    border-color: #52b788;
}

.jugador-signat .jugador-header::after {
    content: '✅ Signada';
    font-size: 12px;
    color: #52b788;
}

/* Taula de forats */
.forats-grid {
    overflow-x: auto;
}

.forats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.forats-table th {
    color: #95d5b2;
    font-weight: 400;
    padding: 4px 2px;
    text-align: center;
    font-size: 12px;
}

.forats-table td {
    padding: 4px 2px;
    text-align: center;
}

.forats-table .fila-cops {
    font-weight: 700;
    font-size: 16px;
    color: #d4edda;
}

.forats-table .fila-green {
    font-size: 14px;
    color: #95d5b2;
}

.forats-table .fila-putts {
    font-size: 14px;
    color: #95d5b2;
}

.forats-table .forat-actual {
    background: rgba(255, 214, 10, 0.15);
    border-radius: 4px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0 4px 0;
    flex-wrap: wrap;
}

.controls .control-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2d6a4f;
    padding: 4px 10px;
    border-radius: 20px;
}

.controls button {
    background: #52b788;
    color: #1a472a;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.controls button:active {
    transform: scale(0.9);
}

.controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.controls .btn-green {
    background: #2d6a4f;
    color: #95d5b2;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    width: auto;
    padding: 0 14px;
}

.controls .btn-green.active {
    background: #52b788;
    color: #1a472a;
}

.navegacio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.navegacio button {
    background: #2d6a4f;
    color: #d4edda;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.navegacio button:active {
    transform: scale(0.9);
}

.navegacio span {
    font-size: 18px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    color: #d4edda;
}

/* Bottom navigation */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d1f15;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 2px solid #2d6a4f;
    max-width: 480px;
    margin: 0 auto;
}

#bottom-nav button {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

#bottom-nav button.active {
    color: #52b788;
    font-weight: 600;
}

#bottom-nav button:active {
    transform: scale(0.95);
}

/* Gestió */
#signatures-list .jugador-sign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #2d6a4f;
    border-radius: 8px;
    margin-bottom: 8px;
}

.jugador-sign-item .sign-btn {
    background: #52b788;
    color: #1a472a;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.jugador-sign-item .sign-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.jugador-sign-item .sign-btn.signat {
    background: #1b4332;
    color: #52b788;
}

/* Formularis */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #95d5b2;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #2d6a4f;
    border-radius: 8px;
    background: #1b4332;
    color: #fff;
    font-size: 16px;
}

.btn {
    background: #52b788;
    color: #1a472a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

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

.btn-secondary {
    background: #2d6a4f;
    color: #fff;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #1a472a;
}

::-webkit-scrollbar-thumb {
    background: #52b788;
    border-radius: 2px;
}
/* Millora per a tàctil */
.forat-card {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.forat-card:active {
    transform: scale(0.95);
    background: #2d6a4f;
}

/* Per a mòbil: espaiat suficient */
.jugador-header {
    min-height: 44px;
    padding: 8px 4px;
}

.controls button {
    min-width: 44px;
    min-height: 44px;
}
