﻿/* ===============================
   SECURA CORE THEME
=================================*/

:root {
    --font-main: 'Segoe UI', Tahoma, sans-serif;
    --bg-main: #0f172a;
    --bg-panel: #1e293b;
    --bg-elevated: #243147;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --danger: #ef4444;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-soft: rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.15);
    --radius: 10px;
    --transition: 0.2s ease;
}

h2 {
    border-bottom: 1px solid var(--accent);
    font-size: 1.5vw;
    font-weight: 500;
}

html {
    scroll-behavior: smooth;
}

/* ===============================
   BASE
=================================*/
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#officeChat, #chat {
    user-select: text !important
}

html, body {
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #000000, #082a79);
    color: var(--text-main);
    font-family: var(--font-main);
    padding: 0;
}

.main-content {
    min-width: 1183px;
    max-width: 85%;
    margin: auto;
}

/* ===============================
   TYPOGRAPHY
=================================*/

h1 {
    margin: 0 !important;
    font-size: 8vw;
    font-weight: 700;
    text-align: center;
}

.text-info {
    text-align: left;
    font-weight: normal;
    font-size: 26px !important;
    color: black !important;
    opacity: 1 !important;
    margin-bottom: 50px;
}

h3 {
    padding: 5px 10px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: var(--bg-main);
}

h4 {
    font-size: 1.2vw;
    font-weight: 400;
    padding: 15px;
}

h5 {
    font-size: 20px;
    text-align: center;
    padding: 15px;
}

select:focus {
    outline: none;
}
/* ===============================
   NAV HEADER
=================================*/

.core-nav-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-soft);
}

.core-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-wrap: wrap;
}

.core-header-text,
.core-header-host {
    font-size: 2.2em;
    font-weight: 600;
    white-space: nowrap;
}

.core-header-text {
    color: var(--accent);
}

.core-header-host {
    color: var(--text-main);
    cursor: pointer;
    transition: color var(--transition);
}

    .core-header-host:hover {
        color: var(--accent-strong);
    }

.core-header-img {
    height: 45px;
    margin-left: 15px;
    transition: transform var(--transition);
}

    .core-header-img:hover {
        transform: scale(1.2);
    }

/* ===============================
   PANELS
=================================*/

.insidePanel {
    width: 100%;
    background: var(--bg-panel);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 15px;
    height: 630px !important;
}

.innerPanel {
    overflow-y: auto;
    overflow-x: hidden;
    height: 455px !important;
}

.pnl {
    --height: calc(100vh - 410px) !important;
}

.dynamic-panel {
    background-color: var(--panel-bg, #f3f8ff);
    padding: 10px;
}

/* ===============================
   LISTS / ITEMS
=================================*/

.custom-list {
    margin-top: 20px;
    height: 400px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 10px;
    overflow-y: auto;
    background: var(--bg-elevated);
}

.listItem {
    font-family: Consolas, monospace;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background var(--transition);
}

    .listItem:hover,
    .selected {
        background: var(--accent);
        color: white;
        cursor: pointer;
    }

/* ===============================
   NOTES
=================================*/
.hover:hover {
    background: #0d6efd;
    color: white;
    cursor: pointer;
}

#myDialog {
    overflow: hidden;
}

.ui-dialog .ui-dialog-content {
    overflow: hidden;
}

#txtNoteEdit {
}

.ui-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
}

.ui-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
}

.ui-dialog .ui-dialog-title {
    flex: 1; /* pushes buttons to the right */
}

.ui-dialog .dlg-max-btn,
.ui-dialog .ui-dialog-titlebar-close {
    margin-left: 5px;
}

.ui-dialog .ui-dialog-titlebar-buttonpane,
.ui-dialog .dlg-max-btn,
.ui-dialog .ui-dialog-titlebar-close {
    margin-left: 4px;
}

.dlg-maximized {
    z-index: 2000 !important;
}

.dlg-max-btn {
    padding: 0.15rem 0.45rem;
}

.note {
    width: 266px;
    padding: 8px;
    background: silver;
    border: 2px solid gray;
    border-radius: var(--radius);
    margin: 7px;
    color: #111827; /* dark readable text */
    box-shadow: 3px 6px 8px black;
}

    /* Note title input (if inside .note) */
    .note input[type="text"] {
        background: #ffffff;
        color: #111827;
        border: 2px solid gray;
    }

    /* Note body textarea */
    .note textarea {
        width: 100%;
        resize: vertical;
        background: #ffffff;
        color: #111827;
        border: 2px solid gray;
    }

/* ===============================
   ORG HEADER
=================================*/

