/* filename: static/css/portal.css */

.portal-shell {
    min-height: 100vh;
    background: var(--bg);
}

.portal-topbar {
    min-height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.portal-brand {
    font-size: 22px;
    font-weight: 900;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-user {
    color: var(--text-soft);
    font-size: 14px;
}

.portal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
}

.portal-login-wrap {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-card {
    width: 100%;
    max-width: 520px;
}

.portal-form {
    display: grid;
    gap: 16px;
}

.portal-case-card {
    display: block;
}

.portal-case-card:hover {
    transform: translateY(-2px);
}

.portal-case-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}

.portal-case-meta {
    color: var(--text-soft);
    margin-bottom: 12px;
}

.portal-case-summary {
    color: var(--text);
    line-height: 1.7;
}
/* filename: static/css/portal.css */

.portal-auth-link-row {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.portal-auth-link-text {
    font-size: 14px;
    color: var(--text-soft);
}

.portal-auth-link {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.portal-submit-button {
    width: 100%;
}
.portal-logout-form {

    margin: 0;

}
/* filename: static/css/portal.css */
/* filename: static/css/portal.css */

.portal-case-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
    gap: 22px;
    margin-top: 22px;
}

.portal-case-main,
.portal-case-sidebar {
    min-width: 0;
}

.portal-case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.portal-chat-window {
    height: 680px;
    border: 1px solid #d9e5f5;
    border-radius: 20px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-chat-messages {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

.portal-chat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    align-items: flex-end;
}

.portal-chat-row.right {
    flex-direction: row-reverse;
}

.portal-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5efff;
    color: #356fe5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.portal-chat-row.right .portal-chat-avatar {
    background: #356fe5;
    color: #fff;
}

.portal-chat-block {
    max-width: 72%;
}

.portal-chat-row.right .portal-chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.portal-chat-name {
    font-size: 12px;
    font-weight: 800;
    color: #6a768a;
    margin-bottom: 6px;
}

.portal-chat-bubble {
    background: #fff;
    border: 1px solid #dfe8f4;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.65;
    box-shadow: 0 8px 20px rgba(18, 35, 63, 0.05);
}

.portal-chat-row.right .portal-chat-bubble {
    background: #356fe5;
    border-color: #356fe5;
    color: #fff;
}

.portal-chat-time {
    margin-top: 6px;
    font-size: 12px;
    color: #7b8798;
}

.portal-chat-form {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #dfe8f4;
}

.portal-chat-input {
    flex: 1;
    height: 52px;
    border: 1px solid #d7e4f5;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
}

.portal-chat-send {
    height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    background: #356fe5;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.portal-chat-empty {
    min-height: 320px;
    border: 1px dashed #c8daf4;
    border-radius: 18px;
    color: #6a768a;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .portal-case-workspace {
        grid-template-columns: 1fr;
    }
}
