/* _content/GIDMS/Components/Layout/MainLayout.razor.rz.scp.css */

/*:root {
    --gidms-primary: #0A4C75;
    --gidms-primary-dark: #083a59;
    --gidms-accent: #26a69a;
    --gidms-bg: #f5f7fa;
    --gidms-text-main: #263238;
    --gidms-text-muted: #78909c;
    --gidms-border: #e0e0e0;
    --gidms-radius-lg: 16px;
    --gidms-radius-pill: 999px;
    --gidms-shadow-soft: 0 4px 18px rgba(15, 23, 42, 0.12);
    --bottom-nav-height: 56px;
    --bottom-subnav-height: 60px;
    --online-color: #2e7d32;
    --offline-color: #c62828;
    --slow-color: #f57c00;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--gidms-bg);
}

.rtl-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    direction: rtl;
    background: var(--gidms-bg);
}

.app-header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--gidms-border);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
    z-index: 1020;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.app-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gidms-primary);
}

.app-subtitle {
    font-size: .75rem;
    color: #607d8b;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-notifications {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.icon-badge {
    position: relative;
    border: none;
    background: none;
    padding: .3rem;
    border-radius: var(--gidms-radius-pill);
    cursor: pointer;
    color: #455a64;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, transform .12s ease;
}

    .icon-badge i {
        font-size: 1.2rem;
    }

    .icon-badge:hover {
        background: #eceff1;
        transform: translateY(-1px);
    }

.soft-icon {
    background: #f5f7fa;
}

    .soft-icon:hover {
        background: #e0e7ec;
    }

.badge-count {
    position: absolute;
    top: -2px;
    left: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: var(--gidms-radius-pill);
    background: #e53935;
    color: #fff;
    font-size: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #fff;
}*/

/* Connection Status Styles */
/*.connection-status {
    position: relative;
}

.connection-btn {
    position: relative;
}

    .connection-btn.online {
        color: var(--online-color);
    }

    .connection-btn.offline {
        color: var(--offline-color);
    }

    .connection-btn.slow {
        color: var(--slow-color);
    }

.connection-alert {
    background: var(--offline-color);
    font-size: 0.7rem;
    padding: 0 4px;
    min-width: 14px;
    height: 14px;
    top: -1px;
    left: -1px;
}

.connection-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: -60px;
    width: 280px;
    background: #fff;
    border-radius: var(--gidms-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 1px solid var(--gidms-border);
    z-index: 2001;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

    .connection-panel.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.connection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gidms-border);
    background: #f5f7fa;
    font-weight: 500;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--gidms-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .refresh-btn:hover {
        background: rgba(10, 76, 117, 0.1);
    }

.connection-body {
    padding: 0.75rem;
}

.connection-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.status-label {
    color: #78909c;
}

.status-value {
    font-weight: 500;
}

.status-good {
    color: var(--online-color);
}

.status-bad {
    color: var(--offline-color);
}

.ping-value {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .ping-value.slow {
        color: var(--slow-color);
    }

    .ping-value.very-slow {
        color: var(--offline-color);
    }

.connection-error {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #ffebee;
    border-radius: 4px;
    border-right: 3px solid var(--offline-color);
    font-size: 0.8rem;
    color: #b71c1c;
}

.connection-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-top: 1px solid var(--gidms-border);
    background: #fafafa;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--gidms-border);
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .btn-small:hover {
        background: #f5f5f5;
    }

    .btn-small.primary {
        background: var(--gidms-primary);
        color: white;
        border-color: var(--gidms-primary);
    }

        .btn-small.primary:hover {
            background: var(--gidms-primary-dark);
        }

.header-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .6rem;
    border-radius: var(--gidms-radius-pill);
    background: #f5f7fa;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

    .header-user:hover {
        background: #e0e7ec;
        box-shadow: 0 0 0 1px rgba(10,76,117,.16);
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--gidms-radius-pill);
    background: linear-gradient(135deg,var(--gidms-primary),var(--gidms-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gidms-text-main);
}

.user-role {
    font-size: .7rem;
    color: var(--gidms-text-muted);
}*/

/* کلاس مخفی‌کننده در موبایل */
/*.d-none {
    display: none !important;
}

.d-md-flex {
    display: flex !important;
}

.app-main {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-subnav-height) + 12px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.messages-dropdown {
    position: relative;
}*/

