.form-group.hidden {
    display: none !important;
}
body{
font-family:'Inter',sans-serif;
margin:0;background:#f4f6f8}
.sidebar{
width:240px;background:#2c3e50;color:#fff;
height:100vh;padding:20px;position:fixed}
.sidebar-header{text-align:center;margin-bottom:30px}
.menu{list-style:none;padding:0}
.menu a{display:flex;align-items:center;padding:12px;border-radius:8px;color:#fff;text-decoration:none;gap:10px}
.menu a:hover{background:#eaf812;color:#2c3e50}
.main-content{margin-left:280px;padding:40px}

.logo-wrapper{
width:140px;height:140px;
border-radius:22px;
background:transparent;
display:flex;align-items:center;justify-content:center;
overflow:hidden}
.logo-wrapper.small{width:72px;height:72px}
.logo-wrapper img{
max-width:100%;max-height:100%;
object-fit:contain}
.logo-wrapper.no-logo{
    background:#f4f6f8;
}

.profile-card{
background:#fff;border-radius:26px;
padding:48px;max-width:1100px;
box-shadow:0 14px 45px rgba(0,0,0,.08)}
.profile-header{
display:flex;align-items:center;gap:32px;margin-bottom:36px}
.profile-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:24px}
.profile-item{
background:#fafafa;border-radius:18px;padding:22px}
.profile-item strong{display:block;font-size:13px;color:#666}
.profile-item span{font-size:15px}

.form-card{margin-top:20px}
.form-grid{
display:grid;grid-template-columns:1fr 1fr;gap:24px}
.form-group{display:flex;flex-direction:column}
.form-group.full{grid-column:span 2}
.form-group label{font-size:13px;color:#666;margin-bottom:6px}
.form-group input{
padding:14px;border-radius:14px;border:1px solid #ddd;
background:#fafafa}
button{
margin-top:28px;padding:14px 28px;
border:none;border-radius:18px;
background:#2c3e50;color:#fff;font-size:15px}


.action-buttons{
    margin-top:20px;
    display:flex;
    gap:14px;
}

.btn-edit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:14px;
    background:#3498db;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}
.btn-edit:hover{
    background:#2980b9;
}


.action-buttons{
    margin-top:24px;
    display:flex;
    gap:14px;
}


.btn-primary:hover{
    background:#1f2d3a;
}


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


/* BOTONES BASE (usar SIEMPRE) */


/* Botón principal */

.btn-primary:hover{
    background:#1f2d3a;
}

/* Botón peligro */

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


/* === BOTONES UNIFICADOS (EDITAR / ELIMINAR) === */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 22px;
    border-radius:16px;
    font-weight:600;
    font-size:14px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    transition:all .2s ease;
}

.btn-primary{
    background:#2c3e50;
    color:#fff;
}
.btn-primary:hover{
    background:#1f2d3a;
}

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

.action-buttons{
    margin-top:24px;
    display:flex;
    gap:14px;
}

/* === Sidebar header alignment === */
.sidebar-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:12px 10px 8px;
}

.sidebar-logo{
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Reduce top spacing so menu starts higher */
.sidebar .menu{
    margin-top:6px;
}

/* === Sidebar compact version === */
.sidebar-header{
    padding:8px 8px 4px;
}

.sidebar .menu{
    margin-top:2px;
}

.sidebar .menu li a{
    font-size:13px;
    padding:8px 14px;
    line-height:1.2;
}

.sidebar .submenu li a{
    font-size:12.5px;
    padding:6px 14px;
}
/* ===== SUBMENUS SIDEBAR (FINAL) ===== */

.submenu {
    display: none;
    padding-left: 10px;
}

.has-submenu.open > .submenu {
    display: block;
}

.has-submenu > a {
    cursor: pointer;
}

.has-submenu > a .arrow {
    transition: transform 0.2s ease;
}

.has-submenu.open > a .arrow {
    transform: rotate(180deg);
}
/* ===== LISTADO DE JUGADORES ===== */

.table-wrapper{
    overflow-x:auto;
    margin-top:30px;
}

.players-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 14px;
}

.players-table thead th{
    font-size:13px;
    text-transform:uppercase;
    color:#666;
    text-align:left;
    padding:0 12px;
}

.players-table tbody tr{
    background:#fafafa;
    border-radius:16px;
}

.players-table tbody td{
    padding:16px 12px;
    vertical-align:middle;
    font-size:14px;
}

.players-table tbody tr td:first-child{
    border-top-left-radius:16px;
    border-bottom-left-radius:16px;
}

.players-table tbody tr td:last-child{
    border-top-right-radius:16px;
    border-bottom-right-radius:16px;
}

/* Avatar jugador */
.player-avatar{
    width:56px;
    height:56px;
    border-radius:50%;
    background:#eaeaea;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.player-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.player-avatar i{
    font-size:22px;
    color:#888;
}
/* ===== ACCIONES LISTADO JUGADORES ===== */

.row-actions{
    display:flex;
    justify-content:center;
    gap:12px;
}

.action-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.2s ease;
    font-size:14px;
}

.action-icon.edit{
    background:#ecf0f1;
    color:#2980b9;
}
.action-icon.edit:hover{
    background:#2980b9;
    color:#fff;
}

.action-icon.delete{
    background:#fbeaea;
    color:#c0392b;
}
.action-icon.delete:hover{
    background:#c0392b;
    color:#fff;
}
.action-icon.view{
    color:#2563eb;
}
.action-icon.view:hover{
    background:#e0e7ff;
}
/* ===== FINANCE DASHBOARD ===== */

.finance-container {
    max-width: 1200px;
    margin: 0 auto;
}

.finance-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.finance-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

/* KPI CARDS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.kpi-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 6px;
}

.kpi-positive { color: #16a34a; }
.kpi-negative { color: #dc2626; }

/* SECTION CARD */
.section-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

/* TABLE */
.finance-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    padding-bottom: 10px;
}

.finance-table td {
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-open {
    background: #dcfce7;
    color: #166534;
}

.badge-closed {
    background: #e5e7eb;
    color: #374151;
}
/* EVENT LINK */
.event-link {
    color: #111827;              /* texto casi negro */
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}

.event-link:hover {
    color: #2563eb;              /* azul Meraki */
    text-decoration: underline;
}


