/* CSS STYLES */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #00c6ff);
    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.5);
}

.container {
    display: flex;
    gap: 30px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}

.glass-3d {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    color: white;
}

.glass-3d:hover {
    transform: translateY(-5px);
}

.survey-form, .preview {
    flex: 1;
    min-width: 350px;
    box-sizing: border-box;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    color: #00c6ff;
    font-weight: bold;
    margin: 15px 0 5px 0;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(15, 32, 39, 0.8);
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00c6ff;
    box-shadow: 0 0 8px rgba(0, 198, 255, 0.5);
}

textarea { height: 80px; resize: none; }

button {
    margin-top: 20px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #00c6ff;
    color: #0f2027;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
}

button:disabled { background: #444; color: #888; cursor: not-allowed; box-shadow: none; }

.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.1);
}

th { background: rgba(0, 198, 255, 0.1); color: #00c6ff; }

.edit-btn { background: #2c5364; color: white; padding: 5px 10px; margin-right: 5px; border-radius: 5px; }
.delete-btn { background: #e74c3c; color: white; padding: 5px 10px; border-radius: 5px; }

.preview-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    color: white;
    margin-bottom: 20px;
    border-left: 4px solid #00c6ff;
}

span { color: #00c6ff; }