.OrgHeader {
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    font-size: clamp(24px, 3vw, 50px);
    text-shadow: 2px 2px 3px rgba(255,255,255,.6);
    color: var(--accent);
    position: relative;
}
/* ===============================
   DOT STATUS
=================================*/

.dot {
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    position: relative;
    top: 5px;
}

/* ===============================
   MODAL
=================================*/

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition);
}

    .custom-modal-overlay.show {
        opacity: 1;
    }

.custom-modal {
    background: var(--bg-panel);
    width: 500px;
    max-width: 90%;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
    transform: scale(.95);
    opacity: 0;
    transition: all var(--transition);
}

    .custom-modal.show {
        transform: scale(1);
        opacity: 1;
    }

.custom-modal-header {
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.custom-modal-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* ===============================
   TABS / SCROLL AREAS
=================================*/

.ui-tabs {
    overflow-y: auto;
}

.ui-tabs-panel {
    overflow-y: auto;
}

.summaryPractices {
    max-height: 505px;
    overflow-y: auto;
}


/* ===============================
   UTILITIES
=================================*/

.pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

.mr-2 {
    margin-right: 12px;
}

.login-notify {
    color: yellow;
    font-size: 25px;
}


.userName {
    background-color: pink;
}

.individualPractice {
    padding: 4px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.sticky-search {
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    z-index: 10;
    padding: 5px 0;
}

.hidden {
    display: none;
}

.slowTransition {
    transition: all 0.25s ease !important;
}

.fancyBlock {
    text-align: center;
}

.spinner {
    margin: 0 auto 10px auto;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================*/

.chat-container {
    width: 100%;
    height: 560px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    overflow-y: auto;
    background: white;
}

.chat-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0d6efd;
    color: white;
    padding: 5px 5px 5px 5px;
    font-weight: bold;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f7fb;
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
}

.chat-left {
    background: white;
    border: 1px solid #e4e6eb;
}

.chat-right {
    background: #0d6efd;
    color: white;
    margin-left: auto;
}

.chat-time {
    font-size: 11px;
    opacity: .7;
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chat-input {
    flex: 1;
}

.chat-send {
    width: 90px;
}

.highlight-date a {
    background: rgba(13, 110, 253, .5) !important;
    color: black !important;
    display: block !important;
}

.titleSpanAppts {
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    max-width: 270px;
    background-color: rgba(13, 110, 253,.9);
    color: white;
}

.resourceContainer {
    height: 380px;
    overflow-y: auto;
}

.ui-widget-overlay {
    background: black !important;
    opacity: 0.8 !important;
}

.practice-card {
    border-radius: 8px;
    width: 100%;
    padding: 3px !important;
    box-sizing: border-box;
    overflow: visible;
}

.practiceInput {
    background-color: pink;
    border: 1px solid navy;
}

.user-card {
    background-color: rgb(233, 233, 233);
    border-radius: 8px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid navy;
    user-select: text !important;
}

.user-card-display {
    background-color: rgb(233, 233, 233);
    border-radius: 8px;
    padding: 10px 10px;
    width: 90%;
    margin: 5px;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid gray;
    user-select: text !important;
}

.wall-card {
    background-color: rgb(233, 233, 233);
    display: inline-block;
    vertical-align: top; /* <-- add this */
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 4px;
    border: 1px solid navy;
    user-select: text !important;
}

.userInput {
    background-color: pink;
    border: 1px solid navy;
}

.practice-card,
.user-card {
    transition: all .2s ease;
}

.collapse.show {
    border-top: 1px solid #dee2e6;
}

.practice-card-js.active-practice {
    background: navy;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.35);
}

.user-card-js.active-user {
    background: navy;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.35);
}

    .user-card-js.active-user input,
    .user-card-js.active-user textarea {
        background: #fff;
        color: #000;
        border-color: #ced4da;
    }

.bg-pink {
    background-color: pink !important;
}

.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
}

.chat-header {
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-footer {
    border-top: 1px solid #ddd;
    padding: 8px;
    background: #f8f9fa;
}

.content-container {
    background-image: url('/images/abstract-texture.png') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0.9 !important;
}

#txtNoteEdit {
    min-height: 100px;
}

#myMessage {
    min-height: 150px !important;
}

.market-info {
    width: 70% !important;
    margin: auto;
}

.emoji-picker {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 4px;
    height: 120px;
    overflow-y: auto;
}

    .emoji-picker .emoji {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 22px;
        text-align: center;
        cursor: pointer;
        user-select: none;
        border-radius: 5px;
    }

        .emoji-picker .emoji:hover {
            background: rgba(0,123,255,.15);
            transform: scale(1.15);
        }
