/* Google Forms Clone - Exact Styling */

:root {
    --primary-color: #e7c54d;
    --primary-hover: #d4af37;
    --secondary-color: #34a853;
    --error-color: #ea4335;
    --warning-color: #fbbc04;
    --surface-color: #ffffff;
    --background-color: #f0f2f5;
    --card-background-color: #ffffff;
    --text-color: #202124;
    --text-color-secondary: rgba(32, 33, 36, 0.7);
    --text-color-light: rgba(32, 33, 36, 0.5);
    --text-hover: rgba(32, 33, 36, 0.8);
    --card-hover: #f5f5f5;
    --background-hover: #e8eaed;
    --primary-focus: rgba(231, 197, 77, 0.1);
    --text-focus: rgba(32, 33, 36, 0.05);
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 1px 2px 0 rgba(0,0,0,.3), 0 2px 6px 2px rgba(0,0,0,.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #202124;
    line-height: 1.5;
}

/* Google Forms Header */
.gforms-header {
    background: white;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-to-forms-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    margin-right: 8px;
    transition: background-color 0.2s;
}

.back-to-forms-btn:hover {
    background-color: #e8eaed;
}

.forms-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forms-icon-btn:hover {
    background-color: #e8eaed;
}

.form-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #5f6368;
}

.status-text {
    padding: 4px 8px;
    border-radius: 12px;
    background-color: #f1f3f4;
    font-size: 12px;
    font-weight: 500;
}

.status-text.published {
    background-color: #e8f5e8;
    color: #137333;
}

.status-text.draft {
    background-color: #fef7e0;
    color: #b06000;
}

.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #137333;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.auto-save-indicator.show {
    opacity: 1;
}

.auto-save-indicator .material-icons {
    font-size: 16px;
}

.form-title-input {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    color: #202124;
    background: transparent;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.form-title-input:hover {
    background-color: #f8f9fa;
}

.form-title-input:focus {
    background-color: white;
    box-shadow: inset 0 -2px 0 #e7c54d;
}

.star-btn, .folder-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s;
}

.star-btn:hover, .folder-btn:hover {
    background-color: #f8f9fa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #f8f9fa;
}

.publish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e7c54d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.publish-btn:hover {
    background: #d4af37;
}

.publish-btn.published {
    background: #137333;
}

.publish-btn.published:hover {
    background: #0f5132;
}

.publish-btn .publish-icon {
    font-size: 18px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8eaed;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.user-avatar:hover {
    background: #dadce0;
}

.user-avatar i {
    font-size: 24px;
    color: #5f6368;
}

/* User Avatar Dropdown */
.user-avatar-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #dadce0;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #202124;
}

.dropdown-item:hover:not(.user-info) {
    background: #f8f9fa;
}

.dropdown-item i {
    margin-right: 12px;
    font-size: 18px;
    color: #5f6368;
}

.dropdown-item.user-info {
    cursor: default;
    font-weight: 500;
}

.dropdown-item.user-info:hover {
    background: none;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 8px 0;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    border-bottom: 1px solid #e8eaed;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 24px;
}

