/* LocoMojo Feedback System - Modern Fluid Design */

/* Font Imports */
@font-face {
    font-family: 'Creato Display';
    src: url('graphics/3_Fonts/creato_display/CreatoDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Creato Display';
    src: url('graphics/3_Fonts/creato_display/CreatoDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Creato Display';
    src: url('graphics/3_Fonts/creato_display/CreatoDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Brown';
    src: url('graphics/3_Fonts/BrownLLTT-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables for LocoMojo Brand */
:root {
    --loco-black: #0A0A0A;
    --loco-white: #FFFFFF;
    --loco-gold: #C49A3A;
    --loco-teal: #4ECDC4;
    --loco-coral: #FF6B6B;
    --loco-light-gray: #F7F7F7;
    --loco-medium-gray: #E0E0E0;
    --loco-dark-gray: #2C2C2C;
    --loco-text-secondary: #666666;
    
    --gradient-gold: linear-gradient(135deg, #C49A3A 0%, #E5B854 100%);
    --gradient-teal: linear-gradient(135deg, #4ECDC4 0%, #44A3A0 100%);
    --gradient-coral: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-large: 0 16px 48px rgba(0,0,0,0.16);
    
    --font-primary: 'Creato Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Brown', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    color: var(--loco-dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(196, 154, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--loco-light-gray);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.back-link {
    color: var(--loco-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--loco-light-gray);
}

.back-link:hover {
    color: var(--loco-white);
    background: var(--loco-gold);
    transform: translateX(-5px);
}

/* Main Card Style - Modern Glass-morphism */
.glass-card {
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    text-align: center;
    margin-top: 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--loco-dark-gray);
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 20px;
    color: var(--loco-text-secondary);
    font-family: var(--font-secondary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--loco-text-secondary);
    margin-bottom: 40px;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--loco-dark-gray);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    background: var(--loco-light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--loco-dark-gray);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--loco-teal);
    background: #fefefe;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons - Modern Rounded Style */
.btn-primary,
.btn-secondary,
button[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--loco-white);
    box-shadow: 0 4px 16px rgba(196, 154, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 154, 58, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--loco-teal);
    border: 2px solid var(--loco-teal);
}

.btn-secondary:hover {
    background: var(--loco-teal);
    color: var(--loco-white);
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.3);
}

/* Login Form Styles */
.login-section {
    text-align: center;
    padding: 30px 0;
}

.login-section h2 {
    color: var(--loco-gold);
    margin-bottom: 20px;
}

.login-section .form-group {
    margin-bottom: 20px;
}

.login-section input[type="password"] {
    text-align: center;
}

#loginError {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Page - SIMPLE AND CENTERED */
.form-page {
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-logo {
    height: 40px;
    display: block;
    margin: 0 auto 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--loco-dark-gray);
}

.form-header .form-description {
    color: var(--loco-text-secondary);
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: var(--loco-gold);
    width: 0%;
    transition: width 0.5s ease;
}

/* Question Container - SIMPLE */
.question-container {
    width: 100%;
}

/* Questions Wrapper */
#questionsWrapper {
    width: 100%;
}

/* Question Card - SIMPLE CENTERED RECTANGLE */
.question-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
    display: block;
}

.question-card.active {
    /* Card is visible */
}

.question-card.exit-left {
    display: none;
}

.question-card h2 {
    font-size: 1.8rem;
    color: var(--loco-dark-gray);
    margin-bottom: 30px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}


/* Modern Input Styles */
.modern-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    border-radius: 16px;
    background: rgba(78, 205, 196, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.modern-input:focus {
    outline: none;
    border-color: var(--loco-teal);
    background: rgba(78, 205, 196, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.2);
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--loco-text-secondary);
    user-select: none;
}

.modern-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.modern-checkbox .checkbox-text {
    line-height: 1.4;
}

/* Multiple Choice Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.option-card {
    padding: 20px 30px;
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: var(--loco-teal);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.15);
}

.option-card.selected {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--loco-teal);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.option-card label {
    cursor: pointer;
    display: block;
    font-size: 1.1rem;
    color: var(--loco-dark-gray);
}

/* Other option with text field */
.other-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-text-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Helper text */
.helper-text {
    font-size: 0.9rem;
    color: var(--loco-text-secondary);
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* Navigation Buttons */
.navigation-buttons {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

.btn-nav {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-prev {
    background: white;
    color: var(--loco-dark-gray);
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-prev:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-next, .btn-submit {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 154, 58, 0.3);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(196, 154, 58, 0.4);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 10px;
    font-size: 3rem;
    justify-content: center;
    margin: 30px 0;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
}

.star:hover {
    color: var(--loco-gold);
    transform: scale(1.1);
}

.star.filled {
    color: var(--loco-gold);
}

/* Success Animation */
.success-card {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.success-actions button {
    min-width: 150px;
}

.success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    stroke: var(--loco-teal);
    stroke-width: 2;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Question Builder Styles */
.question-builder {
    background: var(--loco-light-gray);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.question-list {
    margin-top: 30px;
}

/* Question Group Container */
.question-group {
    margin-bottom: 20px;
}

.question-item {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid transparent;
}

/* Conditional Questions Container */
.conditional-questions-container {
    display: flex;
    gap: 10px;
    margin-left: 40px;
    margin-top: -10px;
    padding: 10px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(78, 205, 196, 0.3);
}

/* Conditional Question Items */
.question-item.conditional {
    flex: 1;
    margin-bottom: 0;
    padding: 15px;
    background: white;
    border-left-color: var(--loco-teal);
    min-width: 200px;
}

.question-item.conditional .question-content {
    font-size: 0.9rem;
}

.question-item.conditional .question-content.condensed p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-item.conditional .question-actions {
    flex-direction: column;
    gap: 5px;
}

.question-item.conditional .btn-delete {
    padding: 5px 10px;
    font-size: 1.2rem;
    min-width: auto;
    width: 30px;
    height: 30px;
}

.question-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--loco-gold);
}

.question-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.question-number {
    color: var(--loco-gold);
    font-size: 0.9rem;
    margin-right: 15px;
    font-weight: 600;
}

.condition-badge {
    font-size: 0.9rem;
    margin-left: 10px;
    cursor: help;
}

.question-text {
    flex: 1;
    font-family: var(--font-secondary);
}

.question-type {
    background: var(--gradient-teal);
    color: white;
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    margin: 0 15px;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--loco-coral);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.btn-remove:hover {
    background: var(--loco-coral);
    color: var(--loco-white);
}

/* Form Display Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-description {
    font-size: 1.1rem;
    color: var(--loco-text-secondary);
    margin-bottom: 40px;
    font-family: var(--font-secondary);
}

.questions-display {
    margin: 40px 0;
}

.question-display {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--loco-light-gray);
}

.question-display:last-child {
    border-bottom: none;
}

.question-display label {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Rating Stars */
.star-rating {
    display: flex;
    gap: 10px;
    font-size: 2rem;
}

.star {
    cursor: pointer;
    color: var(--loco-medium-gray);
    transition: all 0.3s ease;
}

.star:hover,
.star.active {
    color: var(--loco-gold);
    transform: scale(1.2);
}

/* Radio and Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    padding: 12px 20px;
    background: var(--loco-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background: var(--loco-teal);
    color: #fefefe;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    accent-color: var(--loco-teal);
}

/* Success/Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--loco-teal);
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-message h2,
.error-message h2 {
    margin-bottom: 15px;
}

/* Results Page Styles */
.stat-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card h3 {
    font-size: 0.95rem;
    color: var(--loco-text-secondary);
    margin-bottom: 10px;
}

/* Charts Container */
.questions-analytics {
    margin: 40px 0;
}

.question-analysis {
    background: #fafafa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.text-responses ul {
    list-style: none;
    margin-top: 20px;
}

.text-responses li {
    background: var(--loco-light-gray);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid var(--loco-teal);
    font-family: var(--font-secondary);
}

/* Rating Analysis */
.rating-analysis {
    display: flex;
    align-items: center;
    gap: 40px;
}

.average-rating {
    text-align: center;
}

.avg-value {
    font-size: 4rem;
    font-weight: 700;
    display: block;
    color: var(--loco-gold);
}

.avg-label {
    color: var(--loco-text-secondary);
    font-size: 0.85rem;
}

.rating-distribution {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-bar span:first-child {
    width: 40px;
    text-align: right;
    color: var(--loco-gold);
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--loco-light-gray);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Form Details Modal */
.form-details-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

#formDetailsHeader {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--loco-light-gray);
}

#formDetailsTitle {
    color: var(--loco-gold);
    margin-bottom: 10px;
}

#formDetailsDescription {
    color: var(--loco-text-secondary);
    font-size: 1.1rem;
}

/* Read-only Questions */
.readonly-questions {
    padding: 20px;
}

.question-item.readonly {
    cursor: default;
    background: #f8f8f8;
}

.question-item.readonly:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.question-item.readonly .drag-handle {
    display: none;
}

/* Export Section */
.export-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--loco-light-gray);
    display: flex;
    gap: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: #fafafa;
    border-radius: 24px;
    padding: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-large);
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--loco-light-gray);
    cursor: pointer;
    color: var(--loco-text-secondary);
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--loco-coral);
    color: white;
    transform: rotate(90deg);
}

