:root {
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --border: #e3e8f2;
    --text-main: #1c2333;
    --text-muted: #5f6b85;
    --primary: #0d47fb;
    --primary-dark: #0a2fa3;
    --accent: #8b5cf6;
    --success: #22c55e;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 8px 24px rgba(13, 71, 251, 0.15);
    --gradient: linear-gradient(135deg, #0d47fb 0%, #8b5cf6 100%);
}

/* Tool Hero Section */
.tool-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Panel and Card Styles */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: background 0.3s ease, border 0.3s ease;
}

.tool-card {
    margin-bottom: 40px;
}

.tool-wrapper {
    margin-bottom: 40px;
}

/* Slug Generator Container */
.slug-generator-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--text-main);
    font-weight: 600;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Input Section */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-wrapper {
    position: relative;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slug-input {
    width: 100%;
    padding: 16px;
    
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    transition: all 0.2s ease;
}

.slug-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 251, 0.1);
    background: var(--surface);
}

.slug-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Options Panel */
.options-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-muted);
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.options-header:hover {
    background: rgba(13, 71, 251, 0.05);
}

.options-header h3 {
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

.options-header i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.options-header.active i {
    transform: rotate(180deg);
}

.options-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.options-content.active {
    max-height: 500px;
    padding: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.separator-group {
    grid-column: span 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0;
}

.label-text {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.length-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.length-input {
    width: 80px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.length-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 71, 251, 0.1);
}

.length-label {
    font-size: 13px;
    color: var(--text-muted);
}

.select-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.separator-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.separator-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 71, 251, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-modern:hover {
    background: var(--surface-muted);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-action-modern:active {
    transform: translateY(0);
}

.btn-action-modern i {
    font-size: 13px;
}

/* Output Section */
.output-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slug-output-wrapper {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.slug-output {
    
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
    line-height: 1.6;
    padding: 16px;
    background: var(--surface);
    border-radius: 8px;
    border: 2px solid var(--border);
    margin-bottom: 16px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.slug-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-url {
    
    font-size: 14px;
    color: var(--text-main);
    word-break: break-all;
    padding: 12px;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.output-actions {
    display: flex;
    gap: 8px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 71, 251, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    font-size: 12px;
}

/* Variations Section */
.variations-section {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    padding: 20px;
}

.variations-header {
    margin-bottom: 16px;
}

.variations-header h3 {
    color: var(--text-main);
    font-weight: 600;
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.variation-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 251, 0.1);
}

.variation-info {
    flex: 1;
    min-width: 0;
}

.variation-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.variation-slug {
    
    font-size: 14px;
    color: var(--text-main);
    word-break: break-all;
}

.variation-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-variation-copy {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-variation-copy:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-variation-copy i {
    font-size: 11px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .panel {
        padding: 24px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-text h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    .panel {
        padding: 20px;
        border-radius: 16px;
    }

    .slug-input {
        font-size: 15px;
        padding: 14px;
    }

    .slug-output {
        font-size: 16px;
        padding: 14px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-action-modern {
        width: 100%;
        justify-content: center;
    }

    .variation-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .variation-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tool-hero {
        gap: 20px;
        margin-bottom: 1.5rem;
    }

    .slug-input {
        font-size: 14px;
        padding: 12px;
    }

    .slug-output {
        font-size: 15px;
        padding: 12px;
    }

    .preview-url {
        font-size: 12px;
        padding: 10px;
    }

    .options-content.active {
        padding: 16px;
    }

    .variations-section {
        padding: 16px;
    }
}

