

/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    margin-top: 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.btn-cancel {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

/* Dashboard */
.dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-card {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.stat-card h3 {
    margin-top: 0;
    color: #6c757d;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card a {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.stat-card a:hover {
    background: #0056b3;
}

/* Survey Form */
.survey-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.question {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.options {
    margin-top: 10px;
}

.radio-option, .checkbox-option {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Reports */
.filter-form {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.response-summary {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.question-report {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.answer-stats {
    list-style: none;
    padding: 0;
}

.answer-stats li {
    margin-bottom: 10px;
}

.answer-stats .label {
    display: inline-block;
    width: 200px;
}

.answer-stats .bar {
    display: inline-block;
    width: 300px;
    height: 20px;
    background: #f0f0f0;
    vertical-align: middle;
    margin: 0 10px;
}

.answer-stats .bar span {
    display: block;
    height: 100%;
    background: #007bff;
}

.answer-stats .count {
    display: inline-block;
    width: 100px;
    text-align: right;
}

.text-answers {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
}

.text-answers li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.text-answers li:last-child {
    border-bottom: none;
}

.text-answers .count {
    float: right;
    color: #6c757d;
    font-size: 0.9em;
}
/* Survey Page Styles */
.survey-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.survey-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.survey-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.survey-meta {
    color: #7f8c8d;
    font-size: 0.9em;
}

.survey-meta .event-name {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.question-block {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.question-text h3 {
    margin-top: 0;
    color: #2c3e50;
}

.question-answer {
    margin-top: 15px;
}

.radio-options, .checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input, .checkbox-option input {
    margin-right: 10px;
}

.radio-label, .checkbox-label {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-grow: 1;
    transition: all 0.2s ease;
}

.radio-option input:checked + .radio-label,
.checkbox-option input:checked + .checkbox-label {
    background: #e1f5fe;
    border-color: #3498db;
}

.radio-option:hover .radio-label,
.checkbox-option:hover .checkbox-label {
    background: #f5f5f5;
}

.question-answer input[type="text"],
.question-answer textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.question-answer textarea {
    min-height: 100px;
    resize: vertical;
}

.survey-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-submit {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #27ae60;
}

.btn-cancel {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #c0392b;
}

.already-submitted {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.already-submitted h3 {
    color: #2ecc71;
}

.btn-return {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-return:hover {
    background: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .survey-container {
        padding: 15px;
    }
    
    .question-block {
        padding: 15px;
    }
    
    .survey-footer {
        text-align: center;
    }
    
    .btn-submit, .btn-cancel {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}
/* Thank You Page Styles */
.thankyou-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f7fa;
    padding: 20px;
}

.thankyou-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.thankyou-card h1 {
    color: #2ecc71;
    margin-bottom: 20px;
}

.thankyou-card p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.btn-return {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-return:hover {
    background: #2980b9;
}
/* Footer Styles */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 0;
    font-size: 14px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3, 
.footer-section h4 {
    color: #f1c40f;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f1c40f;
}

address p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #f1c40f;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

/* Font Awesome Icons (if you're using them) */
.icon-facebook:before { content: "\\f09a"; }
.icon-twitter:before { content: "\\f099"; }
.icon-instagram:before { content: "\\f16d"; }
.icon-youtube:before { content: "\\f167"; }
.icon-location:before { content: "\\f3c5"; }
.icon-phone:before { content: "\\f095"; }
.icon-email:before { content: "\\f0e0"; }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    address p {
        justify-content: center;
    }
}
/* Portal Styles */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.event-selection, .survey-selection {
    margin-bottom: 40px;
}

.event-selection h2, .survey-selection h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-grid, .survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card, .survey-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.event-card:hover, .survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.event-card h3, .survey-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.event-desc {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 10px;
}

.survey-type {
    background: #2ecc71;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.8em;
}

.survey-period {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #7f8c8d;
}

.no-events, .no-surveys {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-grid, .survey-grid {
        grid-template-columns: 1fr;
    }
}