/* Admin Link Card */
.link-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 154, 58, 0.2);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-card h2 {
    color: var(--loco-dark-gray);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--loco-text-secondary);
    margin-bottom: 0;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

/* Forms Grid */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.form-card {
    background: #fafafa;
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-teal);
}

.form-card-content {
    padding: 30px;
    cursor: pointer;
}

/* Form Card Header */
.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.form-card-details-btn {
    background: transparent;
    color: var(--loco-teal);
    border: 1px solid var(--loco-teal);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-card-details-btn:hover {
    background: var(--loco-teal);
    color: white;
    transform: translateY(-1px);
}

.form-card-delete-btn,
.form-card-link-btn {
    position: absolute;
    top: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--loco-light-gray);
    color: var(--loco-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
}

.form-card-delete-btn {
    right: 15px;
}

.form-card-link-btn {
    right: 60px;
}

.form-card-delete-btn:hover {
    background: var(--loco-coral);
    color: white;
    transform: scale(1.1);
}

.form-card-link-btn:hover {
    background: var(--loco-teal);
    color: white;
    transform: scale(1.1);
}

.form-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--loco-dark-gray);
}

.form-card-description {
    color: var(--loco-text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.form-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--loco-light-gray);
}

.response-count {
    font-weight: 700;
    color: var(--loco-teal);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    background: var(--loco-light-gray);
    padding: 4px;
    border-radius: 50px;
}

