html, body {
    display: flex;
    flex-direction: column;
}

.support-title,
.chat-title,
.login-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #003F72;
    margin: 0.5rem 0;
}

.bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.bubble.bubble-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.bubble.bubble-yellow {
    background: #fef3c7;
    color: #92400e;
}

.bubble.bubble-purple {
    background: #ede9fe;
    color: #5b21b6;
}

.bubble.bubble-green {
    background: #dcfce7;
    color: #166534;
}

.bubble.bubble-gray {
    background: #e5e7eb;
    color: #374151;
}

.bubble.bubble-red {
    background: #fee2e2;
    color: #991b1b;
}

.bubble.bubble-orange {
    background: #fff7ed;
    color: #9a3412;
}

.btn,
.button,
.attach-button,
.template-button,
.register-button,
.login-button,
.form-submit-button,
.form-cancel-button,
.send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    min-height: 2.5rem;
}

.btn--light,
.button,
.attach-button,
.template-button,
.register-button,
.form-cancel-button {
    background: #e2f0ff;
    color: #004090;
}

.btn--light:hover,
.button:hover,
.attach-button:hover,
.template-button:hover,
.register-button:hover,
.form-cancel-button:hover {
    background: #cce0ff;
}

.btn--primary,
.login-button,
.form-submit-button,
.send-button {
    background: #004090;
    color: #ffffff;
}

.btn--primary:hover,
.login-button:hover,
.form-submit-button:hover,
.send-button:hover {
    background: #003070;
}

.form-control,
.form-input,
.form-select,
.form-textarea,
.staff-card input,
.staff-card select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.staff-card input:focus,
.staff-card select:focus,
.filter-input:focus {
    outline: none;
    border-color: #004090;
    box-shadow: 0 0 0 2px rgba(0, 64, 144, 0.12);
}

.filter-input {
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.file-preview-container {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-preview-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    vertical-align: top;
    background: transparent;
}

.file-preview-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-table,
.support-table th,
.support-table td {
    border-collapse: collapse;
}

.support-table th,
.support-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.support-row {
    cursor: pointer;
    transition: background-color .15s ease;
}

.support-row:hover {
    background: #f1f7ff;
}

.alert {
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-text {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.date-divider {
    align-self: center;
    font-size: 0.75rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .support-table,
    .support-table thead,
    .support-table tbody,
    .support-table th,
    .support-table td,
    .support-table tr {
        display: block;
    }

    .support-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .support-table tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .support-table td {
        border: none;
        position: relative;
        text-align: right;
        white-space: normal;
    }

    .support-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 40%;
        padding-right: 0.5rem;
        font-weight: 600;
        text-align: left;
    }
}
