/* Website admin additions. The primary visual system is the same Midone bundle used by Admin. */
.website-code-editor {
    min-height: 620px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.75;
    direction: ltr;
    text-align: left;
    tab-size: 4;
}

.website-long-value {
    max-width: 360px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.website-clamp {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 360px;
}

.website-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.website-media-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.website-media-card:hover {
    box-shadow: 0 8px 20px rgba(35, 42, 59, .08);
    transform: translateY(-2px);
}

.website-media-preview {
    display: flex;
    height: 180px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
}

.website-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.website-unread-row td {
    background: #fffaf0 !important;
}

.website-message-detail span,
.website-message-detail strong {
    display: block;
}

.website-message-detail span {
    margin-bottom: .35rem;
    color: #718096;
    font-size: .75rem;
}

.website-message-text {
    min-height: 120px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    background: #f8fafc;
    white-space: pre-wrap;
    line-height: 2;
}

.website-quick-grid a:hover {
    background: #f8fafc;
}

.confirm-delete button {
    background: transparent;
}

@media (max-width: 1279px) {
    .website-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .website-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .website-code-editor { min-height: 460px; }
}

@media (max-width: 479px) {
    .website-media-grid { grid-template-columns: 1fr; }
}
