/* ============================================
   XML Sitemap Generator - Modern Stylesheet
   tools.suritdevelopers.com Design System
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0EA5E9;
    --primary-light: #BAE6FD;
    --primary-dark: #0284C7;
    --accent: #FF6B6B;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.tool-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: white;
}

.tool-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tool-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Tool Container */
.tool-main {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Tab Content */
.tab-content-wrapper {
    padding: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.sitemap-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group label svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-elevated);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Textarea */
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: 'Monaco', 'Consolas', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

textarea::placeholder {
    color: var(--text-muted);
    font-family: inherit;
}

/* Advanced Options */
.advanced-options {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
}

.advanced-options summary {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.advanced-options summary svg {
    width: 18px;
    height: 18px;
}

.advanced-options summary:hover {
    color: var(--text);
}

.advanced-options[open] summary {
    border-bottom: 1px solid var(--border);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.option-item label svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.option-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-elevated);
    cursor: pointer;
}

.option-item select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    margin-bottom: 1rem;
}

.dropzone-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.dropzone-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.file-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.file-badge {
    background: linear-gradient(135deg, var(--purple-light), #ddd6fe);
    color: var(--purple);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--success-light);
    border-radius: var(--radius-md);
}

.file-selected svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

.file-name {
    font-weight: 600;
    color: var(--text);
}

.btn-remove-file {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-generate {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Progress Section */
.progress-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.progress-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.progress-header span {
    font-weight: 600;
    color: var(--text);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-bar-container {
    height: 12px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Results Section */
.results-section {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.result-card {
    background: linear-gradient(135deg, var(--success-light) 0%, #ecfdf5 100%);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-header svg {
    width: 28px;
    height: 28px;
    color: var(--success);
}

.result-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.stat-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.stat-badge strong {
    color: var(--text);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Edit Section */
.edit-section {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.edit-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.15rem;
}

.edit-header h3 svg {
    width: 20px;
    height: 20px;
    color: var(--warning);
}

.edit-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edit-toolbar .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* URL Search */
.url-search-wrapper {
    margin-bottom: 1rem;
}

.url-search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 16px;
}

.url-search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* URL List */
.url-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
}

.url-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.url-item:last-child {
    border-bottom: none;
}

.url-item:hover {
    background: var(--bg-elevated);
}

.url-item.highlight {
    background: var(--warning-light);
}

.url-number {
    min-width: 2.5rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.url-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Monaco', 'Consolas', monospace;
    background: transparent;
    transition: all 0.2s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.url-delete-btn {
    padding: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.url-delete-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.url-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* URL Normalization Box */
.normalization-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
}

.normalization-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
}

.normalization-box h4 svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.normalization-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.normalization-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Edit Actions */
.edit-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Info Sections */
.info-sections {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.info-container-full {
    width: 100%;
    padding: 2rem 2rem 2.5rem;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-elevated);
    position: relative;
}

.text-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
}

.text-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.about-content a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.feature-icon.green { background: linear-gradient(135deg, var(--success), #059669); }
.feature-icon.purple { background: linear-gradient(135deg, var(--purple), #7C3AED); }
.feature-icon.orange { background: linear-gradient(135deg, var(--warning), #D97706); }

.feature-content h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 1.25rem;
    margin-left: 1rem;
    counter-increment: step;
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-list li:not(:last-child) {
    border-left: 2px solid var(--primary-light);
}

.steps-list li:last-child {
    padding-bottom: 0;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.steps-list li strong {
    color: var(--text);
}

/* Best Practices List */
.best-practices-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.practice-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.practice-item:hover {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.practice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--success-light), #d1fae5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-icon svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

.practice-content strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.practice-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Guidelines Grid */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.guideline-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
}

.guideline-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.guideline-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.guideline-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.tool-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light), #bae6fd);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-dark);
}

.tool-card-content h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

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

/* Accent Bars */
.accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

.accent-bar.tricolor-bgr {
    background: linear-gradient(to right, 
        var(--primary) 0%, var(--primary) 33.33%, 
        var(--success) 33.33%, var(--success) 66.66%, 
        var(--accent) 66.66%, var(--accent) 100%);
}

.accent-bar.tricolor-gry {
    background: linear-gradient(to right, 
        var(--success) 0%, var(--success) 33.33%, 
        var(--accent) 33.33%, var(--accent) 66.66%, 
        var(--warning) 66.66%, var(--warning) 100%);
}

.accent-bar.blue { background: var(--primary); }
.accent-bar.green { background: var(--success); }
.accent-bar.yellow { background: var(--warning); }

/* Alert Messages */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    color: #92400e;
}

.alert-warning svg {
    color: var(--warning);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
}

.alert-info svg {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    
    .tab-content-wrapper {
        padding: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .edit-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edit-toolbar {
        justify-content: center;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .edit-actions .btn {
        width: 100%;
    }
    
    .normalization-buttons {
        flex-direction: column;
    }
    
    .normalization-buttons .btn {
        width: 100%;
    }
    
    .info-container-full {
        padding: 1.5rem 1.5rem 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 0.5rem 0;
    }
    
    .tool-title-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tool-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .tool-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .upload-dropzone {
        padding: 1.5rem;
    }
    
    .dropzone-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .url-item {
        flex-wrap: wrap;
    }
    
    .url-input {
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
    }
    
    .steps-list li {
        padding-left: 3rem;
    }
}

/* Print Styles */
@media print {
    .tool-main,
    .banner-container,
    .info-sections {
        box-shadow: none;
    }
    
    .tab-navigation,
    .progress-section,
    .edit-section,
    .result-actions {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .spin {
        animation: none;
    }
}
