/* ============================================
   Racha - Sistema de Gestão de Partidas de Futebol
   Folha de Estilos Principal
   ============================================ */

/* ============================================
   CSS Custom Properties (Variáveis)
   ============================================ */
:root {
    /* Paleta Principal */
    --green-dark: #1A312C;
    --green-medium: #428475;
    --green-light: #89D7B7;
    --gray-dark: #303841;
    --gray-medium: #4a5568;
    --gray-light: #e0e0e0;
    --gray-bg: #f5f7fa;

    /* Cores Funcionais */
    --color-primary: var(--green-medium);
    --color-primary-hover: #367a6a;
    --color-primary-light: #e8f5f0;
    --color-success: #5cb85c;
    --color-danger: #d9534f;
    --color-warning: #f0ad4e;
    --color-info: #5bc0de;

    /* Tipografia */
    --font-logo: 'Anton', sans-serif;
    --font-body: 'Sora', sans-serif;

    /* Tema Claro */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-bg);
    --bg-card: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --border-color: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Bordas */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Tipografia
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: white;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 200;
    color: var(--green-light);
    display: block;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: var(--green-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-decoration: none !important;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.navbar-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    text-decoration: none !important;
}

.navbar-links a:hover,
.navbar-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.navbar-links a.active {
    background: rgba(137, 215, 183, 0.2);
    color: var(--green-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.18);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
}

.dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-header small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none !important;
}

.dropdown-item:hover {
    background: var(--gray-bg);
    color: var(--text-primary);
}

.dropdown-item-danger {
    color: var(--color-danger) !important;
}

.dropdown-item-danger:hover {
    background: #fef2f2 !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.footer-brand i {
    color: var(--green-light);
    margin-right: 0.3rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.dashboard-card {
    height: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

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

.btn-success:hover {
    background: #4cae4c;
}

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

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

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--color-primary);
    margin-right: 0.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 132, 117, 0.15);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

.form-card {
    max-width: 800px;
}

.form-card .form {
    padding: 1.5rem;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 300;
    cursor: pointer;
}

.current-photo {
    margin-bottom: 0.5rem;
}

.current-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-section h1 {
    font-size: 1.6rem;
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon-green { background: #e8f5e9; color: var(--color-success); }
.stat-icon-blue { background: #e3f2fd; color: var(--color-info); }
.stat-icon-orange { background: #fff3e0; color: var(--color-warning); }
.stat-icon-purple { background: #f3e5f5; color: #9c27b0; }
.stat-icon-red { background: #ffebee; color: var(--color-danger); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-card-sm {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

/* ============================================
   Dashboard Grid
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Match List
   ============================================ */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: var(--transition);
    text-decoration: none !important;
    color: var(--text-primary);
}

.match-item:hover {
    background: var(--gray-bg);
    transform: translateX(3px);
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    padding: 0.3rem;
    background: var(--green-dark);
    color: white;
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.match-day {
    font-size: 1.2rem;
    font-weight: 800;
}

.match-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 300;
}

.match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.match-location {
    font-weight: 500;
    font-size: 0.9rem;
}

.match-location i,
.match-type i {
    color: var(--color-primary);
    width: 14px;
    margin-right: 0.25rem;
}

.match-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    font-weight: 500;
}

.match-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-agendada,
.status-confirmada {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.status-em_andamento {
    background: #fff3e0;
    color: var(--color-warning);
}

.status-finalizada {
    background: #e8f5e9;
    color: var(--color-success);
}

.status-cancelada {
    background: #ffebee;
    color: var(--color-danger);
}

/* Match Cards Grid */
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none !important;
    color: var(--text-primary);
    display: block;
}

.match-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem 0.5rem;
}

.match-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.match-date-badge strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.match-date-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.match-card-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.match-card-body {
    padding: 0.5rem 1.25rem;
}

.match-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.match-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-card-meta i {
    width: 14px;
}

.match-card-footer {
    padding: 0.5rem 1.25rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Match Detail Header */
.match-detail-header {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    align-items: center;
}

.match-detail-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--green-dark);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    line-height: 1.1;
    min-width: 80px;
}

.match-detail-day {
    font-size: 2rem;
    font-weight: 800;
}

.match-detail-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-detail-year {
    font-size: 0.7rem;
    opacity: 0.7;
}

.match-detail-info h1 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.match-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.match-detail-meta i {
    width: 14px;
    color: var(--color-primary);
}

.match-status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   Presence Card
   ============================================ */
.presence-card {
    margin-bottom: 1.5rem;
}

.presence-card .card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.presence-taxa {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.presence-taxa i {
    color: var(--color-warning);
}

/* ============================================
   Teams
   ============================================ */
.teams-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.team-card-header {
    padding: 1rem;
    color: white;
    text-align: center;
}

.team-card-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.team-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

.team-card-body {
    padding: 0.75rem;
}

.team-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.team-player-avatar img,
.team-player-avatar .avatar-letter-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.team-player-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.team-player-rating {
    font-size: 0.6rem;
    color: #ddd;
}

.team-player-rating .star-filled {
    color: #f1c40f;
}

.goleiro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 99px;
    font-weight: 600;
    margin-left: 0.3rem;
}

/* ============================================
   Players Grid
   ============================================ */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.player-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    text-decoration: none !important;
    color: var(--text-primary);
}

.player-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.player-avatar {
    position: relative;
    margin-bottom: 0.75rem;
}

.player-avatar img,
.avatar-letter-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.player-badge-admin {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-warning);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid white;
}

