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

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: normal;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 10px;
}


/* Dashboard Admin */
/* Correções específicas para Dashboard */
.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-dashboard .form-card {
    max-width: 100%;
}

.admin-dashboard .users-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-dashboard .users-table th,
.admin-dashboard .users-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #2c3e50;
}

.admin-dashboard .users-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(44, 62, 80, 0.88);
    background: #f8f9fa;
}

.admin-dashboard .users-table thead th:first-child {
    border-top-left-radius: 10px;
}

.admin-dashboard .users-table thead th:last-child {
    border-top-right-radius: 10px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header h2 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.dashboard-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Grid de Estatísticas Melhorado */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), transparent);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

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

.stat-card.pending {
    border-left-color: #f39c12;
}

.stat-card.published {
    border-left-color: #27ae60;
}

.stat-card.visitors {
    border-left-color: #3498db;
}

.stat-card.revenue {
    border-left-color: #e74c3c;
}

.stat-card.week-visitors {
    border-left-color: #9b59b6;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.stat-card.pending .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.stat-card.published .stat-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.stat-card.visitors .stat-icon {
    background: linear-gradient(135deg, #3498db, #5dade2);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.stat-card.revenue .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.stat-card.week-visitors .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.stat-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.stat-info h3 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1;
}

.stat-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seções de Gráficos e Atividades */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container .form-card {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.chart-container .form-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-section {
    margin-bottom: 2rem;
}

.activity-section .form-card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.activity-section .form-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.activity-list {
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: #f8f9fa;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 8px;
}

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

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.activity-content small {
    color: #7f8c8d;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .chart-container .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.admin-login {
    background: transparent;
    color: var(--text);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.login-header h1,
.login-card h1 {
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-header h2,
.login-card h2 {
    color: rgba(255, 255, 255, 0.70);
}

.login-form label {
    color: rgba(255, 255, 255, 0.82);
}

.login-form input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.login-form input:focus {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.14);
}

.btn-login,
.login-form button[type="submit"] {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(0, 212, 255, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-login:hover,
.login-form button[type="submit"]:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.dashboard-header {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.60), rgba(0, 212, 255, 0.25));
    background-size: 300% 300%;
    animation: gradientShift 16s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.stat-info h3 {
    color: rgba(255, 255, 255, 0.92);
}

.stat-info p {
    color: rgba(255, 255, 255, 0.62);
}

.payments-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.payments-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payments-dashboard .stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
}

.payments-dashboard .stat-label {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
}

.payments-dashboard .users-section {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.payments-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

.payments-dashboard th,
.payments-dashboard td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
}

.payments-dashboard th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.66);
}

.payments-dashboard .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.payments-dashboard .badge-paid {
    background: rgba(34, 197, 94, 0.12);
}

.payments-dashboard .badge-expiring {
    background: rgba(245, 158, 11, 0.12);
}

.payments-dashboard .badge-overdue {
    background: rgba(229, 9, 20, 0.12);
}

.payments-dashboard .badge-never-paid {
    background: rgba(255, 255, 255, 0.08);
}

.payments-dashboard .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.payments-dashboard .btn-primary {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(0, 212, 255, 0.55));
}

.payments-dashboard .btn-success {
    background: rgba(34, 197, 94, 0.22);
}

.payments-dashboard .btn-danger {
    background: rgba(229, 9, 20, 0.22);
}

.payments-dashboard .btn-warning {
    background: rgba(245, 158, 11, 0.22);
}

.payments-dashboard .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.payments-dashboard .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    padding: 16px;
}

.payments-dashboard .modal-content {
    background: rgba(10, 10, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
    margin: 10vh auto 0;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
}

.payments-dashboard .close {
    color: rgba(255, 255, 255, 0.65);
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}

.payments-dashboard .close:hover {
    color: rgba(255, 255, 255, 0.92);
}

.payments-dashboard .form-group input,
.payments-dashboard .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
}
