/* LMS Student Portal Styles */

.lms-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    width: fit-content;
}

.lms-tabs button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--secondary);
    font-size: 0.9rem;
}

.lms-tabs button:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.lms-tabs button.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.lms-tabs button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 79, 156, 0.25);
}

.lms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.lms-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.lms-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px -10px rgba(30, 79, 156, 0.15);
    border-color: white;
}

.card-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.accent-material {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.accent-activity {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.accent-quiz {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.lms-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.lms-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lms-icon-box.material {
    background: #ecfdf5;
    color: #10b981;
}

.lms-icon-box.activity {
    background: #fffbeb;
    color: #f59e0b;
}

.lms-icon-box.quiz {
    background: #f5f3ff;
    color: #8b5cf6;
}

.lms-card-content h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.lms-date {
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lms-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.lms-attachments {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.attachment-pill:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.empty-state-lms {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    text-align: center;
}

.empty-state-lms i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state-lms h3 {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 5px;
}

.empty-state-lms p {
    color: #94a3b8;
}