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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navbar estilo Gmail */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 45px;
    height: 45px;
}

.nav-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.nav-right {
    display: flex;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #5f6368;
    transition: background 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    background: #f1f3f4;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Login Page */
.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.logo {
    margin-bottom: 20px;
}

.logo-image {
    width: 120px;
    height: 120px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-box h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.btn-secondary {
    background: #f1f3f4;
    color: #5f6368;
}

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

.btn-report {
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.btn-report:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e8eaed;
    color: #4285f4;
}

/* Form Card */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.form-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4285f4;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Notification */
.notification {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #34a853;
    animation: slideIn 0.3s ease;
}

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

.notification .material-icons {
    color: #34a853;
    font-size: 28px;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.notification-content p {
    color: #666;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.notification-close:hover {
    color: #333;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .material-icons {
    font-size: 32px;
    color: white;
}

.stat-info h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* Panel Section */
.panel-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 30px;
}

.panel-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.report-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
    color: #5f6368;
    font-size: 14px;
    border-bottom: 2px solid #e8eaed;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e8eaed;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.table-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.table-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-photo-placeholder .material-icons {
    color: #9aa0a6;
    font-size: 24px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-membro {
    background: #d4edda;
    color: #155724;
}

.badge-visitante {
    background: #fff3cd;
    color: #856404;
}

.badge-congregado {
    background: #f8d7da;
    color: #721c24;
}

/* Ficha de Impressão */
.ficha-container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ficha-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #4285f4;
    padding-bottom: 20px;
}

.ficha-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.ficha-header p {
    color: #666;
}

.ficha-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.ficha-foto img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #e8eaed;
}

.foto-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f1f3f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ficha-field label {
    display: block;
    font-weight: 500;
    color: #5f6368;
    font-size: 13px;
    margin-bottom: 5px;
}

.field-value {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
}

.ficha-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e8eaed;
    color: #666;
    font-size: 13px;
}

/* Report */
.report-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 30px;
    text-align: center;
}

.report-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
    margin-bottom: 15px;
}

.report-table {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ficha-content {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .report-buttons {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: white;
    }
    
    .navbar,
    .no-print {
        display: none !important;
    }
    
    .ficha-container {
        box-shadow: none;
        margin: 0;
    }
}

/* Logo na ficha de impressão */
.ficha-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
}

/* Módulos de navegação */
.admin-nav-center {
    display: flex;
    gap: 10px;
}

.nav-module {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    background: rgba(255,255,255,0.1);
}

.nav-module:hover {
    background: rgba(255,255,255,0.2);
}

.nav-module.active {
    background: rgba(255,255,255,0.3);
    font-weight: 500;
}

/* Estilos do módulo financeiro */
.financial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.summary-card.entrada {
    background: linear-gradient(135deg, #34a853 0%, #2d8e47 100%);
}

.summary-card.saida {
    background: linear-gradient(135deg, #ea4335 0%, #d33426 100%);
}

.summary-card.saldo {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
}

.summary-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.summary-card .value {
    font-size: 32px;
    font-weight: bold;
}

.transaction-list {
    list-style: none;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e8eaed;
    transition: background 0.2s;
}

.transaction-item:hover {
    background: #f8f9fa;
}

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

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.transaction-meta {
    font-size: 13px;
    color: #666;
}

.transaction-value {
    font-size: 18px;
    font-weight: bold;
}

.transaction-value.entrada {
    color: #34a853;
}

.transaction-value.saida {
    color: #ea4335;
}

.transaction-actions {
    display: flex;
    gap: 8px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8eaed;
}

.filter-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: #4285f4;
}

.filter-tab.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
    font-weight: 500;
}

.recibo-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border: 2px solid #e8eaed;
}

.recibo-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4285f4;
}

.recibo-body {
    margin-bottom: 30px;
}

.recibo-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8eaed;
}

.recibo-label {
    font-weight: 500;
    color: #666;
}

.recibo-value {
    color: #333;
}

.recibo-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e8eaed;
    text-align: center;
}

@media (max-width: 768px) {
    .admin-nav-center {
        display: none;
    }
    
    .financial-summary {
        grid-template-columns: 1fr;
    }
}
