/* SVG Converter Styles */

.yan-tools-svg-converter {
    margin: 0 auto;
    padding: 20px;
}

.yan-tools-svg-converter .yan-tools-header {
    text-align: center;
    margin-bottom: 40px;
}

.yan-tools-svg-converter .yan-tools-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.yan-tools-svg-converter .yan-tools-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.yan-tools-svg-converter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .yan-tools-svg-converter-content {
        grid-template-columns: 1fr;
    }
}

.yan-tools-conversion-panel {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.yan-tools-conversion-panel h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.yan-tools-conversion-panel .panel-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Upload Zone */
.yan-tools-upload-zone {
    border: 3px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yan-tools-upload-zone:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.yan-tools-upload-zone.dragover {
    border-color: #3498db;
    background: #d1ecf1;
    transform: scale(1.02);
}

.yan-tools-upload-content {
    pointer-events: none;
}

.yan-tools-upload-zone .upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.yan-tools-upload-zone p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.yan-tools-upload-zone .yan-tools-btn {
    pointer-events: all;
}

/* File Info */
.yan-tools-file-info {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.yan-tools-file-info .file-name {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 5px;
}

.yan-tools-file-info .file-size {
    font-size: 13px;
    color: #666;
}

/* Input Panel */
.yan-tools-input-panel {
    margin-bottom: 20px;
}

.yan-tools-input-panel label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
}

.yan-tools-input-panel textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.yan-tools-input-panel textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Result Panel */
.yan-tools-result-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.yan-tools-result-panel h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.yan-tools-code-block {
    position: relative;
    margin-bottom: 15px;
}

.yan-tools-code-block textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #ffffff;
    resize: vertical;
    white-space: pre;
    overflow-x: auto;
}

.yan-tools-code-block .yan-tools-code-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yan-tools-code-block button {
    margin-top: 0;
}

/* Settings Panel */
.yan-tools-settings-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.yan-tools-settings-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.yan-tools-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.yan-tools-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.yan-tools-checkbox-label:hover {
    background: #e8f4f8;
}

.yan-tools-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.yan-tools-checkbox-label span {
    font-size: 14px;
    color: #2c3e50;
    user-select: none;
}

.yan-tools-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.yan-tools-color-picker-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.yan-tools-color-picker-wrapper span {
    font-size: 14px;
    color: #666;
}

/* Stats Panel */
.yan-tools-stats-panel {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stats-label {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

.stats-value {
    font-size: 16px;
    color: #1b5e20;
    font-weight: 700;
}

.stats-value.saved {
    color: #4caf50;
}

/* Export Formats */
.yan-tools-export-formats {
    margin-top: 20px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.yan-tools-export-formats h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #e65100;
    font-size: 16px;
}

.yan-tools-export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yan-tools-export-buttons button {
    font-size: 13px;
    padding: 8px 16px;
}

/* History Panel */
.yan-tools-history-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.yan-tools-history-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.yan-tools-history-list {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.yan-tools-history-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yan-tools-history-item:hover {
    background: #e8f4f8;
    border-color: #3498db;
    transform: translateX(5px);
}

.yan-tools-history-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.yan-tools-history-item-size {
    font-size: 12px;
    color: #666;
}

.yan-tools-history-item-date {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Preview */
.yan-tools-preview {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yan-tools-preview svg {
    max-width: 100%;
    max-height: 400px;
}

/* File Actions */
.yan-tools-file-actions {
    margin-top: 15px;
}

/* Buttons */
.yan-tools-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.yan-tools-btn-primary {
    background: #3498db;
    color: #ffffff;
}

.yan-tools-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.yan-tools-btn-secondary {
    background: #95a5a6;
    color: #ffffff;
}

.yan-tools-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

/* Actions */
.yan-tools-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e8ed;
}

/* Info Panel */
.yan-tools-info-panel {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.yan-tools-info-panel h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.yan-tools-info-panel h4 {
    font-size: 18px;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 10px;
}

.yan-tools-info-panel p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.yan-tools-info-panel ul,
.yan-tools-info-panel ol {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
}

.yan-tools-info-panel li {
    margin-bottom: 8px;
}

.yan-tools-info-panel strong {
    color: #2c3e50;
}

/* Loading state */
.yan-tools-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.yan-tools-success-message {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.yan-tools-success-message.show {
    display: block;
}

/* Error message */
.yan-tools-error-message {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.yan-tools-error-message.show {
    display: block;
}

