/* Professional Image Editor Styles */

/* Modern Upload Tabs */
.nav-pills .nav-link {
    color: #666;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: #e9ecef;
    color: #333;
}

.nav-pills .nav-link.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.drop-zone-modern {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 800px;
    margin: 0 auto;
}

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

.upload-icon {
    color: #fb983a;
}

.drop-zone-modern h4 {
    color: #333;
    font-weight: 600;
}

.drop-zone-modern .text-muted {
    color: #6c757d;
}

.drop-zone-modern .btn {
    transition: all 0.3s ease;
}

.drop-zone-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 152, 58, 0.3);
}

/* Upload Box */
.editor-upload-box {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 650px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.editor-upload-box:hover {
    border-color: #fb983a;
    background: #fff5ed;
}

.editor-upload-box svg {
    color: #fb983a;
}

/* Editor Interface */
.editor-interface {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

/* Toolbar */
.editor-toolbar {
    background: white;
    padding: 12px 15px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #e0e0e0;
}

.toolbar-section:last-child {
    border-right: none;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.tool-btn:hover {
    background: #f0f0f0;
    color: #fb983a;
}

.tool-btn.active {
    background: #fb983a;
    color: white;
}

#colorPicker {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.zoom-level {
    display: inline-block;
    min-width: 50px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Editor Workspace */
.editor-workspace {
    display: flex;
    min-height: 900px;
    background: #f8f9fa;
}

/* Tools Panel (Left) */
.tools-panel {
    width: 280px;
    background: white;
    border-right: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.panel-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.panel-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.panel-tab:hover {
    background: rgba(251, 152, 58, 0.1);
    color: #fb983a;
}

.panel-tab.active {
    background: white;
    color: #fb983a;
    border-bottom-color: #fb983a;
}

.panel-tab i {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.tool-panel {
    display: none;
    padding: 20px;
    overflow-y: auto;
    max-height: 850px;
}

.tool-panel.active {
    display: block;
}

.panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-item {
    margin-bottom: 20px;
}

.control-item label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.control-item .value {
    color: #fb983a;
    font-weight: 700;
}

.control-item input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fb983a;
    cursor: pointer;
    transition: all 0.2s;
}

.control-item input[type="range"]::-webkit-slider-thumb:hover {
    background: #e88930;
    transform: scale(1.2);
}

.control-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fb983a;
    cursor: pointer;
    border: none;
}

/* Shape Buttons */
.shape-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shape-btn {
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.shape-btn:hover {
    border-color: #fb983a;
    color: #fb983a;
    background: #fff5ed;
}

.shape-btn i {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

/* Filter Presets */
.filter-presets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.filter-btn:hover {
    border-color: #fb983a;
    color: #fb983a;
    background: #fff5ed;
    transform: translateY(-2px);
}

.filter-btn.active {
    border-color: #fb983a;
    background: #fb983a;
    color: white;
}

.filter-preview {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    margin-bottom: 6px;
}

/* Canvas Area */
.canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f0f0f0;
    overflow: auto;
}

.canvas-container {
    position: relative;
}

#fabricCanvas {
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    display: block;
}

/* Layers Panel (Right) */
.layers-panel {
    width: 280px;
    background: white;
    border-left: 2px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .tools-panel, .layers-panel {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    .tools-panel, .layers-panel {
        width: 220px;
    }
    
    .editor-workspace {
        min-height: 800px;
    }
}

@media (max-width: 992px) {
    .editor-workspace {
        flex-direction: column;
    }
    
    .tools-panel {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        max-height: 400px;
    }
    
    .layers-panel {
        width: 100%;
        border-left: none;
        border-top: 2px solid #e0e0e0;
        max-height: 300px;
    }
    
    .canvas-area {
        min-height: 500px;
    }
}

.layer-controls {
    display: flex;
    gap: 8px;
}

.layer-controls .btn {
    flex: 1;
}

.layers-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.layer-item {
    background: white;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.layer-item:hover {
    background: #fff5ed;
    border-color: #fb983a;
}

.layer-item.active {
    background: #fb983a;
    color: white;
}

.layer-item i {
    margin-right: 8px;
}

.layer-item .layer-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.layer-visibility {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.layer-visibility:hover {
    background: rgba(0,0,0,0.1);
}

/* Feature Icons */
.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff5ed 0%, #ffe8d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fb983a;
    transition: all 0.3s;
}

.feature-icon-circle:hover {
    background: linear-gradient(135deg, #fb983a 0%, #ff6b35 100%);
    color: white;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tools-panel {
        width: 240px;
    }
    .layers-panel {
        width: 240px;
    }
}

@media (max-width: 992px) {
    .editor-workspace {
        flex-direction: column;
    }
    
    .tools-panel,
    .layers-panel {
        width: 100%;
        border: none;
        border-top: 2px solid #e0e0e0;
    }
    
    .tool-panel {
        max-height: 300px;
    }
    
    .canvas-area {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .editor-upload-box {
        height: 250px;
        padding: 30px 20px;
    }

    .editor-upload-box svg {
        width: 48px;
        height: 48px;
    }

    .editor-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .toolbar-section {
        padding-right: 8px;
    }

    .tool-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .editor-upload-box {
        height: 220px;
        padding: 25px 15px;
    }

    .editor-upload-box h4 {
        font-size: 16px;
    }

    .editor-upload-box svg {
        width: 40px;
        height: 40px;
    }

    .panel-tabs {
        overflow-x: auto;
    }

    .panel-tab {
        min-width: 70px;
    }
}

/* About Section Box Model Styles */
.about-box-model {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.about-box-model:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-box-model.about-box-small {
    padding: 25px;
    min-height: 250px;
}

.about-box-model.about-box-highlight {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea40;
}

.about-box-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fb983a, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(251, 152, 58, 0.3);
}

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

.about-box-icon-small {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-box-icon-small.gradient-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.about-box-icon-small.gradient-green {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.about-box-icon-small i {
    font-size: 28px;
    color: white;
}

.about-box-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd89b, #fb983a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(251, 152, 58, 0.3);
}

.about-box-icon-large i {
    font-size: 42px;
    color: white;
}

.about-box-content {
    flex: 1;
}

.about-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.about-box-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.about-box-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.about-box-text-small {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments for box model */
@media (max-width: 768px) {
    .about-box-model {
        flex-direction: column;
        padding: 25px 20px;
    }
    
    .about-box-icon {
        width: 70px;
        height: 70px;
    }
    
    .about-box-icon i {
        font-size: 30px;
    }
    
    .about-box-icon-large {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .about-box-icon-large i {
        font-size: 36px;
    }
    
    .about-box-title {
        font-size: 1.3rem;
    }
    
    .about-box-subtitle {
        font-size: 1.15rem;
    }
}
