@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #343a40;
    --text-light: #6c757d;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo { font-size: 1.5em; font-weight: 700; }
.logo i { margin-right: 8px; color: var(--primary-color); }
.nav-link {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 50px 0;
}
.hero-section h1 { font-size: 2.5em; margin-bottom: 15px; }
.hero-section p { font-size: 1.1em; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Converter Box */
.converter-box {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 50px;
}

/* Tabs */
.tabs { border-bottom: 1px solid var(--border-color); }
.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}
.tab-button.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-button i { margin-right: 8px; }

.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }
#svg-input { width: 100%; height: 200px; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; font-family: monospace; }

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.drop-zone.dragover { background-color: #e9ecef; }
.drop-zone-icon { font-size: 3em; color: var(--primary-color); margin-bottom: 15px; }
.drop-zone-text { font-size: 1.2em; font-weight: 500; margin: 0 0 5px; }
.drop-zone-subtext { color: var(--text-light); margin: 0 0 20px; }

/* Settings & Preview */
.settings-and-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}
.settings-section h2, .preview-section h2 { margin-top: 0; font-size: 1.2em; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.setting { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; }
.setting label { font-weight: 500; margin-right: 15px; min-width: 80px; }
.setting input[type="range"] { flex-grow: 1; -webkit-appearance: none; appearance: none; height: 8px; background: #ddd; border-radius: 5px; outline: none; }
.setting input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; cursor: pointer; }
.setting input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; cursor: pointer; }
.setting > span { margin-left: 10px; font-weight: 500; }

.checkbox-label { font-weight: 400; cursor: pointer; }

/* Custom Radio Buttons */
.format-options { display: flex; align-items: center; }
.format-options input[type="radio"] { display: none; }
.format-options label {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.format-options input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


.preview-area {
    min-height: 280px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
}
.preview-area img, .preview-area svg { max-width: 100%; max-height: 100%; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary:hover { background-color: #0b5ed7; }
.btn-primary-full {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Features */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 50px 0;
}
.feature-icon { font-size: 2.5em; color: var(--primary-color); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2em; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); line-height: 1.6; }

/* Error Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10%;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content p {
    margin: 0 0 20px;
    font-size: 1.1em;
} 