/* Image Corner Rounder Styles */

/* Upload Section */
.drop-zone-modern {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone-modern:hover {
    border-color: #fb983a;
    background-color: #fff5ed;
}

.upload-icon {
    color: #fb983a;
}

/* Controls Panel */
.controls-panel {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.control-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.radius-value {
    font-size: 18px;
    font-weight: 700;
    color: #fb983a;
}

.form-range {
    accent-color: #fb983a;
}

.form-check-input:checked {
    background-color: #fb983a;
    border-color: #fb983a;
}

/* Preview Panel */
.preview-panel {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 600px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #fb983a;
    box-shadow: 0 4px 12px rgba(251, 152, 58, 0.2);
}

.result-item canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    background: 
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.result-item .file-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Download Panel */
.download-panel {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.download-single-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.download-single-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Loading Indicator */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Feature Boxes */
.feature-box {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* About Section */
.about-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(251, 152, 58, 0.2);
    border-color: #fb983a;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fb983a, #ff6b35);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 32px;
    color: white;
}

.about-box-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.about-box-text {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    margin: 0;
}

/* FAQ Section */
.faq-section .accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    color: #333;
    background-color: white;
    padding: 18px 24px;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: #fff5ed;
    color: #fb983a;
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: #fb983a;
}

.faq-section .accordion-body {
    padding: 20px 24px;
    color: #666;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    .controls-panel, .download-panel {
        position: static;
        margin-bottom: 20px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .drop-zone-modern {
        padding: 30px 15px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-box {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .about-icon {
        width: 60px;
        height: 60px;
    }
    
    .about-icon i {
        font-size: 28px;
    }
    
    .about-box-title {
        font-size: 18px;
    }
}
