/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    display: inline;
}

header p {
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    display: inline;
    margin-left: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    color: #64748b;
    position: relative;
}

.tab-button:hover {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    transform: translateY(-2px);
}

/* Tab content */
.tab-content {
    display: none;
}

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

/* Main content layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 600px;
}

/* Form and preview grid layout */
.form-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .form-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Form section */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section h2 {
    color: #1e293b;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) 1;
    font-size: 24px;
    font-weight: 600;
}

.form-section h3 {
    color: #334155;
    margin: 32px 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) 1;
    font-size: 20px;
    font-weight: 600;
}

/* Spacing between project sections */
#project-summary-section {
    margin-top: 32px;
}

/* Boost entire project details section when category dropdown is open */
#project-details-section:has(.multi-select-container.active) {
    z-index: 1000;
    position: relative;
}

/* Fallback for browsers without :has() support */
#project-details-section.dropdown-active {
    z-index: 1000;
    position: relative;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-group select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Multi-select category component */
.multi-select-container {
    position: relative;
    z-index: 1;
}

.multi-select-container.active {
    z-index: 10000;
}

/* Specific high z-index for category dropdown to ensure it's above project summary */
#category-dropdown.open {
    z-index: 10001 !important;
}

#partner-dropdown.open {
    z-index: 10001 !important;
}

.multi-select-button {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.multi-select-button:hover {
    border-color: #d1d5db;
    background: rgba(255, 255, 255, 0.9);
}

.multi-select-button.active {
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform 0.3s ease;
}

.multi-select-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    margin-top: 4px;
}

.multi-select-dropdown.open {
    max-height: 300px;
    border-color: #0891b2;
    overflow: visible;
}

.category-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-option:hover {
    background-color: rgba(8, 145, 178, 0.05);
}

.category-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.category-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    box-shadow: none;
    background: none;
}

.other-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.other-option .category-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.other-option .category-option-header:hover {
    background-color: rgba(8, 145, 178, 0.05);
}

.other-option input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.other-option input[type="text"]:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.1);
}

.other-option input[type="text"]:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    min-height: 0;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.category-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.category-tag .remove-tag:hover {
    opacity: 1;
}

/* Mode toggle styling */
.mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-toggle-button {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
}

.mode-toggle-button:hover {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

.mode-toggle-button.active {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
}

.mode-toggle-button.active:hover {
    background: linear-gradient(135deg, #0782a3 0%, #0891b2 100%);
    color: white;
}

/* Form section transitions */
.form-section {
    transition: all 0.3s ease;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-actions button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    width: 100%;
}

.form-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.form-actions button:hover::before {
    left: 100%;
}

.form-actions button:first-child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.form-actions button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.form-actions button:last-child {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.form-actions button:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(107, 114, 128, 0.4);
}

/* Preview section */
.preview-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-section h2 {
    color: #1e293b;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) 1;
    font-size: 24px;
    font-weight: 600;
}

.preview-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.preview-controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.preview-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.preview-controls button:hover::before {
    left: 100%;
}

.preview-controls button:first-child {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.preview-controls button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.preview-controls button:nth-child(2) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.preview-controls button:nth-child(2):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.preview-controls button:last-child {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.3);
}

.preview-controls button:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

#preview-container {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.9);
    max-height: 500px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#preview-container:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* HTML output */
.html-code h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

#html-output {
    width: 100%;
    height: 240px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    background: rgba(248, 250, 252, 0.8);
    resize: vertical;
    line-height: 1.5;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#html-output:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* HTML input section */
.html-input-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.html-input-section h2 {
    color: #1e293b;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) 1;
    font-size: 24px;
    font-weight: 600;
}

.input-note {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    margin-bottom: 28px;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}

#html-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 350px;
    margin-bottom: 24px;
    background: rgba(248, 250, 252, 0.8);
    line-height: 1.6;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#html-input:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* Error message */
.error-message {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

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

/* Generated table styles (matching original format) */
.generated-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}

.generated-table th {
    background-color: #E6E6FA;
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    width: 25%;
}

.generated-table th:last-child {
    width: 75%;
}

.generated-table td {
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 14px;
}

.generated-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.generated-table .summary-header th {
    background-color: #ADD8E6;
}

.generated-table ul,
.generated-table ol {
    margin: 0;
    padding-left: 20px;
}

.generated-table ul li,
.generated-table ol li {
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .preview-controls {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.success-message {
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

/* User Guide Styles */
.guide-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-section h2 {
    color: #1e293b;
    margin-bottom: 32px;
    padding-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

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

.guide-item {
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.guide-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.guide-item h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-item h4 {
    color: #334155;
    margin: 24px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.guide-item p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #64748b;
    font-size: 16px;
}

.guide-item ol,
.guide-item ul {
    margin: 20px 0;
    padding-left: 28px;
}

.guide-item li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #475569;
}

.tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-left: 6px solid #10b981;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.tip strong {
    color: #047857;
    font-weight: 600;
}

.tip ul {
    margin-top: 16px;
    margin-bottom: 0;
}

.mode-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-left: 6px solid #3b82f6;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.mode-info strong {
    color: #1e40af;
    font-weight: 600;
}

.mode-info ul {
    margin-top: 16px;
    margin-bottom: 0;
}

.field-guide {
    background: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #f1f5f9;
    backdrop-filter: blur(5px);
}

.troubleshooting {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-left: 6px solid #0891b2;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
}

.troubleshooting h4 {
    color: #0e7490;
    margin-top: 0;
    font-weight: 600;
}

.example {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-left: 6px solid #3b82f6;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.sample-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.sample-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sample-button:hover::before {
    left: 100%;
}

.sample-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Responsive adjustments for guide */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .guide-section {
        padding: 24px;
    }
    
    .guide-item {
        padding: 24px;
    }
    
    .guide-section h2 {
        font-size: 28px;
    }
    
    .guide-item h3 {
        font-size: 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .form-section,
    .preview-section,
    .html-input-section {
        padding: 24px;
    }
    
    .tabs {
        padding: 6px;
    }
    
    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
}

/* Smooth animations for all interactive elements */
* {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(8, 145, 178, 0.5);
    outline-offset: 2px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 320px;
    max-width: 420px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error::before {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    position: relative;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.toast-message {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
    font-size: 15px;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