.nav-tab {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-tab:hover {
    background-color: #f8f9fa;
}

.nav-tab.active {
    color: #e7c54d;
    border-bottom-color: #e7c54d;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 24px;
    align-items: flex-start;
}

.form-content {
    flex: 1;
    max-width: 770px;
}



/* Form Header Card */
.form-header-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.form-header-top {
    height: 10px;
    background: linear-gradient(135deg, #e7c54d 0%, #d4af37 100%);
}

.form-header-content {
    padding: 24px;
}

.form-title-large {
    width: 100%;
    border: none;
    outline: none;
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    background: transparent;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.form-title-large:focus {
    border-bottom-color: #e7c54d;
}

.form-description {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #5f6368;
    background: transparent;
    resize: none;
    min-height: 20px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.form-description:focus {
    border-bottom-color: #e7c54d;
}

/* Question Card */
.question-card {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    border-left: 6px solid transparent;
}

.question-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.25);
}

.question-card.focused {
    border-left-color: #e7c54d;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15), 0 1px 3px rgba(26, 115, 232, 0.25);
}

.question-content {
    padding: 24px;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.question-title-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    background: transparent;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.question-title-input:focus {
    border-bottom-color: #e7c54d;
}

.question-description-section {
    margin: 12px 0;
}

.question-description-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    padding: 8px 0;
    background: transparent;
    color: var(--text-secondary);
    resize: vertical;
    min-height: 40px;
    transition: border-color 0.2s;
}

.question-description-input:focus {
    outline: none;
    border-bottom: 2px solid #e7c54d;
}

.question-description-input::placeholder {
    color: #9e9e9e;
    font-style: italic;
}

.question-type-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #202124;
    cursor: pointer;
}

.question-type-select:focus {
    outline: none;
    border-color: #e7c54d;
}

.question-body {
    margin-bottom: 16px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #202124;
    background: transparent;
    padding: 8px 0;
    border-bottom: 1px dotted #dadce0;
    transition: border-color 0.2s;
}

.option-input:focus {
    border-bottom-color: #e7c54d;
    border-bottom-style: solid;
}

.add-option {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.add-option:hover {
    color: #e7c54d;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
}

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

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f8f9fa;
}

.footer-toggles {
    display: flex;
    align-items: center;
    gap: 24px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6368;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: #dadce0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch.active {
    background: #e7c54d;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active::after {
    transform: translateX(16px);
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 24px;
}

.sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.2s;
}

.tool-btn:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.25);
    color: #e7c54d;
}

/* Theme Panel */
.theme-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

.theme-panel.open {
    right: 0;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e8eaed;
}

.theme-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
}

.close-theme-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
}

.theme-content {
    padding: 24px;
}

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

.theme-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
}

.choose-image-btn {
    background: #e7c54d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.color-option:hover,
.color-option.selected {
    border-color: #202124;
}

.background-options {
    display: flex;
    gap: 8px;
}

.bg-option {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f8f9fa;
    transition: border-color 0.2s;
}

.bg-option.selected {
    border-color: #e7c54d;
}

.bg-option[data-bg="light"] {
    background: white;
}

.bg-option[data-bg="dark"] {
    background: #202124;
}

/* Input Styles */
input[type="text"], input[type="email"], input[type="date"], input[type="time"], textarea, select {
    font-family: 'Roboto', sans-serif;
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #e7c54d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 16px;
    }
    
    .right-sidebar {
        position: fixed;
        bottom: 24px;
        right: 24px;
    }
    
    .sidebar-tools {
        flex-direction: row;
        background: white;
        padding: 8px;
        border-radius: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .gforms-header {
        padding: 12px 16px;
    }
    
    .form-header-content {
        padding: 16px;
    }
    
    .question-content {
        padding: 16px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Settings Panel */
.settings-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    max-width: 770px;
    width: 100%;
    margin: 24px auto;
    padding: 0;
    overflow: hidden;
}

.settings-content {
    padding: 32px;
}

.settings-content h2 {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 32px;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 16px;
}

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

.settings-section h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.setting-item {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.setting-input, .setting-select, .setting-textarea {
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: white;
    transition: border-color 0.2s;
}

.setting-input:focus, .setting-select:focus, .setting-textarea:focus {
    outline: none;
    border-color: #e7c54d;
}

.setting-textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    line-height: 1.4;
}

.setting-btn {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: white;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-btn:hover {
    background: #f8f9fa;
    border-color: #e7c54d;
    color: #e7c54d;
}

.setting-btn.primary {
    background: #e7c54d;
    color: white;
    border-color: #e7c54d;
}

.setting-btn.primary:hover {
    background: #d4af37;
}

/* Checkbox Styling */
.setting-checkbox {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dadce0;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.setting-checkbox:checked + .checkmark {
    background: #e7c54d;
    border-color: #e7c54d;
}

.setting-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Color Input Group */
.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-input {
    width: 60px;
    height: 40px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.color-hex-input {
    width: 100px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Range Input Group */
.range-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #dadce0;
    outline: none;
    -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e7c54d;
    cursor: pointer;
}

.range-value {
    font-weight: 500;
    color: #5f6368;
    min-width: 40px;
}

/* Radio Options */
.header-style-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #5f6368;
}

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

.radio-checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #dadce0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-checkmark {
    border-color: #e7c54d;
}

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

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #e8eaed;
    flex-wrap: wrap;
}

/* Preview Mode Styles */
.preview-form {
    max-width: 770px;
    margin: 24px auto;
    padding: 0 16px;
}

.preview-form-header {
    background: white;
    border-radius: 8px;
    padding: 48px 32px 32px 32px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-top: 6px solid #e7c54d;
    position: relative;
}

.preview-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #e7c54d 0%, #d4af37 100%);
    border-radius: 8px 8px 0 0;
}

.preview-form-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.preview-form-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.email-notice {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.preview-question {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-question:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.25);
}

.preview-question-content {
    width: 100%;
}

.preview-question-title {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.preview-question-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.preview-input, .preview-textarea, .preview-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #dadce0;
    background: transparent;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s;
}

.preview-input:focus, .preview-textarea:focus, .preview-select:focus {
    outline: none;
    border-bottom-color: #e7c54d;
    border-bottom-width: 2px;
}

.preview-textarea {
    resize: vertical;
    min-height: 60px;
}

.preview-file-input {
    padding: 8px 0;
    font-size: 14px;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.preview-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.preview-option:hover {
    background-color: rgba(26, 115, 232, 0.04);
}

.preview-option input[type="radio"],
.preview-option input[type="checkbox"] {
    margin: 0;
    accent-color: #e7c54d;
}

.preview-option-text {
    font-size: 14px;
    color: var(--text-primary);
}

.preview-scale {
    margin-top: 16px;
}

.preview-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-scale-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
}

.preview-scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.preview-scale-option input[type="radio"] {
    margin: 0;
    accent-color: #e7c54d;
}

.scale-number {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-grid {
    margin-top: 16px;
    overflow-x: auto;
}

.preview-grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.preview-grid-table th,
.preview-grid-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e8eaed;
}

.preview-grid-table th {
    font-weight: 500;
    color: var(--text-primary);
    background-color: #f8f9fa;
}

.grid-row-label {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-primary);
    background-color: #f8f9fa;
}

