/* Moving Gradient Background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    margin-top: 40px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Layout Container */
.container {
    display: flex;
    gap: 30px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}

/* 3D Glassmorphism Cards */
.glass-3d {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    transition: transform 0.3s ease;
}

.glass-3d:hover {
    transform: translateY(-5px);
}

.survey-form, .preview {
    flex: 1;
    min-width: 350px;
    box-sizing: border-box;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

label {
    color: white;
    font-weight: bold;
    margin: 15px 0 5px 0;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    box-sizing: border-box;
}

textarea { height: 80px; resize: none; }

button {
    margin-top: 20px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #23a6d5;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:disabled { background: #999; cursor: not-allowed; }

/* Table Styling */
.responses {
    width: 90%;
    max-width: 1050px;
    margin: 30px 0;
}

.table-container { width: 100%; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

th { background: rgba(0,0,0,0.1); }

/* Action Buttons */
.edit-btn { background: #ffc107; color: black; padding: 5px 10px; margin-right: 5px; border-radius: 5px; }
.delete-btn { background: #ff4757; color: white; padding: 5px 10px; border-radius: 5px; }

.preview-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    color: white;
    margin-bottom: 20px;
}