/* Estilos específicos para o Dashboard principal */

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card:nth-child(1) {
    border-top: 4px solid var(--primary);
}

.stat-card:nth-child(2) {
    border-top: 4px solid var(--secondary);
}

.stat-card:nth-child(3) {
    border-top: 4px solid #4CD964;
}

.stat-card:nth-child(4) {
    border-top: 4px solid #FFD166;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 15px;
}

.stat-change {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.stat-change.positive {
    color: #4CD964;
}

.stat-change.negative {
    color: #FF3B30;
}

.stat-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: var(--light-orange);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background-color: var(--light-blue);
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background-color: rgba(76, 217, 100, 0.15);
    color: #4CD964;
}

.stat-card:nth-child(4) .stat-icon {
    background-color: rgba(255, 209, 102, 0.15);
    color: #FFD166;
}

/* Charts Section */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-box {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-btn {
    background-color: var(--light-gray);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chart-btn:hover, .chart-btn.active {
    background-color: var(--primary);
    color: white;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Members List */
.members-container {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    color: var(--gray);
    font-weight: 500;
    font-size: 14px;
}

.members-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.member-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 10px;
}

.member-info {
    display: flex;
    align-items: center;
}

.member-name {
    font-weight: 500;
}

.member-plan {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.plan-premium {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.plan-basic {
    background-color: rgba(42, 92, 170, 0.1);
    color: var(--secondary);
}