.grid-input-cell input {
    margin: 0;
    accent-color: #e7c54d;
}

.preview-submit-section {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-submit-btn {
    background: #e7c54d;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-submit-btn:hover {
    background: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.preview-clear-btn {
    background: transparent;
    color: #e7c54d;
    border: 1px solid #e7c54d;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-clear-btn:hover {
    background: #e7c54d;
    color: white;
    transform: translateY(-1px);
}

.preview-success {
    background: white;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.success-content {
    margin-bottom: 32px;
}

.success-icon {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 16px;
}

.preview-success h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.preview-success p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-btn {
    background: #e7c54d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.preview-btn:hover {
    background: #d4af37;
}

.preview-btn.outline {
    background: transparent;
    color: #e7c54d;
    border: 1px solid #e7c54d;
}

.preview-btn.outline:hover {
    background: rgba(26, 115, 232, 0.04);
}

.response-summary {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 16px;
    text-align: left;
    margin-top: 24px;
}

.response-summary h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.response-summary pre {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.preview-empty-state {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

/* Responsive Design for Preview */
@media (max-width: 768px) {
    .preview-form-header {
        padding: 24px 16px 16px 16px;
    }
    
    .preview-question {
        padding: 16px;
    }
    
    .preview-submit-section {
        padding: 16px;
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Responses view styles - Google Forms-like */
.responses-container {
    padding: 0;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.responses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px 24px;
    background: white;
    border-bottom: 1px solid #e8eaed;
}

.responses-title-section h2 {
    margin: 0 0 4px 0;
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    line-height: 1.2;
}

.responses-subtitle {
    color: #5f6368;
    font-size: 14px;
    margin: 0;
}

.responses-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.responses-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: white;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.responses-action-btn:hover {
    background: #f8f9fa;
    border-color: #c4c7c5;
}

.responses-action-btn i {
    font-size: 18px;
}

.responses-menu-btn {
    min-width: 40px;
    padding: 8px;
    justify-content: center;
}

.responses-summary {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e8eaed;
    gap: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label {
    color: #5f6368;
    font-size: 14px;
}

.summary-value {
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}

.summary-value.accepting {
    color: #137333;
}

.summary-divider {
    width: 1px;
    height: 20px;
    background: #e8eaed;
}

.responses-content {
    background: white;
    margin: 16px 24px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    overflow: hidden;
}

.responses-view-tabs {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    background: #f8f9fa;
}

.responses-view-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.responses-view-tab:hover {
    background: #f1f3f4;
}

.responses-view-tab.active {
    color: #e7c54d;
    border-bottom-color: #e7c54d;
    background: white;
}

.responses-view-tab i {
    font-size: 18px;
}

.responses-table-section {
    padding: 0;
}

.responses-empty-state {
    text-align: center;
    padding: 80px 40px;
    margin: 24px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.empty-illustration {
    margin-bottom: 24px;
}

.empty-illustration i {
    font-size: 72px;
    color: #dadce0;
}

.responses-empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 400;
    color: #202124;
}

.responses-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4;
}

.responses-empty,
.responses-loading,
.responses-error {
    text-align: center;
    padding: 80px 20px;
    color: #5f6368;
}

.responses-empty .empty-icon,
.responses-loading .loading-spinner,
.responses-error .error-icon {
    font-size: 48px;
    color: #dadce0;
    margin-bottom: 16px;
}

.responses-empty h3,
.responses-error h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 400;
    color: #202124;
}

.responses-empty p,
.responses-loading p,
.responses-error p {
    margin: 0 0 20px 0;
    font-size: 14px;
}

.responses-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e7c54d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.responses-table-wrapper {
    overflow-x: auto;
    background: white;
}

.responses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.responses-table th,
.responses-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8eaed;
    vertical-align: top;
}

.responses-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #202124;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.responses-table td {
    color: #5f6368;
    max-width: 200px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.responses-table tr:hover {
    background: #f8f9fa;
}

.responses-table tr:last-child td {
    border-bottom: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide scrollbars but keep functionality */
.theme-panel::-webkit-scrollbar {
    width: 6px;
}

.theme-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.theme-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.theme-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Guest mode styles */
.status-text.guest {
    color: #f9ab00;
    font-weight: 500;
    background-color: #fef7e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Footer Styles - TacoForms v50 */
.tacoforms-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8eaed;
    padding: 20px 0;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

.footer-version {
    background: #e7c54d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #e7c54d;
    text-decoration: underline;
}

/* Preview Form Button */
.preview-form-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e7c54d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.preview-form-btn:hover {
    background: #d4af37;
}

.preview-form-btn i {
    font-size: 18px;
}

.setting-description {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
    line-height: 1.4;
}

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

.settings-header h2 {
    margin: 0;
}

.settings-header .preview-form-btn {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}


/* Enhanced v2 Answer Styling */
.no-answer {
    color: #9aa0a6;
    font-style: italic;
}

.array-answer {
    color: #1a73e8;
    font-weight: 500;
}

.grid-answer {
    color: #137333;
    font-weight: 500;
}

.bool-answer.yes {
    color: #137333;
    font-weight: 600;
}

.bool-answer.no {
    color: #d93025;
    font-weight: 600;
}

.text-answer {
    color: #202124;
}

.long-answer {
    color: #5f6368;
    cursor: help;
}

/* Modal CSS for Responses v2 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.responses-modal {
    background: white;
    border-radius: 8px;
    max-width: 1200px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.responses-modal.fullscreen {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e8eaed;
    background: #f8f9fa;
    min-height: 48px;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e8eaed;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    min-height: 48px;
}

.action-btn, .close-btn {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #3c4043;
}

.action-btn:hover, .close-btn:hover {
    background: #e8eaed;
}

.responses-modal.fullscreen .responses-table-container {
    max-height: calc(100vh - 120px);
}

/* Google-like empty responses state */
.responses-empty-illustration {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.empty-chart-icon {
    margin: 0 auto 24px;
    opacity: 0.6;
}

.responses-empty-illustration h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #3c4043;
}

.responses-empty-illustration p {
    font-size: 14px;
    margin: 0;
    color: #5f6368;
    max-width: 400px;
    margin: 0 auto;
}
