/* Instance Custom Content Styles - Realmify Theme */

.custom-content-section {
    border: 1px solid var(--realmify-border-dark);
    border-radius: var(--realmify-radius);
    padding: var(--realmify-spacing-md);
    background: var(--realmify-deep-grid-gray);
    box-shadow: var(--realmify-shadow-card);
}

.custom-content-section h6 {
    color: var(--realmify-voxel-blue);
    font-weight: 600;
    font-family: var(--realmify-font-heading);
}

.upload-form-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-form-container .card {
    background: var(--realmify-dark-bg);
    border: 1px solid var(--realmify-border-dark);
    box-shadow: var(--realmify-shadow-card);
}

.uploaded-files {
    min-height: 50px;
}

.file-item {
    background: var(--realmify-dark-bg);
    border: 1px solid var(--realmify-border-dark);
    border-radius: var(--realmify-radius-sm);
    padding: var(--realmify-spacing-sm);
    margin-bottom: var(--realmify-spacing-sm);
    transition: all var(--realmify-duration) var(--realmify-transition);
    color: var(--realmify-text-primary);
}

.file-item:hover {
    background: var(--realmify-deep-grid-gray);
    transform: translateY(-2px);
    box-shadow: var(--realmify-shadow-glow);
    border-color: var(--realmify-border-active);
}

.file-info {
    flex: 1;
}

.file-actions {
    flex-shrink: 0;
}

.file-actions .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Status badges */
.custom-content-section .badge.bg-success {
    background-color: var(--realmify-arcane-teal) !important;
    color: var(--realmify-text-primary);
}

.custom-content-section .badge.bg-secondary {
    background-color: var(--realmify-deep-grid-gray) !important;
    border: 1px solid var(--realmify-border-dark);
    color: var(--realmify-text-secondary);
}

.custom-content-section .badge.bg-info {
    background-color: var(--realmify-voxel-blue) !important;
    color: var(--realmify-text-primary);
}

/* File info text */
.file-item .file-info {
    color: var(--realmify-text-primary);
}

.file-item .file-info small {
    color: var(--realmify-text-muted);
}

.file-item .fw-medium {
    color: var(--realmify-text-primary);
    font-weight: 600;
}

.file-item .bi-file-earmark {
    color: var(--realmify-voxel-blue);
}

.file-item .btn-outline-primary {
    border-color: var(--realmify-voxel-blue);
    color: var(--realmify-voxel-blue);
}

.file-item .btn-outline-primary:hover {
    background-color: var(--realmify-voxel-blue);
    border-color: var(--realmify-voxel-blue);
    color: var(--realmify-text-primary);
}

.file-item .btn-outline-danger {
    border-color: #ff4757;
    color: #ff4757;
}

.file-item .btn-outline-danger:hover {
    background-color: #ff4757;
    border-color: #ff4757;
    color: var(--realmify-text-primary);
}

/* Custom content section text colors */
.custom-content-section .text-muted {
    color: var(--realmify-text-muted) !important;
}

.custom-content-section p {
    color: var(--realmify-text-secondary);
}

.custom-content-section .text-primary {
    color: var(--realmify-voxel-blue) !important;
}

/* Custom Content Tab Header */
#custom-content h6 {
    color: var(--realmify-text-primary) !important;
    font-family: var(--realmify-font-heading);
    font-weight: 600;
}

#custom-content h6 .bi-folder-plus {
    color: var(--realmify-voxel-blue);
}

#custom-content .text-muted {
    color: var(--realmify-text-secondary) !important;
}

#custom-content .badge.bg-info {
    background-color: var(--realmify-voxel-blue) !important;
    color: var(--realmify-text-primary) !important;
}

/* Upload form card */
.upload-form-container .card {
    background: var(--realmify-dark-bg) !important;
    border: 1px solid var(--realmify-border-dark) !important;
}

.upload-form-container .card-header {
    background: var(--realmify-deep-grid-gray) !important;
    border-bottom: 1px solid var(--realmify-border-dark) !important;
    color: var(--realmify-text-primary) !important;
}

.upload-form-container .card-body {
    background: var(--realmify-dark-bg) !important;
    color: var(--realmify-text-primary) !important;
}

.upload-form-container .form-label {
    color: var(--realmify-text-primary) !important;
}

.upload-form-container .form-text {
    color: var(--realmify-text-muted) !important;
}

/* Empty state */
.custom-content-files-list .text-center {
    padding: 2rem 1rem;
    color: var(--realmify-text-muted);
}

.custom-content-files-list .text-center i {
    color: var(--realmify-text-muted);
    opacity: 0.5;
}

.custom-content-files-list .text-center p {
    color: var(--realmify-text-secondary);
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-content-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .custom-content-section .d-flex > div:last-child {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .file-item .file-actions {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .file-item .file-actions .btn-group {
        width: 100%;
    }
    
    .file-item .file-actions .btn-group .btn {
        flex: 1;
    }
}
