@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -50vw;
    width: 650px;
    height: 100vh;
    background: #ffffff;
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.08);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid #e2e8f0;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.sidebar-header h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.sidebar-content {
    padding: 24px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Header section styles */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-section h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.help-button {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.help-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 ease;
}

.help-button:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
    }
}

.help-button {
    animation: pulse 2s infinite;
}

.settings-button {
    background: none;
    border: none;
    color: #475569;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-button svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.settings-button:hover {
    background: #f1f5f9;
    color: #334155;
    transform: scale(1.1);
}

.settings-button:hover svg {
    transform: rotate(90deg);
}

.planner-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.unassigned-classes-container, .years-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.years-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

h2, h3 {
    color: #0f172a;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #235eb1;
}

h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

#autoPlanButton, #downloadButton {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

#autoPlanButton:hover, #downloadButton:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

#downloadButton {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#downloadButton:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.unassigned-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
    padding: 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.unassigned-classes:empty::after {
    content: "Drag courses here or use Auto Plan";
    color: #94a3b8;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 14px;
}

.year {
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    background: #fafbfc;
}

.year h3 {
    margin: 0 0 16px 0;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
}

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

.quarter {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 120px;
    position: relative;
    transition: all 0.2s ease;
}

.quarter:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quarter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.quarter-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.quarter-lock-button {
    background: none;
    border: 2px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 20px;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quarter-lock-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quarter-lock-button:not(:hover) {
    opacity: 0.8;
}

.quarter.locked .quarter-lock-button {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.quarter:not(.locked) .quarter-lock-button {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Locked quarter styles */
.quarter.locked {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.quarter.locked .quarter-header {
    color: #92400e;
    font-weight: 600;
}


.quarter-units {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.class-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 36px 12px 12px;
    border-radius: 10px;
    cursor: grab;
    font-size: 13px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    position: relative;
    transition: all 0.2s ease;
    font-weight: 500;
}

.class-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.class-card:active {
    cursor: grabbing;
    opacity: 0.8;
    transform: scale(0.98);
}

.class-card.invalid {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.class-card-unassigned-failed {
    background: linear-gradient(135deg, #fefcfb, #fef7f0);
    border-color: #fb923c;
    color: #ea580c;
}

.class-card-invalid {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
    position: relative;
}

.conflict-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.class-card .units {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 4px;
    font-weight: 400;
}

/* Pinned course styles - only show pin emoji change */
.class-card.pinned {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Pin button styles */
.pin-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    opacity: 0.3;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-button:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.05);
}

.class-card.pinned .pin-button {
    opacity: 1;
    color: #f59e0b;
    transform: scale(1.1);
}

.class-card.pinned .pin-button:hover {
    opacity: 1;
    background-color: rgba(245, 158, 11, 0.1);
    transform: scale(1.2);
}

.tooltip {
    visibility: hidden;
    width: 220px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    color: #ffffff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.tooltip .course-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #f1f5f9;
    display: block;
}

.tooltip .course-prereqs {
    margin-top: 8px;
}

.tooltip .prereq-label {
    font-weight: 600;
    color: #475569;
    font-size: 12px;
}

.tooltip .prereq-list {
    color: #64748b;
    font-size: 12px;
}

.tooltip .course-coreqs {
    margin-top: 8px;
}

.tooltip .coreq-label {
    font-weight: 600;
    color: #475569;
    font-size: 12px;
}

.tooltip .coreq-list {
    color: #64748b;
    font-size: 12px;
}

.tooltip .planning-note {
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    border-left: 2px solid #3b82f6;
    font-size: 11px;
}

.tooltip .planning-note.warning {
    background: rgba(251, 146, 60, 0.2);
    border-left-color: #fb923c;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

.class-card:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.difficulty-value {
    display: inline-block;
    min-width: 12px;
    text-align: center;
    padding: 0 2px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.difficulty-value[contenteditable="true"] {
    cursor: text;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    outline: none;
}

.difficulty-value[contenteditable="true"]:focus {
    background-color: #e2e8f0;
    border: 1px solid #94a3b8;
}

/* Edit modal styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.edit-modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.edit-modal h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.edit-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.edit-modal-header h3 {
    margin: 0;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.edit-form-group {
    margin-bottom: 16px;
}

.edit-form-group label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.edit-form-group input,
.edit-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.edit-form-group input:focus,
.edit-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.edit-form-actions button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-form-actions button.cancel {
    background: white;
    color: #374151;
}

.edit-form-actions button.save {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.edit-form-actions button:hover {
    transform: translateY(-1px);
}

.dragging {
    opacity: 0.6;
    transform: rotate(2deg);
}

.drop-target-hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    border-style: solid !important;
}

/* Prerequisite highlighting styles */
.prerequisite-dependent {
    box-shadow: 0 0 0 3px #ff6b6b !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.prerequisite-prerequisite {
    box-shadow: 0 0 0 3px #5375e4 !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.prerequisite-line {
    animation: fadeInLine 0.3s ease;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

.url-input-container {
    margin: 0px 0 10px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.url-input-container h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* Tab Navigation */
.data-input-tabs {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 8px;
    padding: 3px;
}

.tab-button {
    flex: 1;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-button:hover {
    color: #334155;
    background: #f1f5f9;
}

.tab-button.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.tab-content {
    /* min-height: 100px; */
}

/* GitHub Footer */
.github-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 24px 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid #334155;
    width: 100%;
    box-sizing: border-box;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.github-footer a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.github-footer a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: #ffffff;
}

.github-icon {
    transition: transform 0.3s ease;
}

.github-footer a:hover .github-icon {
    transform: rotate(360deg);
}

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

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

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

.tab-description {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.upload-text strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.upload-text span {
    color: #64748b;
    font-size: 13px;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid #f1f5f9;
}

.file-name {
    font-weight: 500;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.file-name::before {
    content: "📄";
    font-size: 14px;
}

/* Primary Button */
.primary-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.primary-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.primary-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    font-size: 14px;
}

/* Format Requirements */
.format-requirements {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
}

/* Remove old styles */
.data-input-section,
.url-input-row,
.file-input-row,
.file-help-text {
    display: none;
}

.instructions-container {
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.instructions-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s ease;
}

.instructions-header:hover {
    background-color: #e9ecef;
}

.instructions-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.1em;
}

.instructions-toggle {
    font-size: 1.2em;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.instructions-toggle.rotated {
    transform: rotate(180deg);
}

.instructions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}

.instructions-content.expanded {
    max-height: 1000px;
    padding: 15px;
}

/* Instructions step styles for sidebar */
.instructions-step {
    margin-bottom: 24px;
}

.instructions-step h4 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.instructions-step h5 {
    color: #334155;
    margin: 16px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.instructions-step ol, .instructions-step ul {
    margin: 8px 0;
    padding-left: 20px;
}

.instructions-step li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #475569;
    font-size: 15px;
}

.required-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
    border-left: 4px solid #3b82f6;
}

.instructions-step code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 12px;
    color: #1e293b;
}

.instructions-step a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.instructions-step a:hover {
    text-decoration: underline;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    color: #dc2626;
    margin-top: 12px;
    display: none;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media screen and (max-width: 768px) {
    body {
        padding: 16px;
    }

    .planner-container {
        gap: 20px;
    }

    .url-input-container {
        padding: 14px;
    }

    .data-input-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
        margin-bottom: 12px;
        background: none;
        padding: 0;
    }

    .tab-button {
        border: 1px solid #e2e8f0;
        border-bottom: none;
        border-radius: 0;
        padding: 12px;
        background: #ffffff;
    }

    .tab-button:first-child {
        border-radius: 8px 8px 0 0;
    }

    .tab-button:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-button.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .file-upload-area {
        padding: 18px 14px;
    }

    .upload-icon {
        font-size: 22px;
    }

    .file-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .quarters {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quarter {
        min-width: 100%;
        margin-right: 0;
    }

    .class-card {
        margin-bottom: 8px;
        padding: 16px 12px;
        touch-action: none;
    }

    .tooltip {
        width: 90%;
        left: 5%;
        margin-left: 0;
    }

    .year {
        margin-bottom: 20px;
        padding: 16px;
    }

    .years-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    #autoPlanButton, #downloadButton {
        width: 100%;
        padding: 16px;
    }

    .quarter-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .quarter-info {
        align-items: flex-start;
    }

    .quarter-lock-button {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 8px;
    }

    .quarter-units {
        font-size: 12px;
    }

    .unassigned-classes {
        padding: 12px;
    }

    .sidebar {
        width: 100vw;
        right: -100vw;
    }

    .header-section {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .help-button {
        width: 100%;
        padding: 16px;
    }
}

@media screen and (max-width: 380px) {
    body {
        padding: 5px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    .class-card {
        font-size: 0.85em;
    }
}

@media (hover: none) {
    .class-card {
        cursor: move;
    }

    .tooltip {
        display: none;
    }

    .class-card::after {
        content: "⋮";
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
    }
}

/* Settings Modal Styles */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.settings-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #f1f5f9;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 16px 16px 0 0;
}

.settings-header h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.settings-content {
    padding: 24px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-of-type {
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 16px 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.setting-label:hover {
    background: #f8fafc;
}

.setting-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.setting-label input[type="radio"]:checked + .radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.setting-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.setting-description {
    color: #64748b;
    font-size: 12px;
    margin-left: auto;
}

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

.settings-grid .setting-item {
    margin-bottom: 0;
}

.settings-grid .setting-item label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.settings-grid .setting-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
}

.settings-grid .setting-item input[type="number"] {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.settings-grid .setting-item input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.secondary-button {
    padding: 12px 20px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Mobile responsive styles for settings modal */
@media (max-width: 768px) {
    .settings-modal {
        width: 95%;
        max-height: 95vh;
        margin: 20px;
    }
    
    .settings-header {
        padding: 20px;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-actions button {
        width: 100%;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .help-button, .settings-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Credit Footer */
.credit-footer {
    text-align: center;
    padding: 24px;
    margin-top: 32px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.credit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.credit-content span {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.credit-footer strong {
    color: #475569;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-left: 4px;
}

.social-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #64748b;
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

/* Quick Settings */
.quick-settings {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
}

.quick-settings .setting-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.quick-settings .setting-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.quick-settings .setting-group select,
.quick-settings .setting-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.quick-settings .setting-group select:focus,
.quick-settings .setting-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quick-settings .setting-group input[type="number"] {
    width: 120px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .quick-settings {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .quick-settings .setting-group {
        min-width: auto;
    }
}

/* Plan Features */
.plan-features {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.plan-features p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #0f172a;
    font-weight: 500;
}

.plan-features strong {
    color: #1d4ed8;
    font-weight: 800;
    font-size: 16px;
}

@media (max-width: 768px) {
    .plan-features {
        padding: 10px 14px;
        margin-bottom: 16px;
    }
    
    .plan-features p {
        font-size: 12px;
    }
}

/* Template Access */
.template-access {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.template-button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.template-button:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.template-button .button-icon {
    font-size: 18px;
}

.template-description {
    margin: 0;
    color: #0c4a6e;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .template-access {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .template-button {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .template-description {
        font-size: 13px;
    }
}

/* Template Button Small (for sidebar) */
.template-button-small {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.template-button-small:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.template-button-small .button-icon {
    font-size: 14px;
}

/* Consolidated Input Module */
.input-module {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid #e2e8f0;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.input-title {
    color: #235eb1;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 0px 0;
    text-shadow: none;
    line-height: 1.2;
}

/* Template Tooltip */
.template-tooltip {
    text-align: left;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.template-tooltip-text {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.template-tooltip-button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.template-tooltip-button:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Input Settings Bottom */
.input-settings-bottom {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.settings-button-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.input-settings-bottom .setting-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
}

.input-settings-bottom .setting-group label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-shadow: none;
}

.input-settings-bottom .setting-group select,
.input-settings-bottom .setting-group input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none;
    width: auto;
}

.input-settings-bottom .setting-group select:focus,
.input-settings-bottom .setting-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

/* Input and Video Container */
.input-video-container {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.input-video-container .input-module {
    flex: 1;
    margin-bottom: 0;
}

/* Video Section */
.video-section {
    flex: 0 0 400px;
    background: none;
    border-radius: 16px;
    padding: 8px;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Responsive design for input-video container */
@media (max-width: 1024px) {
    .input-video-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .video-section {
        flex: none;
        max-width: 100%;
    }
    
    .input-video-container .input-module {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .input-video-container {
        gap: 16px;
    }
    
    .video-section {
        padding: 4px;
        border-radius: 12px;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .video-container iframe {
        border-radius: 12px;
    }
}

/* Quick Settings - Hide old version */
.quick-settings {
    display: none !important;
}

.url-input-container {
    display: none !important;
}

.input-url-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.upload-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #6b7280;
}

.upload-icon-button:hover {
    color: #374151;
    transform: scale(1.1);
}

.upload-icon-button svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.upload-icon-button.file-uploaded {
    color: #10b981;
}

.upload-icon-button.file-uploaded:hover {
    color: #059669;
}

.file-name-display {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.file-name-display.uploaded {
    color: #10b981;
}

.input-url-section input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    background: #ffffff;
    color: #006aff;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 5px 5px 5px rgba(59, 130, 246, 0.8);
}

.input-url-section input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.input-url-section input[type="text"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.load-data-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 2px solid #e2e8f0;
    padding: 16px 28px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.load-data-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
    border-color: #cbd5e1;
}

/* Responsive design for input module */
@media (max-width: 768px) {
    .input-module {
        height: 200px;
        padding: 24px;
    }
    
    .input-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .template-tooltip {
        padding: 10px 12px;
        margin-bottom: 16px;
    }
    
    .template-tooltip-text {
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
    }
    
    .input-url-section {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .load-data-button {
        justify-content: center;
        padding: 14px 24px;
    }
    
    .input-settings-bottom {
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
    }
    
    .input-settings-bottom .setting-group {
        min-width: auto;
    }
    
    .input-settings-bottom .setting-group select,
    .input-settings-bottom .setting-group input[type="number"] {
        width: auto;
        min-width: 140px;
    }
    
    .settings-button-container {
        margin-left: 0;
        justify-content: center;
    }
    
    .settings-button-container .settings-button {
        width: 100%;
        justify-content: center;
    }
}

/* Input Header */
.input-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.header-left {
    flex-shrink: 0;
}

/* Step Progress Bar */
.step-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
    padding: 0;
    margin: 0;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #3b82f6;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.step.active .step-title {
    color: #3b82f6;
    font-weight: 600;
}

.step.completed .step-title {
    color: #10b981;
    font-weight: 600;
}

/* Responsive design for input header */
@media (max-width: 768px) {
    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .step-progress {
        width: 100%;
        padding: 0;
    }

    .step-progress::before {
        left: 30px;
        right: 30px;
    }

    .step-title {
        font-size: 11px;
    }
}

.step-content {
    display: none;
    flex: 1;
    position: relative;
}

.step-content.active {
    display: flex;
    flex-direction: column;
}

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

/* Step 1: Access Template */
.step-content[data-step="1"] .template-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Step 2: Upload List */
.step-content[data-step="2"] .input-url-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: auto 0;
}

/* Step 3: Customize */
.step-content[data-step="3"] .input-settings-bottom {
    margin: auto 0;
    padding: 0;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    flex-shrink: 0;
}

.back-button,
.next-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: #f1f5f9;
    color: #64748b;
}

.back-button:hover,
.next-button:hover {
    background: #e2e8f0;
    color: #475569;
}

.arrow {
    line-height: 1;
}

/* Hide text, show only arrows */
.button-text {
    display: none;
}

/* Responsive design for step navigation */
@media (max-width: 768px) {
    .step-navigation {
        margin-top: 12px;
        gap: 12px;
    }

    .back-button,
    .next-button {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
} 