/* Moved from student/layouts/base.blade.php inline styles */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

[dir="rtl"] .form-group label,
[dir="rtl"] .form-label,
[dir="rtl"] .v2-search-form label { text-align: right; }
[dir="rtl"] .form-control,
[dir="rtl"] .input-field input { text-align: right; }
[dir="ltr"] .form-group label,
[dir="ltr"] .form-label,
[dir="ltr"] .v2-search-form label { text-align: left; }
[dir="ltr"] .form-control,
[dir="ltr"] .input-field input { text-align: left; }
[dir="ltr"] .tab-inn table td,
[dir="ltr"] .tab-inn table th { text-align: left; }
[dir="ltr"] .inn-title h3,
[dir="ltr"] .inn-title h4,
[dir="ltr"] .inn-title h5 { text-align: left; }

@media (min-width: 992px) {
    .uni-top-menu-icon { display: none !important; }
}

.main-menu ul li.cour-menu { position: relative; }
.main-menu ul li.cour-menu:hover .cour-mm,
.main-menu ul li.cour-menu .mm-pos:hover .cour-mm { display: block !important; }
.main-menu ul li.cour-menu .mm-pos .m-menu { min-width: 220px; }
a[href^="mailto:"] { text-transform: none !important; }

.ed-top,
.ed-top .container,
.ed-top .row,
.ed-top .col-md-12,
.ed-com-t1-right,
.ed-com-t1-right ul,
.ed-com-t1-right ul li {
    overflow: visible !important;
}

.student-notifications-dropdown,
.student-notifications-dropdown .dropdown-menu {
    z-index: 10000 !important;
}
.student-notifications-dropdown[open] .student-notifications-menu,
.student-notifications-dropdown:hover .student-notifications-menu,
.student-notifications-dropdown:focus-within .student-notifications-menu {
    display: block !important;
}
.student-notifications-dropdown > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    list-style: none;
}
.student-notifications-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.student-notifications-dropdown > summary::-webkit-details-marker {
    display: none;
}
.student-notifications-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    z-index: 10002;
    pointer-events: none;
    background: #e53e3e;
    color: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.28);
}
[dir="rtl"] .student-notifications-menu { direction: rtl; text-align: right; }
[dir="ltr"] .student-notifications-menu { direction: ltr; text-align: left; }

.student-notification-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    color: #173042;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.92);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.student-notification-card:hover {
    background: #eaf4fb;
    color: #0f172a;
    text-decoration: none;
}
.student-notification-card__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d5d73, #3b82f6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(45, 93, 115, 0.14);
}
.student-notification-card__content { flex: 1; min-width: 0; }
.student-notification-card__title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 2px;
    color: #173042;
    word-break: break-word;
}
.student-notification-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6b7280;
}
.student-notifications-empty {
    padding: 14px 16px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
}

#student-notifications-menu-portal {
    display: none;
    position: fixed;
    min-width: 320px;
    max-width: 420px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 99999;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef5fb 100%);
    border: 1px solid #d7e3ec;
    box-shadow: 0 10px 24px rgba(15,23,42,0.18);
    border-radius: 14px;
    padding: 8px;
}
[dir="rtl"] #student-notifications-menu-portal { direction: rtl; text-align: right; }
[dir="ltr"] #student-notifications-menu-portal { direction: ltr; text-align: left; }
#student-notifications-menu-portal ul { list-style: none; margin: 0; padding: 0; }
#student-notifications-menu-portal li { border-bottom: 1px solid #e5edf3; }
[dir="rtl"] .student-notification-card--portal { flex-direction: row-reverse; }
[dir="ltr"] .student-notification-card--portal { flex-direction: row; }

/* Hide inline success flash when toast is shown */
.uni-flash--success { display: none !important; }