.player-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.player-info > p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.player-position {
    color: var(--text-secondary);
}

.player-rating {
    color: #ddd;
    font-size: 0.7rem;
}

.player-rating .star-filled {
    color: #f1c40f;
}

/* Profile Header */
.profile-header {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img,
.avatar-letter-xl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-badge-admin {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-warning);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.profile-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-details i {
    color: var(--color-primary);
    width: 16px;
}

.profile-rating {
    font-size: 0.85rem;
    color: #ddd;
}

.profile-rating .star-filled {
    color: #f1c40f;
}

.rating-value {
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 0.3rem;
}

/* Attributes */
.attributes-section,
.stats-section {
    margin-bottom: 1.5rem;
}

.attributes-section h2,
.stats-section h2,
.section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.attribute-item label {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-light), var(--green-medium));
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* ============================================
   Table
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table thead {
    background: var(--gray-bg);
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

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

.presenca-confirmada {
    background: #f0fdf4;
}

.player-link {
    font-weight: 500;
}

/* Estrelas mini (para tabelas) */
.star-mini {
    font-size: 0.55rem;
}

.star-mini-filled {
    color: #f1c40f;
}

.star-mini-empty {
    color: #ddd;
}

.dark-theme .star-mini-empty {
    color: #444;
}

/* ============================================
   Financeiro - Lançamentos
   ============================================ */
.lanc-receita {
    background: #fafff5;
}

.lanc-receita:hover {
    background: #f0fce8 !important;
}

.lanc-despesa {
    background: #fff5f5;
}

.lanc-despesa:hover {
    background: #ffe8e8 !important;
}

.dark-theme .lanc-receita {
    background: rgba(92, 184, 92, 0.08);
}

.dark-theme .lanc-receita:hover {
    background: rgba(92, 184, 92, 0.15) !important;
}

.dark-theme .lanc-despesa {
    background: rgba(217, 83, 79, 0.08);
}

.dark-theme .lanc-despesa:hover {
    background: rgba(217, 83, 79, 0.15) !important;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: var(--color-success);
}

.badge-secondary {
    background: var(--gray-light);
    color: var(--text-secondary);
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tab:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.tab.active {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    position: relative;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--color-danger);
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--color-info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0 0.3rem;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--gray-light);
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
    margin-bottom: 1.5rem;
}

.search-form {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 132, 117, 0.15);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================================
   Ranking
   ============================================ */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none !important;
    color: var(--text-primary);
}

.ranking-item:hover {
    background: var(--gray-bg);
}

