/* Grammar Practice Section - Add to dashboard.css */

/* Grammar table styles */
.grammar-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.grammar-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.grammar-table thead {
    background: rgba(138, 79, 255, 0.1);
    border-bottom: 2px solid #5c3e17;
}

.grammar-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffd700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grammar-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(92, 62, 23, 0.3);
    color: #e5c98d;
}

.grammar-table tr:hover {
    background: rgba(92, 62, 23, 0.15);
}

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

/* Mini stats for grammar */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(92, 62, 23, 0.1);
    border-radius: 12px;
}

.mini-stat {
    text-align: center;
}

.mini-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.mini-label {
    display: block;
    font-size: 0.8rem;
    color: #e5c98d;
    opacity: 0.8;
}

/* Grammar stat card in quick stats */
.stat-card.grammar {
    background: linear-gradient(135deg, rgba(138, 79, 255, 0.1), rgba(192, 132, 252, 0.1));
    border-left: 4px solid #8a4fff;
}

/* Action button */
.card-action-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8a4fff, #c084fc);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 79, 255, 0.4);
}

/* Review session styling */
#grammarReviewList .activity-item {
    background: rgba(255, 140, 0, 0.05);
    border-left: 3px solid #ff8c00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grammar-table {
        font-size: 0.85rem;
    }
    
    .grammar-table th,
    .grammar-table td {
        padding: 0.5rem;
    }
    
    .mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
