/* ===== باکس ماموریت‌ها ===== */
.assignments-box{
    background:linear-gradient(135deg, #f5f3ff, #ede9fe);
    border:2px solid #8b5cf6;
    border-radius:20px;
    padding:24px;
    margin-bottom:30px;
    box-shadow:0 8px 24px rgba(139,92,246,.15);
}
.assignments-header{
    margin-bottom:20px;
}
.assignments-title{
    margin:0;
    font-size:22px;
    color:#4c1d95;
}
.assignments-subtitle{
    margin:4px 0 0;
    font-size:13px;
    color:#6d28d9;
}

.assignments-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:16px;
}

.assignment-card{
    background:#fff;
    border-radius:14px;
    padding:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    border-right:5px solid #8b5cf6;
    display:flex;
    flex-direction:column;
    transition:transform .2s, box-shadow .2s;
}
.assignment-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}
.assignment-card.is-completed{
    border-right-color:#10b981;
    background:linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.assignment-card-header{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
    font-size:11px;
}
.assignment-teacher{
    background:#ddd6fe;
    color:#5b21b6;
    padding:3px 8px;
    border-radius:6px;
    font-weight:600;
}
.assignment-classroom{
    background:#e0f2fe;
    color:#075985;
    padding:3px 8px;
    border-radius:6px;
    font-weight:600;
}

.assignment-title{
    margin:0 0 8px;
    font-size:16px;
    color:#111827;
    font-weight:700;
}
.assignment-check{
    color:#10b981;
    margin-left:4px;
}

.assignment-description{
    margin:0 0 12px;
    font-size:13px;
    color:#6b7280;
    line-height:1.6;
}

.assignment-content{
    display:flex;
    align-items:center;
    gap:10px;
    background:#f9fafb;
    padding:8px;
    border-radius:8px;
    margin-bottom:12px;
}
.assignment-content-cover{
    width:44px;
    height:44px;
    object-fit:cover;
    border-radius:6px;
}
.assignment-content-icon{
    width:44px;
    height:44px;
    background:#e5e7eb;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}
.assignment-content-info{
    flex:1;
    min-width:0;
}
.assignment-content-title{
    margin:0;
    font-size:13px;
    font-weight:700;
    color:#111827;
}
.assignment-content-type{
    margin:2px 0 0;
    font-size:11px;
    color:#6b7280;
}

.assignment-deadline{
    background:#f3f4f6;
    color:#4b5563;
    padding:6px 10px;
    border-radius:6px;
    font-size:12px;
    font-weight:600;
    margin-bottom:12px;
}
.assignment-deadline.is-urgent{
    background:#fee2e2;
    color:#991b1b;
    animation:pulse 2s infinite;
}
@keyframes pulse{
    0%, 100%{opacity:1;}
    50%{opacity:.75;}
}

.assignment-action{
    display:block;
    margin-top:auto;
    background:linear-gradient(135deg, #8b5cf6, #ec4899);
    color:#fff;
    padding:10px;
    border-radius:8px;
    text-align:center;
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    box-shadow:0 3px 10px rgba(139,92,246,.3);
    transition:transform .2s, box-shadow .2s;
}
.assignment-action:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(139,92,246,.4);
}

.assignment-note{
    margin-top:auto;
    background:#fef3c7;
    color:#78350f;
    padding:10px;
    border-radius:8px;
    text-align:center;
    font-size:12px;
    font-weight:600;
}

@media (max-width:640px){
    .assignments-grid{
        grid-template-columns:1fr;
    }
    .assignments-box{
        padding:16px;
        margin-bottom:20px;
    }
}