/* ==========================================================================
   COMPONENTS
   Styles for the class names that the Razor components reference but that no
   stylesheet in the project defined (checked against both the current CSS and
   the oldest available backup - these names never existed in CSS, only in the
   markup).

   Layout hooks that merely repeat a Bootstrap utility already present in the
   markup intentionally carry light rules only; the visual work is done by the
   Bootstrap utility classes next to them.  Everything else is a real component
   style and is grouped next to the component that owns it.

   Sizing / colour tokens follow the rest of the app:
     background  #e9eaeb      surfaces  #ffffff
     primary     #2563eb      muted     #64748b / #6b7280
     radius      1rem (rounded-4) / .75rem / .5rem
   ========================================================================== */

/* ==========================================================================
   1. SHELLS AND PAGE CONTAINERS
   ========================================================================== */

/* Shared\Layout_Clients.razor - outer wrapper of the client portal */
.layout-client-wrapper {
    min-height: 100vh;
    background-color: #e9eaeb;
}

/* Shared\Layout_Save.razor - save/edit shell */
.content-wrapper {
    min-width: 0;
    padding-bottom: .75rem;
}

.control-section {
    width: 100%;
    min-width: 0;
}

/* Forms\Clients\Home.razor - dashboard page container */
.home-client-dashboard {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}

/* ==========================================================================
   2. HOME PAGE SECTIONS
   The sections are semantic wrappers; they carry no heading of their own, so
   these rules only control rhythm and make anchor scrolling land correctly.
   ========================================================================== */

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.content-sections > section {
    min-width: 0;
    scroll-margin-top: 1rem;
}

.consultants-section,
.workshops-section,
.news-section,
.articles-section,
.category-section {
    width: 100%;
}

/* Forms\Clients\Guests.razor - text block inside the welcome banner */
.banner-text {
    position: relative;
    z-index: 2;
    min-width: 0;
    color: #1f2937;
}

/* ==========================================================================
   3. SEARCH BOX  (Home.razor + ConsultantsCards.razor)
   ========================================================================== */

.search-box-wrapper {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
}

.search-group {
    display: flex;
    align-items: stretch;
    min-height: 46px;
    border-radius: 1rem;
}

.search-icon-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    background-color: transparent;
}

.modern-search-input {
    height: 46px;
    background-color: transparent;
    border: 0;
    box-shadow: none;
}

.modern-search-input:focus {
    background-color: transparent;
    box-shadow: none;
}

/* Forms\Clients\ConsultantsCategory.razor - horizontal category strip */
.category-slider-container {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Forms\Clients\ConsultantsCards.razor - text column of a consultant card */
.consultant-info {
    min-width: 0;
    line-height: 1.6;
}

/* ==========================================================================
   4. RESERVATIONS  (ConsultantsReservations / ConsultantsWorkCalendar /
   MyReservations / ToDoCard)
   ========================================================================== */

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}

.reservation-item {
    cursor: pointer;
    border-radius: 1rem;
    transition: transform .16s ease, box-shadow .16s ease;
}

.reservation-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

.reservation-item:active {
    transform: translateY(0);
}

/* the chevron at the end of every row nudges towards the content on hover */
.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform .16s ease, color .16s ease;
}

.reservation-item:hover .arrow-container {
    transform: translateX(-3px);
    color: #2563eb !important;
}

/* container that holds the "selected reservation" detail card */
.todo-card-wrapper {
    min-width: 0;
    margin-bottom: 1rem;
}

/* filter trigger next to the list header */
.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: .65rem;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    transition: background-color .15s ease, border-color .15s ease;
}

.filter-icon:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-icon svg {
    display: block;
}

/* "nothing to show" panel */
.empty-state-box {
    border-radius: 1rem;
    border-style: dashed !important;
    border-color: #dbe1e8 !important;
}

/* Forms\Clients\MyReservations.razor / ConsultantsHome.razor - section header */
.reservation-section {
    margin-bottom: 1.75rem;
    min-width: 0;
}

.reservation-section:last-child {
    margin-bottom: 0;
}

