body {
    background-color: #f8f9fa;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.ticket-description {
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.table td form {
    margin: 0;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.attachment-paste-area {
    cursor: text;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #fafbfc;
}

.attachment-paste-area:hover,
.attachment-paste-area:focus {
    border-color: #0d6efd !important;
    background-color: #f0f6ff;
    outline: none;
}

.attachment-preview-list {
    min-height: 0;
}

.attachment-preview-list.attachment-preview-flash {
    animation: attachment-flash 0.4s ease;
}

@keyframes attachment-flash {
    0% { background-color: transparent; }
    30% { background-color: #e7f1ff; border-radius: 0.375rem; }
    100% { background-color: transparent; }
}

.attachment-preview-item {
    background: #fff;
    width: 72px;
    min-width: 72px;
    padding: 0.25rem !important;
}

.attachment-preview-thumb {
    max-height: 48px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.attachment-preview-file-icon {
    min-height: 40px;
    line-height: 40px;
    font-size: 1.1rem;
}

.attachment-list a {
    text-decoration: none;
}

.attachment-list a:hover {
    text-decoration: underline;
}

.attachment-thumbs {
    margin-bottom: 0;
}

.attachment-thumb-btn {
    display: block;
    width: 64px;
    height: 64px;
    background: #f8f9fa;
    cursor: zoom-in;
    transition: transform 0.15s, box-shadow 0.15s;
}

.attachment-thumb-btn:hover,
.attachment-thumb-btn:focus {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: none;
}

.attachment-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-lightbox[hidden] {
    display: none !important;
}

.attachment-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.attachment-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 96vh;
    margin: 0;
    text-align: center;
}

.attachment-lightbox-img {
    max-width: 96vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.attachment-lightbox-caption {
    color: #fff;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.attachment-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.attachment-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.attachment-lightbox-open {
    overflow: hidden;
}