.btn-toggle {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--loco-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 50px;
}

.btn-toggle:hover {
    color: var(--loco-dark-gray);
}

.btn-toggle.active {
    background: #fafafa;
    color: var(--loco-dark-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Individual Responses */
.individual-responses {
    padding: 20px 0;
}

.responses-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.response-card {
    background: #fafafa;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.response-card:hover {
    box-shadow: var(--shadow-medium);
}

.response-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-coral);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--loco-light-gray);
}

.response-header h4 {
    margin: 0;
    color: var(--loco-dark-gray);
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--loco-text-secondary);
    font-size: 0.9rem;
}

.btn-delete {
    background: transparent;
    color: var(--loco-coral);
    border: 2px solid var(--loco-coral);
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-radius: 20px;
}

.btn-delete:hover {
    background: var(--loco-coral);
    color: white;
}

.response-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.response-question {
    background: var(--loco-light-gray);
    padding: 20px;
    border-radius: 12px;
}

.response-question strong {
    display: block;
    color: var(--loco-dark-gray);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.response-answer {
    color: var(--loco-text-secondary);
    line-height: 1.8;
    font-family: var(--font-secondary);
}

/* Selected Form Section */
.selected-form-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--loco-light-gray);
}

.selected-form-header h3 {
    margin: 0;
    flex: 1;
}

