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

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 5px;
}

.logo {
    font-size: 1.2em;
    margin-right: 10px;
}

.tagline {
    color: #666;
    font-size: 1.1em;
    margin-top: 5px;
}

.survey-header {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.survey-header h1 {
    color: #667eea;
    font-size: 2em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #667eea;
    margin-bottom: 15px;
}

h2 {
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-top: 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-primary {
    background-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table.survey-list,
table.responses-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #667eea;
    background-color: white;
    margin-top: 20px;
}

table.survey-list th,
table.survey-list td,
table.responses-table th,
table.responses-table td {
    border: 1px solid #667eea;
    padding: 12px;
    text-align: left;
}

table.survey-list th,
table.responses-table th {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

table.survey-list tr:nth-child(even),
table.responses-table tr:nth-child(even) {
    background-color: #f8f9ff;
}

table.survey-list tr:hover,
table.responses-table tr:hover {
    background-color: #e8ebff;
}

table.survey-list td a,
table.responses-table td a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

table.survey-list td a:hover,
table.responses-table td a:hover {
    text-decoration: underline;
}

/* Form Styles */
form {
    background-color: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="submit"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

input[type="submit"] {
    background-color: #667eea;
    color: white;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

input[type="submit"]:hover {
    background-color: #5568d3;
}

.page {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.choice {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9ff;
    border-radius: 5px;
}

.choice-option {
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.choice-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

.choice-option label {
    cursor: pointer;
    margin-bottom: 0;
    display: inline;
}

/* Survey Container */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.survey-container h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.survey-container .question {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

/* Survey URL Section */
.survey-url {
    background-color: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.survey-url input[type="text"] {
    margin-bottom: 10px;
}

/* Message Styles */
#message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Unique ID Section */
.unique-id-section {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #ffc107;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .container {
        padding: 15px;
    }
    
    table.survey-list th,
    table.survey-list td {
        padding: 8px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}