/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --gray: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
}
/* --- NOVO ESTILO ADICIONADO --- */
.module-card-modern.futebol {
    --color-1: #334155; /* cinza-escuro */
    --color-2: #0f172a; /* quase preto */
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray);
    font-size: 14px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

/* Dashboard */
.dashboard {
    background: var(--light);
    min-height: 100vh;
}


.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

/* Module Cards */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.module-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.module-card:active {
    transform: translateY(-2px);
}

.module-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.module-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px; /* Evita zoom no iOS */
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.table tr:hover {
    background: var(--light);
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
    font-size: 14px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mt-4 {
    margin-top: 20px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 16px 12px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header {
        padding: 12px 12px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .header-user {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }
    
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px 12px;
        border-radius: 10px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px 14px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .module-card {
        padding: 18px 14px;
    }
    
    .module-icon {
        font-size: 36px;
    }
    
    .module-title {
        font-size: 17px;
    }
    
    .module-desc {
        font-size: 13px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .btn {
        padding: 11px 18px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .login-box {
        padding: 24px 20px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .header-title {
        font-size: 16px;
    }
    
    .header-user span {
        display: none;
    }
    
    .card-grid {
        gap: 10px;
    }
    
    .module-grid {
        gap: 10px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
    }
}


/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .module-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .module-card:active {
        transform: scale(0.98);
    }
}