/* Checkbox styling */
.anonymous-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 400;
}

.anonymous-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--loco-teal);
}

/* Name input section */
.name-section {
    margin: 30px 0;
}

.name-section label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--loco-dark-gray);
    font-weight: 500;
}

.name-section .modern-input {
    margin-bottom: 20px;
}

/* Intro screen specific */
.intro-card {
    text-align: center;
    /* Use same padding as question cards */
}

.intro-content {
    max-width: 500px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: wave 1s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.intro-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--loco-dark-gray);
    font-weight: 700;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--loco-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.intro-card .name-section {
    margin: 40px 0;
}

.name-input-wrapper {
    position: relative;
    width: 100%;
}

.name-input {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    background: rgba(78, 205, 196, 0.05);
}

.name-input:focus {
    border-color: var(--loco-teal);
    background: rgba(78, 205, 196, 0.08);
}

.input-helper {
    margin-top: 20px;
}

.input-helper .modern-checkbox {
    justify-content: flex-start;
    font-size: 0.95rem;
    color: var(--loco-text-secondary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.input-helper .modern-checkbox:hover {
    opacity: 1;
}

/* Start button */
.btn-start {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 6px 30px rgba(196, 154, 58, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(196, 154, 58, 0.4);
}

.btn-start:active {
    transform: translateY(0);
}

.btn-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-start:hover .btn-arrow {
    transform: translateX(5px);
}

/* Disabled state for name input */
.name-input:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: var(--loco-text-secondary);
    cursor: not-allowed;
}

.name-input {
    margin-bottom: 15px;
}

/* Submit button */
.submit-btn {
    width: 100%;
    margin-top: 40px;
    background: var(--gradient-teal);
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Summary section */
.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* No data message */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--loco-text-secondary);
}

/* Small buttons */
.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .glass-card {
        padding: 25px;
        border-radius: 16px;
    }
    
    .question-card {
        padding: 40px 30px;
    }
    
    .form-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rating-analysis {
        flex-direction: column;
        gap: 30px;
    }
    
    .export-section {
        flex-direction: column;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .response-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .response-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Logo Integration */
.logo {
    height: 60px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.header-logo {
    height: 35px;
    margin-right: 20px;
}

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

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

.glass-card,
.form-card,
.response-card {
    animation: fadeIn 0.5s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--loco-light-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--loco-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--loco-teal);
}

/* Form Info Styles */
.form-info {
    margin-bottom: 30px;
    padding: 25px;
    background: #fafafa;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.form-title-input,
.form-desc-input {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--loco-dark-gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--loco-teal);
}

/* Add Question Section */
.add-question-section {
    background: #fafafa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.add-question-section h3 {
    color: var(--loco-gold);
    margin-bottom: 20px;
}

.question-input {
    margin-bottom: 15px;
}

.question-type-select {
    margin-bottom: 15px;
}

.multiple-options {
    background: var(--loco-light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.option-input {
    background: #fefefe;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Questions Container */
.questions-container {
    background: var(--loco-light-gray);
    border-radius: 16px;
    padding: 20px;
    min-height: 200px;
    margin-bottom: 30px;
}

.questions-container:empty::after {
    content: 'No questions added yet. Add your first question below!';
    display: block;
    text-align: center;
    color: var(--loco-text-secondary);
    padding: 40px;
    font-style: italic;
}

/* Index Page Specific Styles */
.index-page {
    background: linear-gradient(135deg, #C49A3A 0%, #E5B854 50%, #4ECDC4 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.index-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.index-page .glass-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.index-page h1 {
    background: linear-gradient(135deg, #0A0A0A 0%, #2d2d2d 50%, #0A0A0A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.index-page .subtitle {
    color: var(--loco-dark-gray);
    font-size: 1.3rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.navigation .link-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transform: scale(1);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navigation .link-card:nth-child(1) {
    border-color: rgba(196, 154, 58, 0.3);
    background: linear-gradient(135deg, rgba(196, 154, 58, 0.05) 0%, rgba(229, 184, 84, 0.05) 100%);
}

.navigation .link-card:nth-child(2) {
    border-color: rgba(78, 205, 196, 0.3);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(68, 163, 160, 0.05) 100%);
}

.navigation .link-card:nth-child(1)::before {
    background: var(--gradient-gold);
}

.navigation .link-card:nth-child(2)::before {
    background: var(--gradient-teal);
}

.navigation .link-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.2) inset;
}

.navigation .link-card:nth-child(1):hover {
    border-color: rgba(196, 154, 58, 0.6);
    background: linear-gradient(135deg, rgba(196, 154, 58, 0.1) 0%, rgba(229, 184, 84, 0.1) 100%);
}

.navigation .link-card:nth-child(2):hover {
    border-color: rgba(78, 205, 196, 0.6);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(68, 163, 160, 0.1) 100%);
}

.navigation .link-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.navigation .link-card:nth-child(1) h2 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navigation .link-card:nth-child(2) h2 {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navigation .link-card p {
    color: var(--loco-text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Admin Page Styles */
.admin-page {
    background: linear-gradient(135deg, #E5B854 0%, #C49A3A 40%, #4ECDC4 100%);
    min-height: 100vh;
}

.admin-page .glass-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.admin-page .header h1 {
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

.admin-page .form-info,
.admin-page .add-question-section,
.admin-page .questions-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 154, 58, 0.2);
}

.admin-page .question-item {
    background: rgba(255, 255, 255, 0.98);
}

.admin-page .btn-primary {
    background: var(--gradient-gold);
    box-shadow: 0 6px 20px rgba(196, 154, 58, 0.4);
}

.admin-page .btn-secondary {
    border-color: var(--loco-coral);
    color: var(--loco-coral);
}

.admin-page .btn-secondary:hover {
    background: var(--loco-coral);
    border-color: var(--loco-coral);
}

/* Results Page Styles */
.results-page {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A3A0 30%, #C49A3A 70%, #E5B854 100%);
    min-height: 100vh;
}

.results-page .glass-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.results-page .header h1 {
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

.results-page h2 {
    color: var(--loco-teal);
}

.results-page .form-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.results-page .form-card:hover {
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
}

.results-page .stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.results-page .question-analysis {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(78, 205, 196, 0.1);
}

/* Form Page Styles */
.form-page {
    background: linear-gradient(135deg, #C49A3A 0%, #E5B854 50%, #4ECDC4 100%);
    min-height: 100vh;
}

.form-page .glass-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.form-page #formTitle {
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
}

.form-page .question-display {
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.form-page .submit-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.form-page .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.form-page .star {
    color: rgba(255, 107, 107, 0.3);
}

.form-page .star:hover,
.form-page .star.active {
    color: #FF6B6B;
}

/* Enhance headers across all pages */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.back-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

/* Modal enhancements */
.modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Success page enhancement */
.form-page .success-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-page .success-icon {
    color: #4ECDC4;
    text-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

/* View toggle enhancement */
.view-toggle {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-toggle.active {
    background: var(--gradient-teal);
    color: white;
}

/* Response cards enhancement */
.response-card::before {
    height: 4px;
    width: 100%;
    top: 0;
    left: 0;
}

/* Chart enhancements */
.questions-analytics canvas {
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
}

/* Floating decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(20px) rotate(-5deg); }
    66% { transform: translateY(-30px) rotate(5deg); }
}

.index-page::after,
.admin-page::after,
.results-page::after,
.form-page::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.index-page::after {
    background: radial-gradient(circle, var(--loco-gold) 0%, transparent 70%);
    top: 10%;
    right: 10%;
}

.admin-page::after {
    background: radial-gradient(circle, var(--loco-coral) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: floatReverse 25s ease-in-out infinite;
}

.results-page::after {
    background: radial-gradient(circle, var(--loco-teal) 0%, transparent 70%);
    top: 50%;
    right: 5%;
    animation: float 30s ease-in-out infinite;
}

.form-page::after {
    background: radial-gradient(circle, var(--loco-coral) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation: floatReverse 22s ease-in-out infinite;
}

/* Enhanced form card animations */
.form-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.form-card:nth-child(1) { animation-delay: 0.1s; }
.form-card:nth-child(2) { animation-delay: 0.2s; }
.form-card:nth-child(3) { animation-delay: 0.3s; }
.form-card:nth-child(4) { animation-delay: 0.4s; }
.form-card:nth-child(5) { animation-delay: 0.5s; }
.form-card:nth-child(6) { animation-delay: 0.6s; }

/* Question item animations */
.question-item {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.question-display {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo animations */
.logo {
    animation: pulse 3s ease-in-out infinite;
}

.header-logo {
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced button animations */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
}

/* Success animation enhancement */
.success-icon {
    animation: bounce 0.6s ease, pulse 2s ease-in-out infinite;
    animation-delay: 0s, 0.6s;
}

/* Loading animation for form title */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.form-page h1#formTitle:empty::after {
    content: 'Loading...';
    background: linear-gradient(90deg, 
        rgba(255, 107, 107, 0.3) 0%, 
        rgba(78, 205, 196, 0.5) 50%, 
        rgba(255, 107, 107, 0.3) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
    
    .export-section,
    .btn-delete,
    .form-card-delete-btn,
    .form-card-link-btn,
    .view-toggle {
        display: none;
    }
}

/* Conditional Question Styles */
.condition-badge {
    background: var(--gradient-coral);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    display: inline-block;
}

.btn-condition {
    background: transparent;
    color: var(--loco-coral);
    border: 1px solid var(--loco-coral);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-condition:hover {
    background: var(--loco-coral);
    color: white;
    transform: translateY(-1px);
}

.question-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.condition-text {
    font-size: 0.85rem;
    color: var(--loco-coral);
    margin-top: 8px;
    font-style: italic;
}

.condition-builder {
    background: var(--loco-light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.condition-rule {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.condition-rule select,
.condition-rule input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.conditional-question {
    transition: all 0.3s ease;
}

.conditional-question.fade-in {
    animation: fadeIn 0.5s ease;
}

.form-question[data-question-id] {
    transition: all 0.3s ease;
}

.form-question.conditional-question {
    border-left: 3px solid var(--loco-coral);
    padding-left: 20px;
}

/* Conditional Modal Styles */
#conditionModal .modal-content {
    max-width: 600px;
    margin: 50px auto;
}

#conditionModal h2 {
    color: var(--loco-coral);
    margin-bottom: 20px;
}

#conditionModal p {
    color: var(--loco-text-secondary);
    margin-bottom: 20px;
}

/* Form Details Modal Improvements */
.form-details-modal {
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
}

.form-details-modal .modal-content {
    height: 85vh;
    display: flex;
    flex-direction: column;
}

#formDetailsHeader {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--loco-light-gray);
    margin-bottom: 0;
    flex-shrink: 0;
}

#formDetailsContent {
    flex: 1;
    overflow-y: auto;
    padding: 40px 0;
}

#formDetailsTitle {
    color: var(--loco-dark-gray);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

#formDetailsDescription {
    color: var(--loco-text-secondary);
    font-size: 1.1rem;
    font-family: var(--font-secondary);
}

/* Improved Question Display in Modal */
.readonly-questions {
    background: transparent;
}

.readonly-questions .question-group {
    margin-bottom: 35px;
    background: rgba(250, 250, 250, 0.5);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(196, 154, 58, 0.1);
    transition: all 0.3s ease;
}

.readonly-questions .question-group:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Parent Question in Modal */
.question-item.readonly.parent-question {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--loco-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.question-item.readonly.parent-question .question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.question-item.readonly.parent-question .question-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--loco-gold);
}

.question-item.readonly.parent-question .question-type-badge {
    background: var(--gradient-gold);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.question-text-modal {
    font-size: 1.15rem;
    color: var(--loco-dark-gray);
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 500;
}

/* Conditional Questions Container in Modal */
.readonly-questions .conditional-questions-container {
    background: rgba(78, 205, 196, 0.08);
    border: 2px dashed rgba(78, 205, 196, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Conditional Question Items in Modal */
.question-item.conditional.readonly {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--loco-teal);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.question-item.conditional.readonly .question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.question-item.conditional.readonly .question-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--loco-teal);
}

.question-item.conditional.readonly .question-type-badge {
    background: var(--gradient-teal);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Condition Description in Modal */
.condition-description-modal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.condition-icon {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.condition-text {
    font-size: 0.9rem;
    color: var(--loco-coral);
    line-height: 1.5;
    font-weight: 500;
}

/* Options Preview in Modal */
.readonly-questions .options-preview {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.readonly-questions .options-preview li {
    background: rgba(196, 154, 58, 0.1);
    border: 1px solid rgba(196, 154, 58, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--loco-dark-gray);
    font-weight: 500;
}

/* Hide scrollbar for form details modal */
#formDetailsContent {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#formDetailsContent::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Condition Description in Admin Panel */
.condition-description-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--loco-coral);
    line-height: 1.4;
}

.condition-description-admin .condition-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Field Error Highlighting */
@keyframes errorPulse {
    0% {
        border-color: #ff4444;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        border-color: #ff6666;
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        border-color: #ff4444;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.field-error {
    border: 2px solid #ff4444 !important;
    animation: errorPulse 1s ease-in-out;
}

.field-error:focus {
    outline: none;
    border-color: #ff4444 !important;
}

/* For option cards */
.option-card.field-error {
    border: 2px solid #ff4444 !important;
    animation: errorPulse 1s ease-in-out;
}

/* For star rating container */
.star-rating.field-error {
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #ff4444;
    animation: errorPulse 1s ease-in-out;
}

/* Expand Button */
.expand-btn {
    position: absolute;
    top: 20px;
    right: 70px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--loco-light-gray);
    cursor: pointer;
    color: var(--loco-text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background: var(--loco-teal);
    color: white;
    transform: scale(1.1);
}

/* Full Page Form Details View */
.full-page-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    z-index: 2000;
    overflow-y: auto;
}

.full-page-header {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.full-page-header h1 {
    text-align: center;
    color: var(--loco-dark-gray);
    margin: 20px 0 10px 0;
    font-size: 2.5rem;
}

.full-page-header .form-description {
    text-align: center;
    color: var(--loco-text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.close-full-page {
    position: absolute;
    left: 40px;
    top: 30px;
    background: transparent;
    border: 2px solid var(--loco-teal);
    color: var(--loco-teal);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.close-full-page:hover {
    background: var(--loco-teal);
    color: white;
    transform: translateX(-5px);
}

.full-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Make the modal version look more centered */
.form-details-modal.modal-content {
    position: relative;
}

/* Checkbox Analysis Styles */
.checkbox-analysis {
    background: #fafafa;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.checkbox-results {
    margin: 20px 0;
}

.checkbox-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.checkbox-bar .option-label {
    min-width: 150px;
    font-weight: 500;
    color: var(--loco-dark-gray);
}

.checkbox-bar .bar {
    flex: 1;
    height: 25px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.checkbox-bar .bar-fill {
    height: 100%;
    background: var(--gradient-teal);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.checkbox-bar .count {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--loco-teal);
}

.other-responses {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--loco-light-gray);
}

.other-responses h5 {
    color: var(--loco-dark-gray);
    margin-bottom: 10px;
}

/* Other Response Bars */
.other-response-bar {
    background: rgba(255, 107, 107, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
}

.other-response-bar .option-label {
    color: var(--loco-coral);
    font-style: italic;
}

.other-response-bar .bar-fill {
    background: var(--gradient-coral);
}

/* Other Text List for Multiple Choice */
.other-text-list {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.other-text-list h5 {
    color: var(--loco-coral);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.other-text-list .response-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-text-list .response-list li {
    padding: 8px 0;
    color: var(--loco-text-secondary);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.other-text-list .response-list li:last-child {
    border-bottom: none;
}