/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header Styles */
 header {
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 1000;
        }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

/* Container Styles */
.container {
    display: flex;
    flex-grow: 1;
    width: 99%; /* Change max-width to width */
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
}
.main-content {
    flex-grow: 1;
    width: 90%; /* Change min-width to width */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.profile-summary {
    text-align: center;
    margin-bottom: 0px;
}

.profile-summary img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-bottom: 0px;
}

.profile-summary p {
    margin: 0px 0;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}

.nav-links a:hover {
    background-color: #f1f1f1;
    color: #000;
}

.dash-links {
    list-style: none;
    padding: 0;
}

.dash-links li {
    margin: 10px 0;
}

.dash-links a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dash-links a:hover {
    background-color: #f1f1f1;
    color: #000;
}

h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f90;
    color: #fff;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Button Styles */
.btn-login {
    padding: 10px 20px;
    background-color: #f90;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #e88d00;
}

.btn-editprofile {
    padding: 5px 10px;
    background-color: #f90;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-editprofile:hover {
    background-color: #fcfcfc;
    color: #333;
}

/* Footer Styles */
  footer {
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 20px 0;
        }

        .footer-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .footer-table {
            margin: 10px;
            text-align: left;
            flex: 1;
        }

        .footer-table h4 {
            font-size: 18px;
            color: #f90;
            margin-bottom: 10px;
        }

        .footer-table ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-table li {
            margin-bottom: 8px;
        }

        .footer-table a {
            text-decoration: none;
            color: #fff;
            transition: color 0.3s ease;
        }

        .footer-table a:hover {
            color: #f90;
        }

        .footer-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 10px;
            flex: 1;
        }


.footer-logo img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

        .footer-table .fa {
            margin-right: 10px;
        }

.nav-links li {
    margin: 10px 0;
}

.chart-container {
 position: relative;
  margin: auto;
  height: 80vh;
  width: 80vw;
}

/* Quote Container */
.quote-container {
    max-width: 99%;
    margin: 40px auto 0; /* Top margin added, adjust as needed */
    padding: 20px; /* Adjust padding */
    gap: 20px; /* Adjust gap */
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.quote {
    font-size: 20px;
    margin-bottom: 5px;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vote-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin: 0 10px;
    color: orange;
    position: static;
}

.vote-buttons button[disabled] {
    cursor: not-allowed;
}

.vote-count {
    font-size: 18px;
    margin: 0 5px;
}

.tooltip {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    top: -30px;
    left: 50%;
    transform: translateX(-90%);
}

.vote-buttons button:hover .tooltip {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    flex: 1;
    font-weight: bold;
    margin-right: 10px;
}

.form-group input[type="date"], .form-group input[type="number"], .form-group input[type="text"], .form-group input[type="password"], .form-group select, form input {
    flex: 2;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.form-group .additional-steps {
    display: none;
}

.form-group .steps-label {
    margin-left: 10px; /* Adjust margin between date input and steps label */
}

.login-link {
    text-align: center;
    margin-top: 10px;
}

.login-link a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.login-link a:hover {
    text-decoration: underline;
}

.message {
    text-align: center;
    margin-top: 10px;
    color: red;
}

form {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
     align-items: center;
            justify-content: center;
}

form h2 {
    margin-bottom: 1rem;
}

form button {
    display: flex;
    background: #333;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

form button:hover {
    background: #555;
}

.admin-dashboard {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.dashboard-item {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-item h3 {
    margin-bottom: 10px;
}

.dashboard-item p {
    font-size: 1.5em;
    font-weight: bold;
}


/* Hero Section Styles */
.hero {
    background: url('hero-bg.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero .hero-text {
    background: rgba(0, 0, 0, 0.5); /* Black background with 50% transparency */
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn-primary {
    background: #f90;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
}

/* Features Section Styles */
.features {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.features .feature {
    margin-bottom: 2rem;
}

.features .feature h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Auth Section Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px); /* Adjusted to exclude header height */
    background: #f4f4f4;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

.container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}
         @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .nav-links.active {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%;
                right: 0;
                background-color: #333;
                width: 100%;
                text-align: center;
            }

            .nav-links li {
                margin: 10px 0;
            }

            .menu-toggle {
                display: block;
                cursor: pointer;
                font-size: 24px;
                color: #fff;
            }

            .footer-container {
                flex-direction: column;
                align-items: center;
            }

            .footer-table {
                text-align: center;
            }

            .footer-logo {
                margin-top: 20px;
            }
        }

        @media (min-width: 769px) {
            .menu-toggle {
                display: none;
            }
        }