/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-kvf74nhpe7] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-kvf74nhpe7] {
    flex: 1;
}

.sidebar[b-kvf74nhpe7] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-kvf74nhpe7] {
    background-color: #f7f7f7;
    border-bottom: 2px solid #667eea;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.left-header-section[b-kvf74nhpe7] {
    flex: 1;
    display: flex;
    align-items: center;
}

.right-header-section[b-kvf74nhpe7] {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Closer to navigation panel */
    padding-right: 0.5rem;
}

.school-title[b-kvf74nhpe7] {
    color: #667eea;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    padding-left: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

    .top-row[b-kvf74nhpe7]  a, .top-row[b-kvf74nhpe7]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-kvf74nhpe7]  a:hover, .top-row[b-kvf74nhpe7]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-kvf74nhpe7]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-kvf74nhpe7] {
        justify-content: space-between;
    }

    .top-row[b-kvf74nhpe7]  a, .top-row[b-kvf74nhpe7]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-kvf74nhpe7] {
        flex-direction: row;
    }

    .sidebar[b-kvf74nhpe7] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-kvf74nhpe7] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-kvf74nhpe7]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-kvf74nhpe7], article[b-kvf74nhpe7] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* User Info and Profile Dropdown Styles */
.user-info[b-kvf74nhpe7] {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 500;
}

/* Profile Dropdown Styles */
.profile-dropdown-container[b-kvf74nhpe7] {
    position: relative;
    z-index: 99999 !important;
}

.profile-dropdown-container:hover .profile-dropdown-menu[b-kvf74nhpe7] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-btn[b-kvf74nhpe7] {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 99999 !important;
    cursor: pointer;
}

.profile-btn:hover[b-kvf74nhpe7],
.profile-btn:focus[b-kvf74nhpe7],
.profile-btn:active[b-kvf74nhpe7] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.profile-avatar[b-kvf74nhpe7] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-avatar:hover[b-kvf74nhpe7] {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-dropdown-menu[b-kvf74nhpe7] {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    min-width: 180px !important;
    position: absolute !important;
    right: 0 !important;
    top: 50px !important;
    background-color: white !important;
    z-index: 999999 !important;
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.2s ease;
}

.dropdown-item[b-kvf74nhpe7] {
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover[b-kvf74nhpe7] {
    background-color: #f8f9fa;
    color: #495057;
}

.dropdown-item.text-danger:hover[b-kvf74nhpe7] {
    background-color: #f8d7da;
    color: #721c24;
}

.dropdown-divider[b-kvf74nhpe7] {
    margin: 8px 0;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-rgwqsdqak8] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-rgwqsdqak8] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-rgwqsdqak8] {
    font-size: 1.1rem;
}

.bi[b-rgwqsdqak8] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-rgwqsdqak8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-rgwqsdqak8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-rgwqsdqak8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-rgwqsdqak8] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-rgwqsdqak8] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-rgwqsdqak8] {
        padding-bottom: 1rem;
    }

    .nav-item[b-rgwqsdqak8]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-rgwqsdqak8]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-rgwqsdqak8]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-rgwqsdqak8] {
        display: none;
    }

    .collapse[b-rgwqsdqak8] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-rgwqsdqak8] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Chat.razor.rz.scp.css */
.chat-container[b-un7486pm36] {
  display: flex;
  height: calc(100vh - 120px);
}
.chat-list[b-un7486pm36] {
  width: 280px;
  border-right: 1px solid rgba(102,126,234,0.12); /* subtle border matching layout */
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  box-shadow: 0 0 0.5rem rgba(102,126,234,0.02);
}
.chat-list-header[b-un7486pm36] { padding: 12px; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.04); color: #333; }
.search-box[b-un7486pm36] { padding: 8px; }
.search-box input[b-un7486pm36] { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #ced4da; }
.users-scroll[b-un7486pm36] { overflow-y: auto; padding: 8px; }
.user-item[b-un7486pm36] { display:flex; align-items:center; padding:8px; border-radius:6px; cursor:pointer; margin-bottom:6px; transition: background 0.12s ease; }
.user-item:hover[b-un7486pm36] { background: rgba(102,126,234,0.06); }
.user-item.active[b-un7486pm36] { background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(118,75,162,0.03)); }
.avatar[b-un7486pm36] { width:40px; height:40px; border-radius:50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; display:flex; align-items:center; justify-content:center; margin-right:10px; font-weight:600; }
.avatar-large[b-un7486pm36] { width:48px; height:48px; border-radius:50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; margin-right:12px; }
.user-meta .name[b-un7486pm36] { font-weight:600; color: #222 }
.user-meta .username[b-un7486pm36] { font-size:0.85rem; color:#6c757d }

.chat-panel[b-un7486pm36] { flex:1; display:flex; flex-direction:column; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.chat-header[b-un7486pm36] { display:flex; align-items:center; padding:12px; border-bottom:1px solid rgba(0,0,0,0.04); background: #fff; }
.chat-header .title[b-un7486pm36] { font-weight:600; color:#222 }
.messages[b-un7486pm36] { flex:1; padding:16px; overflow:auto; background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%); }
.message-row[b-un7486pm36] { margin-bottom:12px; display:flex; flex-direction:column; max-width:70%; }
.message-row.me[b-un7486pm36] { align-self:flex-end; }
.message-row.them[b-un7486pm36] { align-self:flex-start; }
.bubble[b-un7486pm36] { background: #f1f5fb; padding:10px 12px; border-radius:8px; box-shadow: 0 1px 0 rgba(0,0,0,0.02); color: #1f2937 }
.message-row.me .bubble[b-un7486pm36] { background: linear-gradient(135deg, #78dbe2 0%, #7ed321 100%); color: #06221a; }
.message-meta[b-un7486pm36] { font-size:0.72rem; color:#6c757d; margin-top:4px; }
.composer[b-un7486pm36] { padding:8px; border-top:1px solid rgba(0,0,0,0.04); display:flex; gap:8px; align-items:center; background: #fff }
.composer input[b-un7486pm36] { flex:1; padding:10px; border-radius:6px; border:1px solid #ced4da }
.composer .send-btn[b-un7486pm36] { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 8px 12px; border-radius:6px; box-shadow: 0 6px 20px rgba(102,126,234,0.12); cursor: pointer }
.empty-placeholder[b-un7486pm36] { padding:24px; color:#6c757d }
