/* Font Face Declarations */
@font-face {
    font-family: 'Axis Std';
    src: local('Axis Std Light'),
         url('fonts/AxisStd-Light.woff2') format('woff2'),
         url('fonts/AxisStd-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Andale Mono';
    src: local('Andale Mono'),
         url('fonts/AndaleMono.woff2') format('woff2'),
         url('fonts/AndaleMono.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Axis Std', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.8rem;
}

::selection {
    background: white;
    color: black;
}

::-moz-selection {
    background: white;
    color: black;
}

.adjust-spacing {
    word-spacing: -0.4em;
}

/* App Layout */
.app {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Andale Mono', monospace;
    font-variant: small-caps;
    font-size: 1.1rem;
    letter-spacing: 0.075em;
    font-weight: 400;
    color: #ffffff;
    word-spacing: -0.4em;
}

.logo .material-icons {
    font-size: 28px;
    color: #ffffff;
}

/* Navigation Steps */
.nav-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.05) 0%, rgba(156, 163, 175, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    pointer-events: none;
}

.step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.step:hover {
    background: #252525;
    border-color: #7c7c7c;
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(156, 163, 175, 0.2), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.step:hover::before {
    opacity: 1;
}

.step:hover::after {
    left: 100%;
}

.step:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 6px 18px rgba(156, 163, 175, 0.2), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.step:active {
    transform: translateX(2px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    background: #2a2a2a;
    border-color: #9ca3af;
}

.step.completed {
    background: #1a3a1a;
    border-color: #22c55e;
}

.step.in-progress {
    background: #2a2a1a;
    border-color: #eab308;
}

.step.disabled {
    background: #1a1a1a;
    border-color: #404040;
    opacity: 0.5;
}

.step.disabled:hover {
    background: #1a1a1a;
    border-color: #404040;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.2s ease;
}

.step-icon svg {
    width: 18px;
    height: 18px;
    color: inherit;
}

.step-icon .material-icons {
    font-size: 18px;
    color: inherit;
}

.step.active .step-icon {
    background: #9ca3af;
    color: white;
}

.step.completed .step-icon {
    background: #22c55e;
    color: white;
}

.step.in-progress .step-icon {
    background: #eab308;
    color: #1a1a1a;
}

.step.disabled .step-icon {
    background: #404040;
    color: #666;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 300;
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: #e0e0e0;
    letter-spacing: 0.02em;
}

.required-indicator {
    color: #ef4444;
    font-weight: 400;
    margin-left: 2px;
}

/* Required Field Legends */
.required-legend {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-legend {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 12px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: italic;
}

.step-progress {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background: #121212;
    min-width: 0; /* Allow flex item to shrink below content size */
    max-width: 1200px;
    margin-right: auto;
}

/* Step Sections */
.step-section {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.step-section.active {
    display: block;
}

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

.step-header {
    margin-bottom: 40px;
}

.step-header h1 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-header p {
    font-size: 1rem;
    color: #aaa;
}

.step-description {
    background: rgba(156, 163, 175, 0.08);
    border: 1px solid rgba(156, 163, 175, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.step-description p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.step-description strong {
    color: #e0e0e0;
    font-weight: 500;
}

/* Step Title Row */
.step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 0.5rem;
}

.step-title-row h1 {
    margin: 0;
    flex: 1;
}

/* Completion Indicators */
.completion-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.completion-bar {
    width: 120px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.completion-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.completion-text {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

/* Completion quality states */
.completion-fill.low-quality {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.completion-fill.medium-quality {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.completion-fill.high-quality {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .step-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .completion-indicator {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .completion-bar {
        flex: 1;
        max-width: 200px;
    }
}

/* Form Sections */
.form-section {
    margin-bottom: 48px;
    width: 100%;
}

.form-section h2 {
    font-size: 1.0rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.form-subtitle {
    font-size: 0.875rem;
    color: #aaa;
    margin-bottom: 24px;
}

.form-section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

/* Help Tooltips */
.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.help-tooltip:hover {
    color: #e0e0e0;
}

.help-tooltip .material-icons {
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.help-tooltip:hover .material-icons {
    opacity: 1;
}

.help-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    text-align: left;
    border: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(8px);
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: #2a2a2a;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.help-tooltip:hover::before,
.help-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Responsive tooltip adjustments */
@media (max-width: 768px) {
    .help-tooltip::before {
        width: 250px;
        font-size: 0.75rem;
        padding: 10px 12px;
    }
    
    .help-tooltip .material-icons {
        font-size: 14px;
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.form-group label .material-icons {
    font-size: 18px;
    color: #e0e0e0;
    flex-shrink: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #1e1e1e;
    color: #e0e0e0;
    position: relative;
    transform: translateZ(0);
    word-spacing: normal; /* Fix iOS Safari apostrophe spacing bug */
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #666;
    background: #252525;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9ca3af;
    background: #252525;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(156, 163, 175, 0.25), 0 0 0 3px rgba(156, 163, 175, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

/* Option Grids */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.option-card {
    padding: 24px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(156, 163, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    pointer-events: none;
}

.option-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.option-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.option-card:hover::before {
    opacity: 1;
}

.option-card:hover::after {
    left: 100%;
}

.option-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.option-card:active {
    transform: translateY(-1px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.option-card.selected::before {
    opacity: 0.8;
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #aaa;
}

.option-card.selected .option-icon {
    background: #9ca3af;
    color: white;
}

.option-card h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #ffffff;
}

.option-card p {
    color: #aaa;
    font-size: 0.75rem;
}

/* Layout Previews */
.layout-preview {
    margin-bottom: 16px;
}

.layout-box {
    height: 60px;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    gap: 4px;
    padding: 8px;
}

.layout-box.single-col {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border: none;
}

.layout-box.two-col .col:first-child {
    flex: 2;
    background: #9ca3af;
    border-radius: 2px;
}

.layout-box.two-col .col:last-child {
    flex: 1;
    background: #6b7280;
    border-radius: 2px;
}

.layout-box.three-col .col {
    flex: 1;
    border-radius: 2px;
}

.layout-box.three-col .col:nth-child(1) { background: #9ca3af; }
.layout-box.three-col .col:nth-child(2) { background: #6b7280; }
.layout-box.three-col .col:nth-child(3) { background: #4b5563; }

.layout-box.four-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
}

.layout-box.four-col .col {
    border-radius: 2px;
}

.layout-box.four-col .col:nth-child(1) { background: #9ca3af; }
.layout-box.four-col .col:nth-child(2) { background: #6b7280; }
.layout-box.four-col .col:nth-child(3) { background: #4b5563; }
.layout-box.four-col .col:nth-child(4) { background: #374151; }

/* Masonry Layout */
.layout-box.masonry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(15, 1fr);
    gap: 1px;
    padding: 2px;
}

.masonry-item {
    border-radius: 2px;
}

.masonry-item.short {
    background: #9ca3af;
}

.masonry-item.medium {
    background: #6b7280;
}

.masonry-item.tall {
    background: #4b5563;
}

/* Specific positioning for masonry effect */
.masonry-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 6;
}

.masonry-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 4;
}

.masonry-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / 7;
}

.masonry-item:nth-child(4) {
    grid-column: 1;
    grid-row: 6 / 9;
}

.masonry-item:nth-child(5) {
    grid-column: 2;
    grid-row: 4 / 10;
}

.masonry-item:nth-child(6) {
    grid-column: 3;
    grid-row: 7 / 12;
}

.layout-box.custom-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #374151, #4b5563);
}

.custom-icon {
    color: #9ca3af;
    font-size: 24px;
}

.custom-icon .material-icons {
    color: inherit;
}

/* Custom Layout Form */
.custom-layout-form,
.custom-design-form {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-layout-form[style*="block"],
.custom-design-form[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}

.custom-layout-form .form-group,
.custom-design-form .form-group {
    margin: 0;
}

.custom-layout-form label,
.custom-design-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 12px;
}

.custom-layout-form label .material-icons,
.custom-design-form label .material-icons {
    font-size: 20px;
    color: #9ca3af;
}

.custom-layout-form textarea,
.custom-design-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #f3f4f6;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-layout-form textarea:focus,
.custom-design-form textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-layout-form textarea:hover,
.custom-design-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
}

.custom-layout-form textarea::placeholder,
.custom-design-form textarea::placeholder {
    color: #9ca3af;
}

.custom-layout-form .form-help,
.custom-design-form .form-help {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Toggle Groups */
.toggle-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.toggle-btn {
    padding: 12px 24px;
    border: 1px solid #444;
    background: #1e1e1e;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.75rem;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(156, 163, 175, 0.15) 0%,
        rgba(156, 163, 175, 0.25) 50%,
        rgba(156, 163, 175, 0.15) 100%
    );
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toggle-btn:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(124, 124, 124, 0.15);
}

.toggle-btn:hover::before {
    left: 100%;
}

.toggle-btn:active::after {
    opacity: 1;
    transform: scale(1);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.toggle-btn.active {
    background: #9ca3af;
    border-color: #9ca3af;
    color: white;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.toggle-btn.active:hover {
    background: #8B8DA0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(156, 163, 175, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.sub-options {
    margin-top: 24px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.sub-options h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #ffffff;
}

.option-description {
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
}

/* Design System Cards */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.design-card {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.design-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.design-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.design-card:hover::before {
    left: 100%;
}

.design-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.design-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Design System Previews */
.design-preview {
    height: 100px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

/* Material Design */
.material-preview {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.material-button {
    width: 50px;
    height: 24px;
    background: #1976d2;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.material-card {
    width: 80%;
    padding: 8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-text-line {
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin: 2px 0;
}

.material-text-line.short {
    width: 60%;
}


/* Apple Human Interface */
.apple-preview {
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
}

.apple-button {
    width: 50px;
    height: 24px;
    background: #007aff;
    border-radius: 12px;
}

.apple-card {
    width: 80%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.apple-text-line {
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    margin: 2px 0;
}

.apple-text-line.short {
    width: 60%;
}

/* Tailwind Style */
.tailwind-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tailwind-button {
    width: 50px;
    height: 24px;
    background: #3b82f6;
    border-radius: 6px;
}

.tailwind-card {
    width: 80%;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tailwind-text-line {
    height: 3px;
    background: #374151;
    border-radius: 2px;
    margin: 2px 0;
}

.tailwind-text-line.short {
    width: 60%;
}

/* shadcn/ui */
.shadcn-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.shadcn-button {
    width: 50px;
    height: 24px;
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid #0f172a;
}

.shadcn-card {
    width: 80%;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadcn-text-line {
    height: 3px;
    background: #64748b;
    border-radius: 2px;
    margin: 2px 0;
}

.shadcn-text-line.short {
    width: 60%;
}

/* Neumorphism */
.neumorphism-preview {
    background: #e0e5ec;
}

.neumorphism-button {
    width: 50px;
    height: 24px;
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow: 6px 6px 12px #a3a8b0, -6px -6px 12px #ffffff;
}

.neumorphism-card {
    width: 80%;
    padding: 8px;
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px #a3a8b0, inset -4px -4px 8px #ffffff;
}

.neumorphism-text-line {
    height: 3px;
    background: #8e9297;
    border-radius: 2px;
    margin: 2px 0;
}

.neumorphism-text-line.short {
    width: 60%;
}

/* Digital Brutalism */
.brutalism-preview {
    background: linear-gradient(45deg, #1a1a1a 0%, #f5f5f5 50%, #1a1a1a 100%);
}

.brutalism-button {
    width: 50px;
    height: 24px;
    background: #2d2d2d;
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 4px 4px 0px #000000;
}

.brutalism-card {
    width: 80%;
    padding: 8px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 6px 6px 0px #000000;
}

.brutalism-text-line {
    height: 4px;
    background: #000000;
    border-radius: 0;
    margin: 2px 0;
}

.brutalism-text-line.short {
    width: 60%;
}

/* Glassmorphism */
.glassmorphism-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
}

.glassmorphism-button {
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.glassmorphism-card {
    width: 80%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(15px);
}

.glassmorphism-text-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    margin: 2px 0;
}

.glassmorphism-text-line.short {
    width: 60%;
}

/* Custom Design Preview */
.custom-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-design-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.custom-design-icon .material-icons {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Theme Cards */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.theme-card {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.theme-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.theme-card:hover::before {
    left: 100%;
}

.theme-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.theme-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.theme-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 8px;
    background: #2a2a2a;
}

.theme-preview .material-icons {
    font-size: 32px;
    color: #aaa;
}

.color-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.blue { background: #3b82f6; }
.dot.dark { background: #1e293b; }
.dot.dark-blue { background: #1e40af; }
.dot.purple { background: #a855f7; }
.dot.pink { background: #ec4899; }
.dot.yellow { background: #eab308; }
.dot.gray { background: #6b7280; }

/* Typography Cards */
.typography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
    width: 100%;
}

.typography-card {
    padding: 24px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.typography-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.typography-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.typography-card:hover::before {
    left: 100%;
}

.typography-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.typography-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.typography-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.font-preview h4 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #ffffff;
}

.font-preview p {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.font-preview .small {
    font-size: 14px;
    color: #aaa;
}

/* Typography Font Families */
.font-inter { font-family: 'Inter', sans-serif; }
.font-playfair { font-family: 'Playfair Display', serif; }
.font-source-serif { font-family: 'Source Serif Pro', serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-open-sans { font-family: 'Open Sans', sans-serif; }

.font-heading {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.font-body {
    font-weight: 400;
    font-size: 14px;
    color: #64748b;
}

/* Border Radius Options */
.radius-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.radius-option {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.radius-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.radius-option:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.radius-option:hover::before {
    left: 100%;
}

.radius-option:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.radius-option:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.radius-option.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.radius-preview {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.shape {
    width: 24px;
    height: 24px;
    background: #9ca3af;
}

.shape.rect {
    width: 32px;
    height: 24px;
}

.shape.pill {
    width: 40px;
    height: 16px;
}

.none-radius .rect { border-radius: 0px; }
.none-radius .pill { border-radius: 0px; }
.small-radius .rect { border-radius: 3px; }
.small-radius .pill { border-radius: 3px; }
.medium-radius .rect { border-radius: 8px; }
.medium-radius .pill { border-radius: 8px; }
.large-radius .rect { border-radius: 12px; }
.large-radius .pill { border-radius: 12px; }
.full-radius .rect { border-radius: 20px; }
.full-radius .pill { border-radius: 20px; }

/* Icon Style Cards */
.icon-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.icon-style-card {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
}

.icon-style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.icon-style-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.icon-style-card:hover::before {
    left: 100%;
}

.icon-style-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.icon-style-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-style-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.icon-style-card h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-style-card p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.icon-preview {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
}

.icon-preview .material-icons,
.icon-preview .material-icons-outlined {
    font-size: 20px;
    color: #aaa;
}

.line-icons .material-icons-outlined {
    font-weight: 400;
    color: #aaa;
    font-family: 'Material Icons Outlined' !important;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.duotone-icons .material-icons {
    background: linear-gradient(135deg, #9ca3af 50%, #6b7280 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-icons .material-icons {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Illustration Cards */
.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.illustration-card {
    padding: 24px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.illustration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.illustration-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.illustration-card:hover::before {
    left: 100%;
}

.illustration-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.illustration-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.illustration-preview {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.flat-illustration .shapes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flat-illustration .shape {
    width: 20px;
    height: 20px;
}

.flat-illustration .circle {
    border-radius: 50%;
}

.flat-illustration .blue { background: #3b82f6; }
.flat-illustration .green { background: #10b981; }
.flat-illustration .yellow { background: #f59e0b; }

.isometric-illustration .iso-cube {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    transform: perspective(100px) rotateX(30deg) rotateY(30deg);
}

.hand-drawn-illustration .hand-drawn-shape {
    width: 40px;
    height: 40px;
    border: 3px solid #64748b;
    border-radius: 50%;
    position: relative;
}

.hand-drawn-illustration .hand-drawn-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 50%;
}

.minimal-line-illustration .minimal-shape {
    width: 40px;
    height: 40px;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    position: relative;
}

.minimal-line-illustration .minimal-shape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
}

/* Functionality Cards */
.functionality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    width: 100%;
}

.functionality-card {
    padding: 24px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.functionality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.functionality-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(124, 124, 124, 0.25);
    animation: materialGlow 0.8s ease-out;
}

.functionality-card:hover::before {
    left: 100%;
}

.functionality-card:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.functionality-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.functionality-card.selected {
    border-color: #9ca3af;
    background: #2a2a2a;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.3), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.functionality-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 16px;
}

.functionality-card.selected .functionality-badge {
    background: #9ca3af;
    color: white;
}

.functionality-card h4 {
    color: #ffffff;
    font-weight: 400;
}

.functionality-card p {
    color: #d1d1d1;
}

.examples {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #b3b3b3;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
    width: 100%;
}

.requirement-card {
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.requirement-card:hover {
    border-color: #7c7c7c;
    background: #252525;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(124, 124, 124, 0.2);
}

.requirement-card:hover::before {
    left: 100%;
}

.requirement-card:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.requirement-card input[type="checkbox"] {
    display: none;
}

.requirement-card label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
}

.requirement-card label::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: rgba(156, 163, 175, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    pointer-events: none;
}

.requirement-card input[type="checkbox"]:checked + label {
    background: #2a2a2a;
    border-color: #9ca3af;
    box-shadow: 0 0 20px rgba(156, 163, 175, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.requirement-card input[type="checkbox"]:checked + label::after {
    opacity: 1;
    transform: scale(1);
}

.requirement-card .material-icons {
    font-size: 24px;
    color: #aaa;
    transition: color 0.2s ease;
}

.requirement-card input[type="checkbox"]:checked + label .material-icons {
    color: #9ca3af;
}

.requirement-card h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #ffffff;
}

.requirement-card p {
    font-size: 14px;
    color: #aaa;
}

/* Features Builder */
.features-builder {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
}

.feature-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: #2a2a2a;
    color: #e0e0e0;
    word-spacing: normal; /* Fix iOS Safari apostrophe spacing bug */
}

.feature-input-group input:focus {
    outline: none;
    border-color: #007bff;
}

.features-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    color: #e0e0e0;
    width: auto;
}

.feature-item:hover {
    background: #333;
}

.feature-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.feature-edit-input {
    background: #1e1e1e;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 16px;
    flex: 1;
    min-width: 200px;
}

.feature-edit-input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.3);
}

.edit-btn, .save-btn, .cancel-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #aaa;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    color: #007acc;
    background: rgba(0, 122, 204, 0.1);
    transform: scale(1.1);
}

.save-btn:hover {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    transform: scale(1.1);
}

.cancel-btn:hover {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.1);
}

.edit-btn .material-icons,
.save-btn .material-icons,
.cancel-btn .material-icons {
    font-size: 16px;
}

/* Sitemap Builder */
.sitemap-builder {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
}

.page-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.page-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: #2a2a2a;
    color: #e0e0e0;
    word-spacing: normal; /* Fix iOS Safari apostrophe spacing bug */
}

.page-input-group input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.page-input-group input::placeholder {
    color: #666;
}

.pages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #333;
    border-radius: 6px;
    font-size: 14px;
    color: #e0e0e0;
}

.remove-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #aaa;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.remove-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    pointer-events: none;
}

.remove-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.remove-btn:hover::before {
    opacity: 1;
}

.remove-btn:active {
    transform: scale(1.1);
}

.remove-btn:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3), 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.remove-btn .material-icons {
    font-size: 16px;
}

.helper-text {
    font-size: 14px;
    color: #aaa;
    margin-top: 16px;
    line-height: 1.5;
}

/* Custom Features */
.custom-features-builder {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
}

.feature-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.feature-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: #2a2a2a;
    color: #e0e0e0;
}

.feature-input-group input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.feature-input-group input::placeholder {
    color: #666;
}

.feature-input-group .btn {
    align-self: flex-start;
    white-space: nowrap;
}

.custom-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.custom-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #333;
    border-radius: 6px;
    font-size: 14px;
    color: #e0e0e0;
    width: auto;
    white-space: nowrap;
}

/* Material Design Animation System */
@keyframes materialRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes materialSweep {
    0% {
        transform: translateX(-100%) skewX(-12deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%) skewX(-12deg);
        opacity: 0;
    }
}

@keyframes materialGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(156, 163, 175, 0);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(156, 163, 175, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(156, 163, 175, 0);
    }
}

/* Material Design Elevation Levels */
.material-elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.material-elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.material-elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.material-elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.material-elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-12deg);
}

.btn:active::after {
    opacity: 1;
    transform: scale(1);
    transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: #374151;
    color: white;
    border-color: #374151;
    box-shadow: 0 2px 4px rgba(55, 65, 81, 0.2);
}

.btn-primary:hover {
    background: #1f2937;
    border-color: #1f2937;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(55, 65, 81, 0.4), 0 6px 12px rgba(0, 0, 0, 0.3);
    animation: materialGlow 0.6s ease-out;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 12px 32px rgba(55, 65, 81, 0.4), 0 0 0 3px rgba(55, 65, 81, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.btn-secondary {
    background: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #2a2a2a;
    border-color: #666;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(68, 68, 68, 0.2);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(68, 68, 68, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Step Actions */
.step-actions {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.step-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    white-space: nowrap;
    min-width: auto;
    font-size: 0.95rem;
}

.step-actions .btn .material-icons {
    font-size: 18px;
}

/* Summary Styles */
.summary-content {
    max-width: 1000px;
}

.generated-prompt-section {
    margin-bottom: 48px;
}

.generated-prompt-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.generated-prompt-section p {
    text-align: left;
    margin-bottom: 16px;
}

.prompt-box {
    position: relative;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px 140px 24px 24px;
    margin-top: 16px;
    min-height: 120px;
}

.prompt-text {
    font-family: 'Andale Mono', 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #374151;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.copy-btn:hover {
    background: #1f2937;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(55, 65, 81, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.copy-btn:hover::before {
    transform: translateX(100%) skewX(-12deg);
}

.copy-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.copy-btn:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(55, 65, 81, 0.4), 0 0 0 3px rgba(55, 65, 81, 0.3);
}

.summary-sections {
    display: grid;
    gap: 24px;
    margin-bottom: 48px;
}

.summary-section {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
}

.summary-section h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #ffffff;
}

.summary-section h2 > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-section h2 .material-icons {
    margin: 0;
}

.edit-btn {
    background: #333;
    border: 1px solid #444;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    color: #aaa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.edit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.1), transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.edit-btn:hover {
    background: #444;
    color: #e0e0e0;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.edit-btn:hover::before {
    left: 100%;
}

.edit-btn:active {
    transform: scale(1.05);
}

.edit-btn:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(156, 163, 175, 0.3);
}

.edit-btn .material-icons {
    font-size: 16px;
    margin: 0;
}

.summary-details {
    color: #aaa;
    line-height: 1.6;
}

.summary-item {
    margin-bottom: 8px;
}

.summary-item strong {
    color: #e0e0e0;
    font-weight: 400;
}

.export-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

/* Export Recommendations Section */
.export-recommendations {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.recommendation-text h3 {
    color: #f3f4f6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}

.recommendation-text p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.recommendation-text strong {
    color: #60a5fa;
    font-weight: 600;
}

.btn-large {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
        padding: 24px;
        max-width: 1200px;
        margin-right: auto;
    }
    
    .form-section-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Medium height viewports - compact navigation */
@media (max-height: 800px) {
    .sidebar {
        padding: 20px;
    }
    
    .sidebar-header {
        margin-bottom: 24px;
    }
    
    .nav-steps {
        gap: 12px;
    }
    
    .step {
        padding: 12px;
        gap: 12px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        border-radius: 5px;
    }
    
    .step-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .step-icon .material-icons {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .logo {
        gap: 10px;
        font-size: 1rem;
    }
    
    .logo .material-icons {
        font-size: 24px;
    }
}

/* Very short viewports - ultra compact */
@media (max-height: 700px) {
    .sidebar {
        padding: 16px;
    }
    
    .sidebar-header {
        margin-bottom: 20px;
    }
    
    .nav-steps {
        gap: 10px;
    }
    
    .step {
        padding: 10px;
        gap: 10px;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }
    
    .step-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .step-icon .material-icons {
        font-size: 14px;
    }
    
    .step-title {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .logo {
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .logo .material-icons {
        font-size: 22px;
    }
    
    .sidebar-help {
        padding-top: 16px;
    }
    
    .help-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .help-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-hamburger {
    width: 20px;
    height: 16px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #e3e3e3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    position: relative;
}

.mobile-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
}

.mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: -7px;
}

.mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Andale Mono', monospace;
    font-variant: small-caps;
    font-size: 1rem;
    letter-spacing: 0.075em;
    font-weight: 400;
    color: #ffffff;
    word-spacing: -0.4em;
}

.mobile-logo svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Mobile overlay backdrop */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Global Progress Indicator */
.global-progress-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.global-progress-indicator.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.global-progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.global-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.global-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: globalProgressShimmer 2.5s infinite;
}

@keyframes globalProgressShimmer {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(100%); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.global-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.global-progress-text span {
    font-size: 0.8rem;
    color: #e0e0e0;
    font-weight: 500;
}

.global-progress-step {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Prevent mobile zoom on text inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Global Progress Indicator */
    .global-progress-indicator {
        top: auto;
        bottom: 20px;
        left: 16px;
        right: 16px;
        width: auto;
        min-width: auto;
        padding: 12px 16px;
        border-radius: 8px;
        transform: translateY(20px) scale(0.95);
    }
    
    .global-progress-indicator.visible {
        transform: translateY(0) scale(1);
    }
    
    .global-progress-bar {
        height: 4px;
        margin-bottom: 10px;
    }
    
    .global-progress-text {
        gap: 8px;
    }
    
    .global-progress-text span {
        font-size: 0.75rem;
    }
    
    .global-progress-step {
        font-size: 0.7rem !important;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .mobile-backdrop {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        top: 60px;
        height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile step navigation adjustments */
    .step {
        padding: 12px;
        gap: 12px;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }
    
    .step-icon .material-icons {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .step-description {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    .sidebar-header {
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open ~ .mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 76px 16px 16px 16px;
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .step-header h1 {
        font-size: 1.375rem;
    }
    
    .step-header p {
        font-size: 0.875rem;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .design-grid,
    .theme-grid,
    .icon-style-grid,
    .illustration-grid,
    .functionality-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .radius-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    .step-actions {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin-top: 32px;
    }
    
    .step-actions .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: auto;
        white-space: nowrap;
    }
    
    .step-actions .btn .material-icons {
        font-size: 18px;
    }
    
    .export-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .export-actions .btn {
        flex: 1;
        max-width: 160px;
        font-size: 0.85rem;
    }
    
    .export-recommendations {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .recommendation-text h3 {
        font-size: 1.1rem;
    }
    
    .recommendation-text p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .btn-large {
        padding: 14px 16px;
        font-size: 0.9rem;
        min-width: 140px;
        max-width: 160px;
    }
    
    /* Mobile Sitemap and Custom Features */
    .page-input-group,
    .feature-input-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .page-input-group input,
    .feature-input-group input {
        width: 100%;
    }
    
    .page-input-group .btn,
    .feature-input-group .btn {
        align-self: stretch;
        justify-content: center;
        min-height: 48px;
        font-size: 16px;
    }
    
    .page-input-group input,
    .feature-input-group input {
        min-height: 48px;
        font-size: 16px;
    }
}

/* Loading and Success States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Legacy success message styles - now using notification system */

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.option-card:focus,
.design-card:focus,
.theme-card:focus,
.typography-card:focus,
.radius-option:focus,
.icon-style-card:focus,
.illustration-card:focus,
.functionality-card:focus {
    outline: 3px solid #7c3aed;
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid #7c3aed;
    outline-offset: 2px;
}

/* Footer Styles */
.app-footer {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    margin-top: 4rem;
}

.footer-logo {
    display: block;
    margin: 0 auto 1.0rem auto;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mb-path {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.footer-logo:hover .mb-path {
    fill: #cccccc;
}

.footer-text {
    font-size: 0.65rem;
    color: #aaa;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Onboarding Modal */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(156, 163, 175, 0.1);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-panel {
    padding: 32px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-logo h1 {
    font-family: 'Andale Mono', monospace;
    font-variant: small-caps;
    font-size: 2rem;
    letter-spacing: 0.075em;
    font-weight: 400;
    color: #ffffff;
    word-spacing: -0.4em;
    margin: 0;
}

.modal-subtitle {
    font-size: 1.125rem;
    color: #aaa;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.modal-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex: 1;
    max-width: 70px;
    position: relative;
    overflow: hidden;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(156, 163, 175, 0.08) 20%,
        rgba(156, 163, 175, 0.12) 50%,
        rgba(156, 163, 175, 0.08) 80%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}



.step-indicator .material-icons {
    font-size: 20px;
    color: #9ca3af;
}

.step-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
}

.step-arrow {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.returning-actions {
    justify-content: space-between;
}

.saved-project-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.project-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.project-preview-icon .material-icons {
    font-size: 18px;
}

.project-preview-info h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.project-preview-info p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.project-preview-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.preview-detail {
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.preview-detail-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.preview-detail-value {
    font-size: 0.8rem;
    color: #e0e0e0;
    font-weight: 400;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-panel {
        padding: 24px;
    }
    
    .modal-logo h1 {
        font-size: 1.5rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .modal-steps {
        gap: 8px;
    }
    
    .step-indicator {
        padding: 10px 6px;
        max-width: 60px;
        gap: 4px;
    }
    
    .step-indicator .material-icons {
        font-size: 18px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .returning-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-header {
        margin-bottom: 20px;
    }
    
    .saved-project-preview {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .project-preview-header {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .project-preview-icon {
        width: 28px;
        height: 28px;
    }
    
    .project-preview-icon .material-icons {
        font-size: 16px;
    }
    
    .project-preview-info h3 {
        font-size: 0.9rem;
    }
    
    .project-preview-info p {
        font-size: 0.75rem;
    }
    
    .project-preview-details {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 10px;
    }
    
    .preview-detail {
        padding: 6px;
    }
    
    .preview-detail-label {
        font-size: 0.65rem;
    }
    
    .preview-detail-value {
        font-size: 0.75rem;
    }
}

/* Help Button Styles */
.mobile-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-help-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.4);
    transform: scale(1.05);
}

.mobile-help-btn svg {
    transition: fill 0.2s ease;
}

.mobile-help-btn:hover svg {
    fill: #e0e0e0;
}

/* Sidebar Help Button */
.sidebar-help {
    margin-top: auto;
    padding-top: 24px;
    flex-shrink: 0;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(156, 163, 175, 0.05);
    border: 1px solid rgba(156, 163, 175, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.2);
    color: #b8b8b8;
}

.help-btn svg {
    transition: fill 0.2s ease;
}

.help-btn:hover svg {
    fill: #b8b8b8;
}

/* Help Modal - Uses existing beautiful modal system */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.help-modal-overlay .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.help-modal-overlay .modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(156, 163, 175, 0.1);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.help-modal .modal-panel {
    padding: 32px;
    overflow-y: auto;
    max-height: 80vh;
}

.help-modal .modal-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.help-modal .modal-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.help-modal .modal-close:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #e0e0e0;
}

.help-modal .modal-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.help-modal .modal-logo h1 {
    font-family: 'Andale Mono', monospace;
    font-variant: small-caps;
    font-size: 1.75rem;
    letter-spacing: 0.075em;
    font-weight: 400;
    color: #ffffff;
    word-spacing: -0.4em;
    margin: 0;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.help-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.help-section p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 0;
}

.help-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.help-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 16px 0 16px 60px;
    color: #aaa;
    line-height: 1.5;
    border-bottom: 1px solid #2a2a2a;
}

.help-steps li:last-child {
    border-bottom: none;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 16px;
    width: 32px;
    height: 32px;
    background: #9ca3af;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.help-steps li strong {
    color: #ffffff;
}

.help-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-tips li {
    padding: 12px 0;
    color: #aaa;
    line-height: 1.5;
    border-bottom: 1px solid #2a2a2a;
}

.help-tips li:last-child {
    border-bottom: none;
}

.help-tips li strong {
    color: #ffffff;
}

/* Mobile Help Modal Adjustments */
@media (max-width: 768px) {
    .help-modal-overlay .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .help-modal .modal-panel {
        padding: 24px;
    }
    
    .help-modal .modal-logo h1 {
        font-size: 1.5rem;
    }
    
    .help-steps li {
        padding-left: 50px;
    }
    
    .help-steps li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .help-section h2 {
        font-size: 1.1rem;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    max-width: 380px;
    min-width: 280px;
    pointer-events: auto;
    transform: translateX(100%) scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.notification.warning::before {
    background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
}

.notification.success::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.notification.info::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: #ef4444;
    flex-shrink: 0;
}

.notification.warning .notification-icon {
    background: #eab308;
    color: #1a1a1a;
}

.notification.success .notification-icon {
    background: #22c55e;
}

.notification.info .notification-icon {
    background: #3b82f6;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.notification-message {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
    padding-left: 30px;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1;
}

.notification-close:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .required-legend {
        font-size: 0.65rem;
        padding: 6px 10px;
        margin-bottom: 16px;
    }
    
    .form-legend {
        font-size: 0.75rem;
        margin-top: 8px;
    }
    
    .notification-container {
        top: 80px;
        left: 16px;
        right: 16px;
        align-items: stretch;
    }
    
    .notification {
        max-width: none;
        min-width: none;
        transform: translateY(-100%) scale(0.95);
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification.hide {
        transform: translateY(-100%) scale(0.95);
    }
}

/* Print styles */
@media print {
    .notification-container,
    .sidebar,
    .step-actions,
    .export-actions,
    .app-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .step-section {
        display: block !important;
        page-break-after: always;
    }
}
