/* SmoothMaths Member Dashboard Styles */
.smoothmaths-member-dashboard {
    max-width: 1000px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.order-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e1e5e9;
}

.order-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
}

.order-date {
    color: #718096;
    font-size: 14px;
}

.products-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-header {
    padding: 15px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.product-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.product-content {
    padding: 20px;
}

.material-section {
    margin-bottom: 20px;
}

.material-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .icon {
    font-size: 18px;
    margin-right: 8px;
}

.section-header strong {
    color: #2d3748;
    font-size: 14px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.question-btn {
    background: #4299e1;
    color: white;
}

.question-btn:hover {
    background: #3182ce;
    color: white;
    text-decoration: none;
}

.answer-btn {
    background: #48bb78;
    color: white;
}

.answer-btn:hover {
    background: #38a169;
    color: white;
    text-decoration: none;
}

.btn-icon {
    margin-right: 6px;
}

.printing-info {
    background: #edf2f7;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.print-icon {
    margin-right: 6px;
}

.status-indicator {
    margin-top: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed,
.status-question-paper---print-requested { 
    background: #c6f6d5; 
    color: #22543d; 
}

.status-processing,
.status-print-requested { 
    background: #fef5e7; 
    color: #c05621; 
}

.status-pending,
.status-not-required { 
    background: #e2e8f0; 
    color: #4a5568; 
}

.status-print-failed {
    background: #fed7d7;
    color: #c53030;
}

.access-note {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h4 {
    color: #2d3748;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #718096;
    margin: 0;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dashboard-header {
        margin: 0 -15px 30px -15px;
        border-radius: 0;
    }
}

/* Secure answer page styles */
.smoothmaths-secure-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.access-denied {
    text-align: center;
    padding: 60px 20px;
    background: #fed7d7;
    border-radius: 12px;
    color: #c53030;
}

.access-denied h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
}

.access-denied p {
    margin: 0;
    font-size: 16px;
}

.pdf-container {
    width: 100%;
    height: 800px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-embed {
    width: 100%;
    height: 100%;
}

.download-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.download-link:hover {
    background: #3182ce;
    color: white;
    text-decoration: none;
}

.download-icon {
    margin-right: 8px;
}