.ranking-pos {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-light);
    color: var(--text-secondary);
}

.ranking-top {
    background: var(--color-warning);
    color: white;
}

.ranking-avatar img,
.avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.ranking-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.ranking-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   Financial Summary
   ============================================ */
.financial-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

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

.fin-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.fin-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.fin-positive {
    color: var(--color-success);
}

.fin-negative {
    color: var(--color-danger);
}

.fin-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    grid-column: 1 / -1;
}

.balance-card {
    margin-bottom: 1.5rem;
}

.balance-card .card-body {
    text-align: center;
    padding: 2rem;
}

.balance-card h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.balance-value.positive {
    color: var(--color-success);
}

.balance-value.negative {
    color: var(--color-danger);
}

/* ============================================
   Chat
   ============================================ */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    max-width: 80%;
}

.chat-message-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    flex-shrink: 0;
}

.chat-message-avatar img,
.chat-message-avatar .avatar-letter-xs {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-letter-xs {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 600;
}

.chat-message-content {
    background: var(--gray-bg);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.chat-message-mine .chat-message-content {
    background: var(--color-primary-light);
}

.chat-message-author {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.15rem;
}

.chat-message-text {
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.chat-input input:focus {
    border-color: var(--color-primary);
}

/* ============================================
   Login Page
   ============================================ */
.login-page {
    background: linear-gradient(135deg, var(--green-dark) 0%, #2d5a4f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: var(--green-dark);
    padding: 2rem;
    text-align: center;
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--green-light);
    margin-bottom: 0.5rem;
}

.login-logo h1 {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    color: white;
    letter-spacing: 3px;
    line-height: 1.2;
}

.login-logo p {
    color: var(--green-light);
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 2px;
}

.login-form {
    padding: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-footer {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   Section
   ============================================ */
.section {
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Chart (Gráficos Financeiros)
   ============================================ */
.chart-section {
    margin-bottom: 1.5rem;
}

.chart-container {
    position: relative;
    width: 100%;
    max-height: 350px;
    margin-bottom: 1rem;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 350px;
}

.chart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.chart-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.chart-totals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.chart-total-receita { color: var(--color-success); }
.chart-total-despesa { color: var(--color-danger); }
.chart-total-saldo { color: var(--text-primary); }

.chart-filtro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-select {
    padding: 0.35rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    cursor: pointer;
    max-width: 250px;
}

.chart-select:focus {
    border-color: var(--color-primary);
}

/* ============================================
   Presença em Massa
   ============================================ */
.presenca-massa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.presenca-massa-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--bg-primary);
}

.presenca-massa-item:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.presenca-massa-item.checked {
    border-color: var(--color-success);
    background: #f0fdf4;
}

.dark-theme .presenca-massa-item.checked {
    background: rgba(92, 184, 92, 0.1);
}

.presenca-massa-item input[type="checkbox"] {
    display: none;
}

.presenca-massa-avatar img,
.presenca-massa-avatar .avatar-letter-xs {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.presenca-massa-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.presenca-massa-info strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.presenca-massa-info small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.presenca-massa-check {
    color: var(--color-success);
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.presenca-massa-item.checked .presenca-massa-check {
    opacity: 1;
}

.presenca-massa-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   Form Times Card
   ============================================ */
.form-times-card {
    margin-bottom: 1.5rem;
}

.form-times-content {
    padding: 1rem;
}

.form-times-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.form-times-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* Admin Actions Card */
.admin-actions-card {
    margin-bottom: 1.5rem;
}

.admin-actions-card .card-body {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Chat Flutuante (FAB)
   ============================================ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(66, 132, 117, 0.4);
    transition: var(--transition);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(66, 132, 117, 0.5);
    background: var(--color-primary-hover);
}

.chat-fab:active {
    transform: scale(0.95);
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.chat-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}

.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--green-dark);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-modal-header h3 {
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.chat-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-modal-body {
    flex: 1;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-modal-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.chat-modal-input input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.chat-modal-input input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 132, 117, 0.15);
}

/* ============================================
   Modal de Pagamento
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--gray-bg);
    color: var(--color-danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.modal-body .form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 132, 117, 0.15);
}

.modal-body .form-actions {
    margin-top: 0.75rem;
}

/* ============================================
   Relatório Financeiro - Checkboxes
   ============================================ */
.relatorio-partidas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.4rem;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
}

.relatorio-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.82rem;
}

.relatorio-checkbox-item:hover {
    background: var(--color-primary-light);
}

.relatorio-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.relatorio-checkbox-item strong {
    color: var(--color-primary);
}

/* ============================================
   Botão Pagamento Outline
   ============================================ */
.btn-outline-danger {
    background: transparent;
    color: var(--color-danger);
    border: 1.5px solid var(--color-danger);
}

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

/* ============================================
   Player Card Enhanced (Redesign)
   ============================================ */
.players-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.player-card-enhanced {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none !important;
    color: var(--text-primary);
    overflow: hidden;
}

.player-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-medium), var(--green-light));
    opacity: 0;
    transition: var(--transition);
}

