/* Custom styles for DF SupportMeldung */

/* Report list row highlighting */
.report-row {
    cursor: pointer;
    transition: background-color 0.15s;
}
.report-row:hover {
    background-color: rgba(25, 118, 210, 0.04);
}
.report-row.selected {
    background-color: rgba(25, 118, 210, 0.08);
    border-left: 3px solid #1976D2;
}

/* Status badges */
.status-new { color: #1976D2; }
.status-seen { color: #757575; }
.status-done { color: #43A047; }
.status-reported { color: #FF9800; }
.status-assigned { color: #7B1FA2; }

/* Detail flyout */
.detail-flyout {
    height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Error group indicator */
.error-count-chip {
    cursor: pointer;
    font-size: 0.75rem;
}

/* Compact table rows */
.compact-row td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Attachment thumbnails - horizontal scroll container */
.attachment-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}
.attachment-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.attachment-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.attachment-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.attachment-thumb {
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.attachment-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Image Viewer Overlay */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white !important;
}

.image-viewer-main {
    display: flex;
    align-items: center;
    gap: 16px;
    max-height: 70vh;
}

.image-viewer-image {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.image-viewer-nav {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 48px;
    height: 48px;
}
.image-viewer-nav:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2) !important;
}
.image-viewer-nav.disabled {
    opacity: 0.2 !important;
    cursor: default !important;
}

.image-viewer-info {
    margin-top: 16px;
    text-align: center;
    color: white;
}
.image-viewer-info .mud-typography {
    color: white !important;
}
.image-viewer-info .mud-typography.mud-secondary-text {
    color: rgba(255,255,255,0.7) !important;
}

.image-viewer-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    max-width: 80vw;
    padding: 4px;
}

.image-viewer-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.15s, border-color 0.15s;
}
.image-viewer-thumb:hover {
    opacity: 0.9;
}
.image-viewer-thumb.active {
    border-color: #1976D2;
    opacity: 1;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%);
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 1px #1976D2;
}
.login-container .mud-input-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.login-container .mud-input-label {
    font-size: 0.875rem;
    color: #616161;
    font-weight: 500;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #424242;
}

/* App filter chips */
.app-chip-active {
    opacity: 1;
}
.app-chip-inactive {
    opacity: 0.4;
    text-decoration: line-through;
}
.app-chip-empty {
    opacity: 0.25;
    font-size: 0.8em;
}

/* Callback indicator */
.callback-indicator {
    color: #FF5722;
    font-weight: 600;
}
