/* Custom CSS classes to replace inline styles for html-validate compliance */

/* Logo/favicon styling */
.navbar-logo-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.footer-logo-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

.menu-bar-logo-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* System info positioning */
.system-version-info {
    float: right;
    font-size: 10px;
}

/* Alert and content styling */
.alert-icon-background {
    background-image: url('/static/polly_icon_64.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
}

.tech-badge-container {
    margin: 16px 0;
}

.system-info-margin {
    margin-top: 12px;
}

.text-center-inline {
    text-align: center;
}

.section-margin {
    margin: 16px 0;
}

/* Hidden elements positioning */
.turnstile-hidden {
    position: fixed;
    top: -1000px;
    left: -1000px;
    visibility: hidden;
}

.loading-overlay-hidden {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* White-space handling */
.preserve-whitespace {
    white-space: pre-line;
}

/* Image preview styling */
.image-preview-hidden {
    display: none;
}

.image-preview-card {
    max-width: 300px;
}

.image-preview-img {
    max-height: 200px;
    object-fit: cover;
}

.image-message-section-hidden {
    display: none;
}

/* Poll image sizing */
.poll-image-display {
    max-height: 300px;
}

.poll-image-compressed {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    image-rendering: optimizeQuality;
    compression: 0.8;
}

/* Progress bar sizing */
.progress-bar-height {
    height: 20px;
}

.progress-bar-small {
    height: 8px;
}

/* Table styling */
.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
}

.table-col-narrow {
    width: 50px;
}

.table-col-medium {
    width: 100px;
}

.table-col-wide {
    width: 150px;
}

.table-col-wider {
    width: 200px;
}

.table-col-widest {
    width: 300px;
}

/* Avatar styling */
.avatar-small {
    width: 24px;
    height: 24px;
}

.avatar-placeholder {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.text-truncate-150 {
    max-width: 150px;
}

/* Auto-refresh hidden trigger */
.auto-refresh-trigger {
    display: none;
}

/* Emoji picker positioning */
.emoji-picker-absolute {
    position: absolute;
    z-index: 1060;
}

/* Progress bars with data-width attributes will be handled by JavaScript */
.progress-bar[data-width] {
    transition: width 0.3s ease-in-out;
}

/* Dashboard screenshot styling */
.dashboard-screenshot-container {
    max-width: 100%;
    margin: 0 auto;
}

.dashboard-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .dashboard-screenshot {
        border-radius: 4px;
    }
    
    .dashboard-screenshot:hover {
        transform: none;
    }
}

/* Log viewer styling */
.log-viewer {
    font-family: 'Courier New', monospace;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    background-color: #2d2d2d;
    border-left: 3px solid #444;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
}

.log-entry.error {
    border-left-color: #dc3545;
    background-color: #2d1b1b;
}

.log-entry.warning {
    border-left-color: #ffc107;
    background-color: #2d2a1b;
}

.log-entry.info {
    border-left-color: #17a2b8;
    background-color: #1b2a2d;
}

.log-entry.debug {
    border-left-color: #6c757d;
    background-color: #252525;
}

.log-message {
    color: #f8f9fa;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.log-entry .text-muted {
    color: #adb5bd !important;
    font-size: 12px;
}

.log-entry .badge {
    font-size: 10px;
    padding: 2px 6px;
}

/* Dark scrollbar for log viewer */
.log-viewer::-webkit-scrollbar {
    width: 8px;
}

.log-viewer::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.log-viewer::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.log-viewer::-webkit-scrollbar-thumb:hover {
    background: #777;
}
