/* Modern Tabbed Design - Claude Sonnet Style */

/* Tabs Container */
.tabs-container-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 2rem;
}

/* Tab Navigation */
.tab-navigation-modern {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.tab-button-modern {
    flex: 1;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button-modern:hover {
    background: #f1f5f9;
    color: #475569;
}

.tab-button-modern.active {
    color: #2563eb;
    background: white;
}

.tab-button-modern.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
}

.tab-button-modern i {
    font-size: 1.25rem;
}

.tab-badge-modern {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.tab-badge-modern.inactive {
    background: #94a3b8;
}

/* Tab Content */
.tab-content-modern {
    display: none;
    padding: 2rem;
}

.tab-content-modern.active {
    display: block;
}

/* Action Cards Grid */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card-modern {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.action-card-modern:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.action-card-icon-modern {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.action-card-title {
    color: #1e293b;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.action-card-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex: 1;
}

.action-btn-modern {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn-modern:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* New Assignments Section */
.new-assignments-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title-inline {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-inline i {
    color: #2563eb;
}

.assignment-list-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignment-item-simple {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.assignment-name-simple {
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.sync-btn-small {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sync-btn-small:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.empty-state-simple {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.empty-state-simple i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Grades Tab Styles */
.grades-header-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.grades-info-modern h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.grades-info-modern p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.grades-actions-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.checkbox-group-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.checkbox-group-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.info-icon-modern {
    color: #64748b;
    cursor: help;
    font-size: 1rem;
}

.sync-grades-btn-modern {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-grades-btn-modern:hover:not(:disabled) {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sync-grades-btn-modern:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Assignment List */
.assignment-list-modern {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.list-header-modern {
    background: #f8fafc;
    padding: 0.875rem 1rem;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.assignment-items-container {
    /* Container for assignment items */
}

.assignment-item-modern {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

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

.assignment-item-modern:hover {
    background: #f8fafc;
}

.assignment-item-modern.selected {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
}

.assignment-item-modern.synced {
    opacity: 0.6;
}

.assignment-item-modern.not-synced {
    opacity: 0.6;
}

.checkbox-cell-modern {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-modern {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}

.assignment-name-cell-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assignment-name-modern {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.synced-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.875rem;
}

.synced-icon {
    color: #10b981;
}

.pending-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 500;
}

.pending-icon {
    color: #f59e0b;
}

.list-footer-modern {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.selection-count-modern {
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

.count-number-modern {
    color: #2563eb;
    font-weight: 700;
}

.select-all-btn-modern {
    background: transparent;
    color: #2563eb;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.select-all-btn-modern:hover {
    background: #eff6ff;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-navigation-modern {
        overflow-x: auto;
    }
    
    .tab-button-modern {
        flex: 0 0 auto;
        min-width: 150px;
        padding: 1rem 1.5rem;
    }
    
    .action-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .grades-header-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grades-actions-modern {
        align-items: flex-start;
        width: 100%;
    }
    
    .sync-grades-btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .assignment-item-simple {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sync-btn-small {
        width: 100%;
        justify-content: center;
    }
}