/* ✅ Panel: never overflow screen */
/*.messages-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: -60px;
    width: 280px;
    max-width: min(280px, calc(100vw - 24px));*/ /* ✅ clamps inside viewport */
    /*max-height: 280px;
    background: #fff;
    border-radius: var(--gidms-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 1px solid var(--gidms-border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 2000;
}*/

    /* show */
    /*.messages-panel.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }*/

/* ✅ if panel would go out on right, flip to left */
/*.messages-dropdown.flip-left .messages-panel {
    right: auto;
    left: 0;
}*/

/* ✅ small screens: center under icon (no right:-40px) */
/*@media (max-width: 767.98px) {
    .messages-panel {
        right: 50%;
        transform: translate(50%, 10px);
        width: min(420px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

        .messages-panel.show {
            transform: translate(50%, 0);
        }

    .messages-dropdown.flip-left .messages-panel {
        left: 50%;
        right: auto;
        transform: translate(50%, 10px);
    }

        .messages-dropdown.flip-left .messages-panel.show {
            transform: translate(50%, 0);
        }

    .connection-panel {
        left: 50%;
        transform: translate(-50%, 10px);
        width: min(320px, calc(100vw - 20px));
    }

        .connection-panel.show {
            transform: translate(-50%, 0);
        }*/
    /* در موبایل فقط آواتار نمایش داده شود */
    /*.user-info {
        display: none !important;
    }

    .header-user {
        padding: .25rem;
    }
}


.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    background: #f5f7fa;
    border-bottom: 1px solid var(--gidms-border);
    font-size: .85rem;
    font-weight: 500;
}

.messages-count {
    font-size: .75rem;
    color: #e53935;
}

.messages-list {
    max-height: 260px;
    overflow-y: auto;
}

.message-item {
    padding: .55rem .75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .message-item:last-child {
        border-bottom: none;
    }

    .message-item.unread {
        background: #fff8e1;
    }

    .message-item:hover {
        background: #f5f5f5;
    }

.message-title {
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: .15rem;
    color: #37474f;
}

.message-meta {
    font-size: .7rem;
    color: #90a4ae;
}*/

/* ✅ NEW: pill for calibration items */
/*.cal-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    margin-left: 6px;
    font-family: Vazirmatn, IRANSans, "Segoe UI", Tahoma, Arial, sans-serif;
    color: #b45309;
    background: rgba(245,158,11,.14);
    border: 1px solid rgba(245,158,11,.22);
}

.messages-footer {
    padding: .45rem .75rem;
    border-top: 1px solid var(--gidms-border);
    background: #fafafa;
    text-align: center;
}

.messages-link {
    font-size: .8rem;
    color: var(--gidms-primary);
    text-decoration: none;
}

    .messages-link:hover {
        text-decoration: underline;
    }

.empty-state {
    padding: 14px 12px;
    text-align: center;
}

.empty-title {
    font-size: .85rem;
    font-weight: 600;
    color: #37474f;
}

.empty-sub {
    margin-top: 4px;
    font-size: .75rem;
    color: #90a4ae;
}

.user-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 2050;
}

    .user-modal-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

.user-modal {
    background: #fff;
    border-radius: var(--gidms-radius-lg);
    width: 420px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
    padding: .9rem 1rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.user-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gidms-border);
    padding-bottom: .35rem;
}

.user-modal-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gidms-primary);
}

.user-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: .15rem;
    color: var(--gidms-text-muted);
    border-radius: var(--gidms-radius-pill);
}

    .user-modal-close:hover {
        background: #eceff1;
    }

.user-modal-body {
    max-height: 260px;
    overflow-y: auto;
    padding: .35rem 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.user-profile-main {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.user-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--gidms-radius-pill);
    background: linear-gradient(135deg,var(--gidms-primary),var(--gidms-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.user-profile-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--gidms-text-main);
}

.user-profile-role {
    font-size: .78rem;
    color: var(--gidms-text-muted);
}

.user-profile-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    color: #4caf50;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
}

.user-profile-section {
    border-radius: 12px;
    background: #f5f7fa;
    padding: .6rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.user-profile-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .78rem;
}

.user-field-label {
    color: #90a4ae;
}

.user-field-value {
    color: #37474f;
    font-weight: 500;
    text-align: left;
    direction: ltr;
}

.user-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid var(--gidms-border);
    padding-top: .35rem;
}

.user-modal-btn {
    border-radius: var(--gidms-radius-pill);
    padding: .3rem .9rem;
    font-size: .8rem;
    cursor: pointer;
    border: none;
}

    .user-modal-btn.secondary {
        background: #eceff1;
        color: #37474f;
    }

    .user-modal-btn.primary-link {
        background: var(--gidms-primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        text-decoration: none;
    }*/

