/* Style Fixes for ClipCraft Application */

/* Fix template preview name - remove dark box and align left */
.template-preview-name,
.template-name,
.preview-template-name {
    text-align: left !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Remove any dark background from template preview container */
.template-preview-header,
.preview-header {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure template name text is visible and properly styled */
.template-preview-name {
    color: inherit !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

/* Fix any potential centering from parent containers */
.template-preview-container .template-name,
.template-preview-section .template-name {
    margin-left: 0 !important;
    text-align: left !important;
}

/* Remove any card or panel styling that might create a box effect */
.template-preview-card,
.template-name-card,
.template-name-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure proper spacing for template preview area */
.template-preview {
    padding: 1rem !important;
}

/* Fix notification positioning to prevent overlaps */
.notification {
    z-index: 9999 !important;
}

/* Prevent duplicate delete confirmation dialogs */
.delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Style for default template badge */
.default-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Fix game assignment dropdown styling */
.game-assignment-dropdown {
    z-index: 1050;
}

/* Ensure template settings buttons don't trigger multiple times */
.template-action-btn {
    pointer-events: auto;
}

.template-action-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Fix for any flex container issues with template names */
.template-header {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
}

/* Override any Bootstrap or other framework centering */
.text-center .template-preview-name {
    text-align: left !important;
}

/* Ensure clean hover states */
.template-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Fix modal z-index issues */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Ensure buttons in template settings work properly */
.btn-template-action {
    margin: 0 0.25rem;
}

/* Fix any overflow issues with template names */
.template-name,
.template-preview-name {
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Super Editor specific fixes */
.super-editor .form-control:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}
.super-editor .clips-info {
    font-size: 0.875rem;
}
.super-editor .toast {
    max-width: 400px;
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Add to the <style> section */
.job-info div {
    margin-top: 0.25rem;
}
.status-badge {
    min-width: 120px;
    text-align: center;
}
/* Add step indicator styling */
.job-item .step-indicator {
    font-weight: 600;
    color: var(--primary-color);
}
