/* --- Modern & Responsive Design System --- */
:root {
    /* Palette semântica */
    --primary-color: #3f709d;
    --primary-hover: #345c82;
    --primary-light: #ebf8ff;

    --secondary-color: #f4f6f8;
    --sidebar-color: #ffffff;

    --text-main: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;

    --border-color: #e2e8f0;

    --success-bg: #c6f6d5;
    --success-text: #22543d;

    --danger-bg: #fed7d7;
    --danger-text: #9b2c2c;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition-base: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, p {
    margin: 0;
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    padding-bottom: 20px;
    background-color: var(--sidebar-color);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.icon-close-sidebar {
    display: none;
    cursor: pointer;
    color: var(--text-secondary);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-group {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
}

.menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

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

.menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

#menu-logout {
    border-top: 1px solid var(--border-color);
    color: #e53e3e;
}

#menu-logout:hover {
    background-color: #fff5f5;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    width: calc(100% - 260px);
    max-width: 100vw;
    overflow-x: hidden;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.clubes-table,
.membros-table {
    border: none;
    border-radius: 0;
}

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

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    margin-right: 1rem;
}

/* --- Cards --- */
.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(63, 112, 157, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(63, 112, 157, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary i {
    margin-right: 8px;
}

.btn-membro-acao {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.4rem;
    transition: var(--transition-base);
}

.btn-membro-acao:hover {
    color: var(--primary-color);
}

/* --- Status Messages --- */
.status-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-success {
    background-color: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.status-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* --- Dashboard --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Forms --- */
.cadastro-container {
    margin: 0 auto;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 800px;
}

.form-header-minimal {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header-minimal i {
    padding: 8px;
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-header-minimal i:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.form-header-minimal span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
.member-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    background-color: #fff;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition-base);
}

.password-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3rem;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-base);
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

input:focus,
select:focus,
.member-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 112, 157, 0.15);
}

.form-section {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.form-section h3 {
    color: var(--primary-hover);
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.member-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 1.5rem;
}

.member-grid-new {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* --- Tables --- */
.clubes-table,
.membros-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    background: #fff;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

td {
    white-space: normal;
    word-wrap: break-word;
}

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

tbody tr:hover {
    background-color: #f7fafc;
}

/* --- Action Buttons Container --- */
.action-buttons-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    margin: 0;
}

.btn-view {
    background-color: #3498db;
    color: white;
}

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

.btn-edit {
    background-color: #2ecc71;
    color: white;
}

.btn-edit:hover {
    background-color: #27ae60;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

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

/* --- Login Screen --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.login-card {
    background-color: #fff;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 30px;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-form button {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
}

.form-actions {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .icon-close-sidebar {
        display: block !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #cadastro-title {
        font-size: 1.2rem;
    }

    .header > div {
        width: 100%;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .card {
        padding: 1rem;
    }

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

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

    .member-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .member-grid-new {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .member-grid button,
    .member-grid-new button {
        margin-top: 0.5rem;
        width: 100%;
    }

    .cadastro-container {
        padding: 1.5rem;
        margin-top: 0;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .login-card {
        margin: 1.5rem;
        padding: 2rem 1.5rem;
    }

    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    #sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .clubes-table thead,
    .membros-table thead {
        display: none;
    }

    .clubes-table,
    .membros-table,
    .clubes-table tbody,
    .membros-table tbody,
    .clubes-table tr,
    .membros-table tr,
    .clubes-table td,
    .membros-table td {
        display: block;
        width: 100%;
    }

    .clubes-table tr,
    .membros-table tr {
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 15px;
    }

    .clubes-table td,
    .membros-table td {
        text-align: left;
        padding: 5px 0;
        border: none;
        white-space: normal;
    }

    .clubes-table td:first-child {
        font-weight: 700;
        font-size: 1.1em;
        color: var(--primary-color);
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

    .clubes-table td:last-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .clubes-table td:last-child .action-btn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .clubes-table td:nth-child(2),
    .clubes-table td:nth-child(3) {
        display: none;
    }
}

    /* --- TABLE MOBILE CARD VIEW --- */
    .clubes-table td::before,
    .membros-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        display: none;
        margin-bottom: 4px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    @media (max-width: 768px) {
        .action-buttons-container {
            flex-direction: row;
            gap: 0.5rem;
        }
        
        .action-btn {
            flex: 1;
            min-width: 40px;
        }
        
        .clubes-table thead,
        .membros-table thead {
            display: none;
        }

        .clubes-table,
        .membros-table,
        .clubes-table tbody,
        .membros-table tbody {
            display: block;
            width: 100%;
        }
        
        .clubes-table tr,
        .membros-table tr {
            display: block;
            margin-bottom: 20px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 15px;
        }

        .clubes-table td,
        .membros-table td {
            display: block;
            text-align: left;
            padding: 8px 0;
            border: none;
            white-space: normal;
            word-wrap: break-word;
        }
        
        .clubes-table td::before,
        .membros-table td::before {
            display: block;
        }

        .clubes-table td:first-child {
            font-weight: 700;
            font-size: 1.1em;
            color: var(--primary-color);
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }

        .clubes-table td:last-child > div {
            flex-direction: row !important;
            gap: 0.5rem !important;
            justify-content: center !important;
        }

        .clubes-table td:last-child .action-btn {
            flex: 1;
            min-width: 40px;
        }
    }

/* --- Welcome Banner --- */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.welcome-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.welcome-icon {
    font-size: 4rem;
    opacity: 0.2;
}

/* --- Stat Cards Melhorados --- */
.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Info Cards --- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card-header i {
    font-size: 1.5rem;
}

.info-card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.info-card p {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-master {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-representante {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .welcome-content h2 {
        font-size: 1.4rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* --- Botão Ver --- */
.btn-view {
    background-color: #3498db;
    color: white;
}

.btn-view:hover {
    background-color: #2980b9;
}
.btn-back {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-back:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Botão Ver --- */
.btn-view {
    background-color: #3498db;
    color: white;
}

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

/* --- Visualização de Clube --- */
.clube-detalhes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.clube-header-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.clube-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.clube-header-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.clube-header-info p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.clube-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.clube-info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.clube-stats-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon-small {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-value-small {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-label-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.clube-membros-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.section-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.membro-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-base);
}

.membro-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.membro-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.membro-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.membro-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .clube-header-card {
        flex-direction: column;
        text-align: center;
    }
    
    .clube-header-info h2 {
        font-size: 1.5rem;
    }
    
    .clube-info-grid {
        grid-template-columns: 1fr;
    }
    
    .membros-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-back {
        padding: 0.5rem;
    }
    
    .btn-back span {
        display: none;
    }
}


/* --- Loading Overlay (6) --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    background: white;
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

/* --- Modal (7) --- */
.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: 9998;
    animation: fadeIn 0.2s ease;
}

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

.modal-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-base);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-body p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-footer button {
    min-width: 100px;
}

/* --- Search Container (11) --- */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: white;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 112, 157, 0.15);
}

/* --- Form Validation (8) --- */
.required {
    color: #e74c3c;
    font-weight: bold;
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

input.error,
select.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

input.success,
select.success {
    border-color: #2ecc71;
}

/* --- Sortable Table Headers (13) --- */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
}

th.sortable:hover {
    background-color: #e2e8f0;
}

th.sortable::after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    opacity: 0.3;
}

th.sortable.asc::after {
    content: '\f0de';
    opacity: 1;
}

th.sortable.desc::after {
    content: '\f0dd';
    opacity: 1;
}

/* --- Pagination (12) --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--text-main);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

/* --- Mobile Improvements (18) --- */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    .member-input {
        padding: 1rem;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .password-input-container input {
        padding-right: 3.5rem;
    }
    
    .toggle-password {
        font-size: 1.4rem;
        width: 40px;
        height: 40px;
        right: 0.5rem;
    }
    
    .form-grid {
        gap: 1.25rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
}
