.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stats-card h3 {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-card h3 i {
    color: var(--header-bg);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 8px 0;
}

.stats-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stats-link:hover {
    text-decoration: underline;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.activity-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-section h2,
.messages-section h2 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-section h2 i,
.messages-section h2 i {
    color: var(--header-bg);
}

.activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
}

.activity-table th,
.activity-table td {
    padding: 12px;
    text-align: left;
}

.activity-table th {
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
}

.activity-table td {
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.activity-table tr:hover td {
    background: var(--gray-50);
}

.messages-section {
    margin-top: 24px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.message:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-avatar.coach {
    background: var(--primary);
}

.message-avatar.team-manager {
    background: var(--success);
}

.message-avatar.franchise-admin {
    background: var(--gray-600);
}

.message-content {
    flex: 1;
}

.message-sender {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.message-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.reply-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.reply-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.charts-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: calc(50% - 12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reply-form {
    margin-top: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reply-header {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.reply-actions {
    display: flex;
    gap: 8px;
}

.reply-actions button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
}

.send-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.cancel-btn {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.cancel-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}
