/* Image to SVG Converter Styles */
.converter-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.converter-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.converter-box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-area {
    border: 3px dashed #4a90e2;
    border-radius: 12px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-area:hover,
.upload-area.dragover {
    background-color: #e9ecef;
    border-color: #357abd;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 3.5rem;
    color: #4a90e2;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    z-index: 0;
}

.upload-area:hover i {
    transform: scale(1.1);
}

.upload-area h3 {
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-size: 1.5rem;
    z-index: 0;
}

.upload-area p {
    color: #666;
    font-size: 1rem;
    z-index: 0;
}

.preview-section {
    margin-top: 2.5rem;
}

.preview-container {
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.result-section {
    margin-top: 2.5rem;
}

.result-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.code-container {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.code-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4d4d4;
}

.code-container code {
    display: block;
    padding: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Custom Button Styles */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #4a90e2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .converter-section {
        padding: 1rem;
    }

    .converter-box {
        padding: 1.5rem;
        min-height: 300px;
    }

    .upload-area {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .upload-area i {
        font-size: 2.5rem;
    }

    .upload-area h3 {
        font-size: 1.2rem;
    }

    .controls {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .code-container {
        max-height: 300px;
    }
}

/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .converter-section {
        padding: 1.5rem;
    }

    .converter-box {
        padding: 2rem;
        min-height: 350px;
    }

    .upload-area {
        padding: 2.5rem;
        min-height: 280px;
    }
}

/* Result Tabs */
.result-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    margin-top: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* SVG Preview */
.svg-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-preview svg {
    max-width: 100%;
    height: auto;
}

/* Link Container */
.link-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.copy-link-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-link-btn:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .copy-link-btn {
        width: 100%;
    }
} 