/* Favicon Generator - Using Cropper.js like crop.php */

/* Color swatches */
.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
    vertical-align: middle;
    margin-right: 4px;
}

.transparent-swatch {
    background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 8px 8px;
}

.color-btn {
    transition: all 0.2s ease;
}

.color-btn.active {
    background-color: #5b8def !important;
    color: white !important;
    border-color: #5b8def !important;
}

#custom-color {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
}
 
/* Tool label */
.tool-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
    min-width: 80px;
    display: inline-block;
}

/* Download buttons */
.download-btn small {
    opacity: 0.7;
    font-size: 0.8em;
}

.btn-primary-action {
    background-color: #5b8def !important;
    color: white !important;
    border-color: #5b8def !important;
}

.btn-primary-action:hover {
    background-color: #4a7cd9 !important;
    border-color: #4a7cd9 !important;
}

/* HTML Code Section */
.html-code-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.html-code-section h5 {
    margin-bottom: 15px;
    color: #333;
}

.code-block {
    position: relative;
    background: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #444;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-color);
}

.copy-btn.copied {
    background: #28a745;
}

/* Processing overlay */
#processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.processing-content {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-label {
        display: block;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .tool-group {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        margin: 4px 0;
        width: 100%;
        max-width: 280px;
    }
}