.player-card-enhanced:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.player-card-enhanced:hover::before {
    opacity: 1;
}

.player-card-enhanced:active {
    transform: translateY(-2px);
}

/* Admin Badge */
.player-badge-admin-enhanced {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.4);
    z-index: 2;
}

/* Inativo Badge */
.player-badge-inativo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-danger);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Header: Avatar + Name/Position */
.pce-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pce-avatar {
    flex-shrink: 0;
}

.pce-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
    transition: var(--transition);
}

.player-card-enhanced:hover .pce-avatar img {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pce-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-medium));
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    border: 3px solid var(--color-primary-light);
    transition: var(--transition);
}

.player-card-enhanced:hover .pce-avatar-letter {
    border-color: var(--color-primary);
}

.pce-name-row {
    flex: 1;
    min-width: 0;
}

.pce-nome {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--text-primary);
}

.pce-posicao {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
}

.pce-posicao i {
    font-size: 0.75rem;
    color: var(--color-primary);
    width: 14px;
}

/* Stars */
.pce-stars {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.7rem;
}

.pce-stars .star-filled {
    color: #f1c40f;
    text-shadow: 0 0 4px rgba(241, 196, 15, 0.3);
}

.pce-stars .star-empty-enhanced {
    color: var(--gray-light);
}

.dark-theme .pce-stars .star-empty-enhanced {
    color: #444;
}

.pce-rating-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 0.3rem;
    background: var(--gray-bg);
    padding: 0.1rem 0.35rem;
    border-radius: 99px;
}

/* Atributos Progress Bars */
.pce-attribs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
}

.pce-attrib {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pce-attrib-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 32px;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.pce-attrib-label i {
    font-size: 0.6rem;
    color: var(--color-primary);
}

.pce-attrib-bar {
    flex: 1;
    height: 5px;
    background: var(--gray-light);
    border-radius: 99px;
    overflow: hidden;
}

.dark-theme .pce-attrib-bar {
    background: #3a3a3a;
}

.pce-attrib-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--green-light), var(--green-medium));
    transition: width 0.5s ease;
}

/* Stats Row */
.pce-stats-row {
    display: flex;
    justify-content: space-around;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.pce-stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pce-stat-item i {
    font-size: 0.75rem;
}

.pce-stat-item span {
    color: var(--text-primary);
}

/* ============================================
   Importação UI
   ============================================ */
#instructions-area {
    background: var(--gray-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#instructions-area ol {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

#instructions-area ol li {
    margin-bottom: 0.3rem;
}

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

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

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.mt-sm { margin-top: 0.5rem; }
.mb-lg { margin-bottom: 1.5rem; }

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--green-dark);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links a {
        padding: 0.7rem 1rem;
    }

    .navbar-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .match-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-details {
        justify-content: center;
    }

    .financial-summary {
        grid-template-columns: 1fr 1fr;
    }

    .form-inline {
        flex-direction: column;
    }

    .form-inline .form-group {
        min-width: 100%;
    }

    .matches-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .financial-summary {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 1rem;
    }
}
