/* ========================================
   Authentication & Enhanced Tasks Styles
   ======================================== */

/* Header Auth Section */
.header-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-gold), #e6a800);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.login-icon {
    font-size: 1.1rem;
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Login Modal */
.login-modal .modal-content {
    max-width: 400px;
}

/* Prevent dismissing login modal by clicking outside */
.login-modal {
    pointer-events: auto;
}

.login-modal.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.login-modal-content {
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), #e6a800);
    color: var(--bg-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.login-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.login-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-gold), #e6a800);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tasks Login Prompt */
.tasks-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.tasks-login-prompt .prompt-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tasks-login-prompt h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tasks-login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.login-prompt-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), #e6a800);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* ========================================
   Enhanced Kanban Board Styles
   ======================================== */

.tasks-content {
    padding: 0;
}

/* Tasks Toolbar */
.tasks-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tasks-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tasks-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-blue), #3a8fc2);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 168, 218, 0.4);
}

.tasks-search {
    position: relative;
}

.tasks-search input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    width: 250px;
    transition: all 0.3s ease;
}

.tasks-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    width: 300px;
}

.tasks-search .search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.tasks-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.chip-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.refresh-tasks-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.refresh-tasks-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(180deg);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    min-height: 600px;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.kanban-column.drag-over {
    background: rgba(77, 168, 218, 0.1);
    border-color: var(--accent-blue);
}

.kanban-column.not_started .column-header { border-left: 4px solid #6c757d; }
.kanban-column.accepted .column-header { border-left: 4px solid #4da8da; }
.kanban-column.in_progress .column-header { border-left: 4px solid #ffd700; }
.kanban-column.completed .column-header { border-left: 4px solid #00ff88; }

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.column-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-icon {
    font-size: 1.1rem;
}

.column-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

.column-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    overflow-y: auto;
    min-height: 200px;
    max-height: calc(100vh - 380px);
}

.empty-column {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.add-task-column-btn {
    padding: 0.75rem;
    margin: 0.5rem 1rem 1rem;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.add-task-column-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(77, 168, 218, 0.1);
}

/* Task Card */
.task-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.task-card.overdue {
    border-left: 3px solid var(--accent-red);
}

.task-card.completed {
    opacity: 0.7;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-priority-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.local-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.task-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #3a8fc2);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assignee-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-due {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.task-due.overdue {
    color: var(--accent-red);
}

.task-due.due-today,
.task-due.due-soon {
    color: var(--accent-gold);
}

.task-due.completed {
    color: var(--accent-green);
}

.due-icon {
    font-size: 0.7rem;
}

.task-progress {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-icon {
    font-size: 0.7rem;
}

/* Task Card Actions */
.task-card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
    gap: 0.25rem;
}

.task-card:hover .task-card-actions {
    display: flex;
}

.task-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.task-action-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.task-action-btn.delete:hover {
    background: rgba(233, 69, 96, 0.3);
}

/* Status Menu */
.status-menu {
    position: fixed;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-width: 160px;
}

.status-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.status-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-menu-item.active {
    background: rgba(77, 168, 218, 0.2);
    color: var(--accent-blue);
}

/* Task Form */
.task-form {
    padding: 1rem;
}

.form-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group.full-width {
    flex: 100%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), #3a8fc2);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 168, 218, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Task Detail */
.task-detail {
    padding: 1rem;
}

.task-detail-header {
    margin-bottom: 1.5rem;
}

.task-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-detail-title-row h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.4;
    flex: 1;
}

.priority-badge {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.task-status-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-option {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-option.active {
    font-weight: 600;
}

.task-detail-content {
    margin-bottom: 1.5rem;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section h4 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.overdue {
    color: var(--accent-red);
}

.detail-value.due-soon,
.detail-value.due-today {
    color: var(--accent-gold);
}

.priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.detail-text {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.task-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Task Notification */
.task-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.task-notification.success {
    border-left: 4px solid var(--accent-green);
}

.task-notification.error {
    border-left: 4px solid var(--accent-red);
}

.task-notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Task Modal */
.task-modal .modal-content {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

.task-modal-content {
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }

    .tasks-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tasks-toolbar-left,
    .tasks-toolbar-right {
        flex-wrap: wrap;
    }

    .tasks-search input {
        width: 100%;
    }

    .tasks-search input:focus {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-auth {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .login-btn span:not(.login-icon) {
        display: none;
    }

    .form-row {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .task-status-selector {
        flex-direction: column;
    }

    .status-option {
        text-align: center;
    }
}

/* ========================================
   No Data Message (Access Control)
   ======================================== */

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    max-width: 500px;
}

.no-data-message .no-data-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-data-message h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.no-data-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Student Personal Dashboard Styling */
.student-personal-view .cards-grid {
    justify-content: center;
}

.student-personal-view .student-card {
    max-width: 400px;
    transform: scale(1.05);
}

/* Pinned Card (Current Student's Card) */
.student-card.pinned-card {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Restricted Access Message (for students viewing other students) */
.restricted-access-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.restricted-access-message .restricted-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.restricted-access-message h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.restricted-access-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
}

/* ========================================
   Notification Bell & Panel Styles
   ======================================== */

.notification-bell-container {
    position: relative;
    margin-right: 1rem;
}

.notification-bell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.bell-icon {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notifications-header h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.mark-all-read-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(77, 168, 218, 0.1);
}

.notification-item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.25rem 0;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.no-notif-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.no-notifications p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Teacher select dropdown styling */
.teacher-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teacher-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.teacher-select option {
    background: #1a1a2e !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

/* Fix for all select dropdowns in forms */
.form-group select {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-group select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background-color: #2a2a4e !important;
    color: #ffffff !important;
}

/* Multi-select teacher dropdown */
.teacher-multiselect {
    position: relative;
    width: 100%;
}

.teacher-multiselect-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teacher-multiselect-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.teacher-multiselect-btn.active {
    border-color: var(--accent-gold);
}

.teacher-multiselect-btn .selected-count {
    background: var(--accent-blue);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.teacher-multiselect-btn .dropdown-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.teacher-multiselect-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.teacher-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.teacher-multiselect-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.teacher-multiselect-item:last-child {
    border-bottom: none;
}

.teacher-multiselect-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.teacher-multiselect-item.selected {
    background: rgba(77, 168, 218, 0.2);
}

.teacher-multiselect-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.teacher-multiselect-item label {
    flex: 1;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.95rem;
}

.teacher-multiselect-item .teacher-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    border-radius: 4px;
}

.selected-teachers-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selected-teacher-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(77, 168, 218, 0.2);
    color: var(--accent-blue);
    border-radius: 4px;
    font-size: 0.8rem;
}

.selected-teacher-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.9rem;
}

.selected-teacher-tag .remove-tag:hover {
    opacity: 1;
}

/* Stacked assignee avatars for multiple people */
.assignee-avatars-stack {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 0.25rem;
}

.assignee-avatar.stacked {
    margin-left: -8px;
    border: 2px solid var(--bg-secondary);
    box-sizing: content-box;
}

.assignee-avatar.stacked:first-child {
    margin-left: 0;
}

.assignee-avatar.more {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 0.55rem;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .notifications-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .notification-bell-container {
        margin-right: 0.5rem;
    }

    .notification-bell-btn {
        width: 36px;
        height: 36px;
    }
}
