.with-bottom-bar-padding {
    padding-bottom: 64px;
}

.fixed-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.tight-grid .mud-table-cell {
    padding: 4px !important;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dense-table .mud-table-cell {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.compare-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.compare-zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.zoom-lens {
    position: absolute;
    pointer-events: none;
    width: 150px;
    height: 150px;
    border: 2px solid #999;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    background-color: transparent;
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
}

.creative-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.creative-image {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    /* Remove bottom margin so description is directly under the image */
    margin-bottom: 4px;
}

.creative-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.creative-text {
    flex: 1;
    font-size: 0.95rem;
}

.creative-delete-btn {
    margin-left: 10px;
}

.creative-separator {
    margin: 12px 0;
}

.job-stat-chip {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.drawer-footer {
    display: block;
}

#nav-drawer {
    display: flex;
    flex-direction: column;
}

.media-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.child-row-highlight {
    background-color: var(--mud-palette-surface);
}

.child-card {
    background-color: var(--mud-palette-surface);
    border-left: 4px solid var(--mud-palette-primary);
    border-bottom: 1px solid var(--mud-palette-divider);
    border-right: 1px solid var(--mud-palette-divider);
}

.child-field-label {
    background-color: rgba(0,0,0,0.05); /* light mode */
    padding: 8px;
    border-radius: 4px;
}

.mud-dark .child-field-label {
    background-color: rgba(255,255,255,0.06); /* dark mode */
}

.child-field-value {
    padding: 8px;
    margin-top: 4px;
    background-color: var(--mud-palette-background);
    border-radius: 4px;
}
