@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f9;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.site-header {
    background: #003366;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #FFD700;
}

.site-header .site-title {
    font-size: 2.5rem;
}

.site-header .tagline {
    font-size: 1rem;
    font-style: italic;
    color: #ddd;
}

.nav {
    list-style: none;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #FFD700;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ffffff;
}

.site-content {
    padding: 40px 0;
}

.about-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: auto;
    max-width: 800px;
}

.about-section h2, .about-section h3 {
    color: #003366;
    margin-bottom: 10px;
}

.about-section ul {
    margin-top: 10px;
    padding-left: 20px;
}

.about-section a {
    color: #003366;
    font-weight: bold;
    text-decoration: underline;
}

.site-footer {
    background: #003366;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}
/* General layout */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9fb;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Dashboard card */
.dashboard-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.dashboard-card h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 15px;
}

.dashboard-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Logout button */
.dashboard-actions {
    margin-top: 20px;
}

.btn-logout {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background-color: #a93226;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Login form container */
.form-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: slideFadeIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h2 {
    text-align: center;
    color: #004080;
    margin-bottom: 25px;
}

.form-container label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: bold;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
    outline: none;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #0059b3;
}

.message.error {
    background-color: #ffdddd;
    color: #d8000c;
    border: 1px solid #d8000c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}
/* Styled Responsive Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
    margin-top: 20px;
}

thead {
    background-color: #003366;
}

thead th {
    color: #FFD700;
    padding: 14px 16px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #002244;
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

tbody tr:hover {
    background-color: #f0f8ff;
    transition: background 0.3s ease;
}

/* Mobile Responsive Table Container */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}
/* Zebra striping */
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover + pointer if needed for clickable rows */
tbody tr:hover {
    background-color: #e6f2ff;
    cursor: default;
}
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.6s ease-in-out;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.4);
}

.contact-form button {
    padding: 12px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0059b3;
}
.nav-user {
    margin-left: auto;
    color: #FFD700;
    font-weight: bold;
    padding-left: 15px;
}
.dashboard-widget.poll-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-widget.poll-results canvas {
    max-width: 100%;
    height: auto;
}
.poll-widget-container {
    max-width: 500px;   /* or any width you prefer */
    margin: 20px auto;  /* centers it horizontally */
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .header-banner {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .header-text h4 {
        font-size: 14px;
    }
}
.floating-message {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 320px;
    background-color: #fff;
    border: 2px solid #004080;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    padding: 0;
    font-size: 14px;
    color: #333;
}

.floating-message .message-header {
    background-color: #004080;
    color: white;
    padding: 10px 14px;
    font-size: 15px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-message .message-body {
    padding: 15px;
    max-height: 320px;
    overflow-y: auto;
}

.floating-message .close-btn {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}
