/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-hover: #475569;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
body.light-theme {
    --background: #f8fafc;
    --surface: #f1f5f9;
    --surface-hover: #e2e8f0;
    --border-color: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    background: var(--background) !important;
    color: var(--text-primary) !important;
}

body.light-theme .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .navbar-brand {
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .nav-link {
    color: var(--text-primary) !important;
}

body.light-theme .nav-link:hover {
    color: var(--primary-color) !important;
}

body.light-theme .navbar-toggler {
    border-color: var(--border-color) !important;
}

body.light-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.light-theme .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white;
}

body.light-theme .bg-dark {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.light-theme .btn-outline-light {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.light-theme .btn-outline-light:hover,
body.light-theme .btn-outline-light:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

body.light-theme .btn-outline-light:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

body.light-theme a {
    color: var(--primary-color);
}

body.light-theme a:hover {
    color: var(--primary-dark);
}

body.light-theme .main-container {
    background: var(--background) !important;
}

body.light-theme .text-muted {
    color: var(--text-muted) !important;
}

body.light-theme .form-control {
    background: var(--surface) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.light-theme .form-control:focus {
    background: var(--surface) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

body.light-theme .btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

body.light-theme .btn-outline-secondary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

body.light-theme .style-card {
    background: var(--surface) !important;
    border-color: var(--border-color) !important;
}

body.light-theme .result-text {
    background: var(--background) !important;
    color: var(--text-primary) !important;
}

body.light-theme .feature-card {
    background: var(--background) !important;
}

body.light-theme .step-card {
    background: var(--background) !important;
    border-left-color: var(--primary-color) !important;
}

body.light-theme .accordion-button {
    color: var(--text-primary) !important;
    background-color: var(--surface) !important;
}

body.light-theme .accordion-button:not(.collapsed) {
    background-color: var(--primary-light) !important;
    color: white !important;
}

body.light-theme .accordion-item {
    border-color: var(--border-color) !important;
    background: var(--surface) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 
                 Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.main-container {
    min-height: 100vh;
    background: var(--background);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: #1a1a2e !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ============================================
   INPUT SECTION
   ============================================ */

.input-section {
    padding: 40px 0;
    background: var(--background);
}

.text-input {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    border-radius: var(--radius-lg) !important;
    transition: var(--transition);
}

.text-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    background: var(--surface-hover) !important;
}

.text-input::placeholder {
    color: var(--text-muted) !important;
}

.input-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.btn-outline-secondary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
    padding: 20px 0;
    background: var(--background);
}

.filter-controls {
    display: flex;
    gap: 10px;
    background: var(--surface);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
}

.filter-controls::-webkit-scrollbar {
    height: 4px;
}

.filter-controls::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: var(--radius-md);
}

.filter-controls::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-md);
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-spacer {
    flex: 1;
}

.preview-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.preview-slider {
    width: 100px;
    height: 6px;
    border-radius: var(--radius-md);
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-left: 10px;
    cursor: pointer;
}

.preview-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.preview-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.preview-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.preview-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.preview-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* ============================================
   STYLES SECTION
   ============================================ */

.styles-section {
    padding: 40px 0;
    background: var(--background);
}

.styles-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.styles-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    width: 100%;
}

.style-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.style-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.style-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-text {
    font-size: 1.2rem;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    word-break: break-all;
    min-height: 45px;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-align: center;
}

.style-actions {
    display: flex;
    gap: 8px;
}

.btn-copy {
    flex-grow: 1;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-favorite {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: var(--transition);
}

.btn-favorite:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.btn-favorite.active {
    color: var(--secondary-color);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-card {
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: var(--background);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--background);
}

.about-section h2,
.how-to-section h2,
.faq-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   HOW TO SECTION
   ============================================ */

.how-to-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.step-card {
    background: var(--background);
    padding: 25px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateX(5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    background: var(--background);
}

.accordion-button {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color) !important;
    color: white !important;
}

.accordion-button:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.accordion-body {
    background: var(--background);
    color: var(--text-secondary);
    border-color: var(--border-color) !important;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #0a0e27 !important;
    border-top: 1px solid var(--border-color);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.toast.show {
    bottom: 30px;
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-section h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .input-section {
        padding: 30px 0;
    }

    .input-actions {
        gap: 8px;
    }

    .btn-outline-secondary {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .filter-controls {
        gap: 8px;
        padding: 10px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .styles-container {
        grid-template-columns: 1fr;
    }

    .preview-label {
        display: none;
    }

    .preview-slider {
        width: 80px;
        margin-left: 8px;
    }

    .about-section h2,
    .how-to-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }

    .features-section {
        padding: 30px 0 !important;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .step-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .styles-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .style-card {
        padding: 12px;
    }

    .result-text {
        font-size: 1rem;
        padding: 10px;
    }

    .filter-controls {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.style-card {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-card,
.step-card {
    animation: fadeIn 0.5s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 
                 Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    flex: 1;
    text-align: center;
}

.theme-toggle {
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   INPUT SECTION
   ============================================ */

.input-section {
    margin-bottom: 30px;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--surface-hover);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.btn-favorite {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: var(--transition);
}

.btn-favorite:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.btn-favorite.active {
    color: var(--secondary-color);
}

.btn-copy {
    flex-grow: 1;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.filter-controls {
    display: flex;
    gap: 10px;
    background: var(--surface);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
}

.filter-controls::-webkit-scrollbar {
    height: 4px;
}

.filter-controls::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: var(--radius-md);
}

.filter-controls::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-md);
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-spacer {
    flex: 1;
}

.preview-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.preview-slider {
    width: 100px;
    height: 6px;
    border-radius: var(--radius-md);
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-left: 10px;
    cursor: pointer;
}

.preview-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.preview-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.preview-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.preview-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.preview-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* ============================================
   STYLES CONTAINER
   ============================================ */

.styles-container {
    display: grid;
    gap: 20px;
    margin-bottom: 50px;
}

.styles-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-light);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.style-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.style-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.style-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-text {
    font-size: 1.2rem;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    word-break: break-all;
    min-height: 45px;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-align: center;
}

.style-actions {
    display: flex;
    gap: 8px;
}

.btn-copy {
    flex-grow: 1;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-copy:active {
    transform: translateY(0);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   FOOTER & FAQ
   ============================================ */

.footer {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 50px;
}

.footer h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-light);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.toast.show {
    bottom: 30px;
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        margin-bottom: 25px;
        padding: 15px;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    .header h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .header p {
        font-size: 0.95rem;
    }

    .theme-toggle {
        position: static;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .styles-grid {
        grid-template-columns: 1fr;
    }

    .input-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .filter-controls {
        gap: 8px;
        padding: 10px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .style-card {
        padding: 12px;
    }

    .result-text {
        font-size: 1.1rem;
        min-height: 40px;
    }

    .footer {
        padding: 20px;
    }

    .footer h2 {
        font-size: 1.4rem;
    }

    .preview-label {
        display: none;
    }

    .preview-slider {
        width: 80px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .styles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .text-input {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .style-name {
        font-size: 0.85rem;
    }

    .result-text {
        font-size: 1rem;
        padding: 10px;
    }

    .filter-controls {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.style-card {
    animation: slideIn 0.3s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.btn-primary:hover {
    animation: none;
    transform: translateY(-2px);
}

/* ============================================
   INPUT SECTION
   ============================================ */

.input-section {
    margin-bottom: 30px;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--surface-hover);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.btn-favorite {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: var(--transition);
}

.btn-favorite:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.btn-favorite.active {
    color: var(--secondary-color);
}

.btn-copy {
    flex-grow: 1;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.filter-controls {
    display: inline-flex;
    gap: 10px;
    background: var(--surface);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   STYLES CONTAINER
   ============================================ */

.styles-container {
    display: grid;
    gap: 20px;
    margin-bottom: 50px;
}

.styles-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-light);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.style-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.style-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.style-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-text {
    font-size: 1.2rem;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    word-break: break-all;
    min-height: 45px;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-align: center;
}

.style-actions {
    display: flex;
    gap: 8px;
}

.btn-copy {
    flex-grow: 1;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-copy:active {
    transform: translateY(0);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   FOOTER & FAQ
   ============================================ */

.footer {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 50px;
}

.footer h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-light);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.toast.show {
    bottom: 30px;
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        margin-bottom: 25px;
        padding: 15px;
    }

    .header h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .header p {
        font-size: 0.95rem;
    }

    .styles-grid {
        grid-template-columns: 1fr;
    }

    .input-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .filter-controls {
        gap: 8px;
        padding: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .style-card {
        padding: 12px;
    }

    .result-text {
        font-size: 1.1rem;
        min-height: 40px;
    }

    .footer {
        padding: 20px;
    }

    .footer h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .styles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .text-input {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .style-name {
        font-size: 0.85rem;
    }

    .result-text {
        font-size: 1rem;
        padding: 10px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.style-card {
    animation: slideIn 0.3s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.btn-primary:hover {
    animation: none;
    transform: translateY(-2px);
}
