/* Favicon Generator Styles */
/* Drag & drop zone styles are already in custom.css */

/* HTML Code Block */
[data-bs-theme="dark"] pre.bg-light {
    background-color: rgba(30, 34, 42, 0.8) !important;
    color: #e1e5e9;
}

[data-bs-theme="dark"] pre.bg-light code {
    color: #e1e5e9;
}

/* Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow: auto;
}

.preview-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.preview-modal-content {
    position: relative;
    background-color: var(--bs-body-bg);
    border-radius: 0.5rem;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .preview-modal-content {
    background-color: rgba(30, 34, 42, 0.98);
}

.preview-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bs-body-bg);
    z-index: 10;
}

[data-bs-theme="dark"] .preview-modal-header {
    background-color: rgba(30, 34, 42, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.preview-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
    word-break: break-all;
}

.preview-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.preview-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .preview-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.preview-modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 80px);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-modal-content {
        max-width: 95%;
        width: auto;
        max-height: 95vh;
    }
    
    .preview-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .preview-modal-title {
        font-size: 1rem;
    }
    
    .preview-modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .preview-modal-content {
        max-width: 98%;
        width: auto;
        max-height: 98vh;
        border-radius: 0.25rem;
    }
}