/* Toast */
/*.toast-stack {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 14px);
    right: 14px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    width: 320px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    border-radius: 14px;
    padding: 10px 12px;
    pointer-events: auto;
    animation: toastIn .18s ease;
}

.toast-title {
    font-size: .85rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 4px;
}

.toast-body {
    font-size: .78rem;
    color: #607d8b;
    line-height: 1.35;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* scrollbar */
/*.app-main, .messages-list, .user-modal-body, .connection-body {
    scrollbar-width: thin;
    scrollbar-color: var(--gidms-primary) #f1f5f9;
}

    .app-main::-webkit-scrollbar, .messages-list::-webkit-scrollbar,
    .user-modal-body::-webkit-scrollbar, .connection-body::-webkit-scrollbar {
        width: 6px;
    }

    .app-main::-webkit-scrollbar-track, .messages-list::-webkit-scrollbar-track,
    .user-modal-body::-webkit-scrollbar-track, .connection-body::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: var(--gidms-radius-pill);
    }

    .app-main::-webkit-scrollbar-thumb, .messages-list::-webkit-scrollbar-thumb,
    .user-modal-body::-webkit-scrollbar-thumb, .connection-body::-webkit-scrollbar-thumb {
        background: var(--gidms-primary);
        border-radius: var(--gidms-radius-pill);
    }

        .app-main::-webkit-scrollbar-thumb:hover, .messages-list::-webkit-scrollbar-thumb:hover,
        .user-modal-body::-webkit-scrollbar-thumb:hover, .connection-body::-webkit-scrollbar-thumb:hover {
            background: var(--gidms-primary-dark);
        }

@media (max-width: 767.98px) {
    .app-header {
        padding: 0 .75rem;
        height: 60px;
    }

    .app-logo {
        width: 48px;
        height: 48px;
    }

    .app-subtitle {
        display: none;
    }

    .messages-panel {
        right: -40px;
        width: calc(100vw - 40px);
    }

    .user-modal {
        width: 100%;
        max-width: 100%;
        margin: 0 .75rem .75rem;
        align-self: flex-end;
        border-radius: 18px;
    }

    .user-modal-backdrop.show {
        align-items: flex-end;
    }

    .toast-stack {
        right: 10px;
        left: 10px;
        bottom: calc(var(--bottom-nav-height) + 10px);
    }

    .toast-item {
        width: 100%;
    }
}*/

/* _content/GIDMS/Components/Layout/NavMenu.razor.rz.scp.css */
/* _content/GIDMS/Components/Pages/Dashboard.razor.rz.scp.css */

.dashboard-card[b-98krrx919k] {
    transition: transform 0.2s;
    height: 100%;
}

.dashboard-card:hover[b-98krrx919k] {
    transform: translateY(-5px);
}

.discipline-badge[b-98krrx919k] {
    font-size: 0.75rem;
}

.meeting-status-1[b-98krrx919k] {
    background-color: #6c757d;
    color: white;
}

.meeting-status-2[b-98krrx919k] {
    background-color: #28a745;
    color: white;
}

.meeting-status-3[b-98krrx919k] {
    background-color: #17a2b8;
    color: white;
}

.meeting-status-4[b-98krrx919k] {
    background-color: #dc3545;
    color: white;
}

.meeting-status-5[b-98krrx919k] {
    background-color: #ffc107;
    color: black;
}

.school-header[b-98krrx919k] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.school-name[b-98krrx919k] {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.school-info[b-98krrx919k] {
    font-size: 1rem;
    opacity: 0.9;
}

.school-icon[b-98krrx919k] {
    font-size: 3rem;
    opacity: 0.8;
}