.section-title-wrap {
    gap: .5rem;
    min-width: 0;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

/* Forms\Consultants\ToDoCard.razor */
.info-pill {
    border-radius: .75rem;
    font-size: .85rem;
    line-height: 1.9;
}

.description-box {
    border-radius: .75rem;
    line-height: 1.9;
}

/* profile completion caption in Clients_Profile / ConsultantsProfile */
.completion-title {
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
}

/* ==========================================================================
   5. FORMS
   ========================================================================== */

/* Forms\Clients\SignUp.razor - animated step container */
.form-content {
    min-height: 40vh;
    padding-bottom: .5rem;
}

/* Forms\Consultants\ConsultantsProfileEdit.razor - row of switch check boxes */
.checkbox-row {
    gap: 1rem;
    min-width: 0;
}

.checkbox-row .form-check {
    margin-bottom: 0;
}

/* dynamic / portal specific form extensions */
.custom-fields-wrapper,
.custom-portal-fields {
    width: 100%;
    min-width: 0;
}

/* Z_Components\Z_TextEditorBox.razor - the inline style wins for min-height */
.custom-textarea {
    width: 100%;
    line-height: 1.9;
}

/* Shared\FiltersForm.razor - placeholder where an operator takes no value */
.empty-op-placeholder {
    display: block;
    width: 100%;
    min-height: 1px;
}

/* ==========================================================================
   6. CONTEXT MENU  (Shared\ListsForm.razor / ListsFormSelect.razor)
   Positioning comes from the inline style; these rules are cosmetic.
   ========================================================================== */

.custom-context-menu {
    min-width: 150px;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .18) !important;
    z-index: 1050;
}

.context-menu-item {
    cursor: pointer;
    border-radius: .35rem;
    transition: background-color .12s ease;
}

.context-menu-item:hover,
.context-menu-item:focus-visible {
    background-color: #f1f5f9;
    outline: none;
}

/* ==========================================================================
   7. SLIDERS  (Z_Components\Z_CardSlider.razor)
   ========================================================================== */

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 34px;
}

.slider-header-placeholder {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 34px;
}

/* ==========================================================================
   8. CHAT / VIDEO
   ========================================================================== */

/* Forms\Chats\JoinVideoChat.razor */
.video-chat-flow {
    min-height: 60vh;
    padding-bottom: 2rem;
}

.mood-emoji {
    line-height: 1;
    user-select: none;
}

.mood-title {
    font-size: .8rem;
    line-height: 1.7;
}

/* Forms\Chats\VideoChat.razor - Telerik window hosting the message box */
.demo-window {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   9. WEB PHONE  (Z_Components\Z_Phone.razor)
   ========================================================================== */

.webphone-card {
    background-color: #ffffff;
    border-radius: .75rem;
}

.incoming-box {
    border-radius: .75rem;
    animation: webphone-incoming 1.4s ease-in-out infinite;
}

@keyframes webphone-incoming {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

/* ==========================================================================
   10. ADMIN SIDEBAR MENU  (Shared\MyNavMenu.razor)
   ========================================================================== */

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 0;
    margin: 0;
    min-width: 0;
}

/* ==========================================================================
   11. INDEX / PORTAL  (Index.razor)
   .portal-icon already renders the glass badge; the modifiers only add a
   role coloured glow that matches each card gradient.
   ========================================================================== */

.portal-icon.admin-icon {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35),
                0 6px 16px rgba(65, 105, 225, .35);
}

.portal-icon.consultant-icon {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35),
                0 6px 16px rgba(220, 38, 38, .35);
}

.portal-icon.client-icon {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35),
                0 6px 16px rgba(16, 185, 129, .35);
}

/* ==========================================================================
   12. SMALL STANDALONE PIECES
   ========================================================================== */

/* white button variant used inside the dashboard toolbar (Z_Dashboard.razor).
   Bootstrap 5 has no .btn-white, so the variant is completed here. */
.btn-white {
    color: #212529;
    background-color: #ffffff;
    border-color: #dee2e6;
}

.btn-white:hover,
.btn-white:focus {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.btn-white:active,
.btn-white.active {
    color: #212529;
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* one grid cell of the free-time picker (ConsultantsProfile.razor) */
.grid-item {
    min-width: 0;
    overflow: hidden;
}

/* Z_Components\Z_CheckBox.razor - save / reload buttons of a grid field.
   Restored from Counselling.css (2022 snapshot) - the rule was commented out
   in the 2026 Eshare.css, but the markup still relies on it. */
.Z_Component_BTN {
    line-height: inherit !important;
    top: 0;
}

/* Forms\Activity\Activity_PerformanceReport.razor - restored from the
   Eshare.css v2025-06 snapshot. */
.Z_Description_Items {
    background-color: #d3d3d3;
    padding: 5px;
    border-radius: 10px;
}

.Z_PerformanceReport {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    border: dashed 1px black;
}
