/* SVG Converter specific styles */

/* Tabs */
.input-tabs, .preview-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn, .preview-tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.tab-btn:hover, .preview-tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active, .preview-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content, .preview-content {
    display: none;
}

.tab-content.active, .preview-content.active {
    display: block;
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
}

.sample-link {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.sample-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.sample-link a:hover {
    text-decoration: underline;
}

/* Paste area */
textarea#svg-paste {
    min-height: 150px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.paste-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-small {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(58, 134, 255, 0.1);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(58, 134, 255, 0.05);
}

.upload-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.file-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.settings {
    margin-top: 2rem;
    display: none;
}

.settings.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.preview-container {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 1rem;
}

.preview-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.preview-content img, 
.preview-content svg {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.preview-content .placeholder {
    color: var(--text-light);
    font-style: italic;
}

.preview-content .error {
    color: #e53935;
    font-weight: 500;
}

.conversion-info {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.conversion-info.active {
    display: block;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: var(--text-color);
}

.quality-value {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: 500;
    min-width: 40px;
}

.download-container {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.download-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .tool-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .input-section, .output-section {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .preview-container {
        min-height: 200px;
    }
}

/* Suggested Tools Section */
.suggested-tools {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.suggested-tools h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tool-card-small {
    background-color: var(--card-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.tool-card-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tool-card-small .icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.tool-card-small .content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.tool-card-small .content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}