/* Common styles shared across all pages */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Poppins', sans-serif;

}



:root {

    --primary-blue: #0066ff;

    --primary-red: #ff3366;

}



body {

    background: #0a0a1f;

    color: white;

    overflow-x: hidden;

    min-height: 100vh;

}



/* Navbar Styles */

.navbar {

    padding: 1rem 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: fixed;

    width: 100%;

    top: 0;

    background: rgba(10, 10, 31, 0.8);

    backdrop-filter: blur(10px);

    z-index: 1000;

    animation: slideDown 0.8s ease;

    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

}



.nav-content {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 2rem;

}



.logo {

    font-size: 2rem;

    font-weight: 700;

    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    text-decoration: none;

    letter-spacing: -0.5px;

    transition: transform 0.3s ease;

}



.logo:hover {

    transform: translateY(-2px);

}



.nav-links {

    display: flex;

    align-items: center;

    gap: 2.5rem;

}



.nav-links a {

    color: white;

    text-decoration: none;

    font-weight: 500;

    font-size: 1.1rem;

    transition: all 0.3s ease;

    padding: 0.5rem 1rem;

    border-radius: 8px;

}



.nav-links a:hover {

    color: var(--primary-blue);

    background: rgba(255, 255, 255, 0.07);

    transform: translateY(-2px);

}



.login-btn {

    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));

    color: white;

    padding: 0.7rem 2rem;

    border-radius: 50px;

    font-weight: 500;

    font-size: 1rem;

    transition: all 0.3s ease;

    border: none;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);

}



.login-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);

}



/* Mobile Menu Styles */

.hamburger {

    display: none;

    cursor: pointer;

    padding: 10px;

    z-index: 1001;

    margin-left: auto;

}



.hamburger span {

    display: block;

    width: 25px;

    height: 3px;

    background: white;

    margin: 5px 0;

    transition: all 0.3s ease;

    border-radius: 3px;

}



.mobile-menu {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100vh;

    background: rgba(10, 10, 31, 0.98);

    backdrop-filter: blur(10px);

    z-index: 999;

    padding-top: 100px;

    transition: transform 0.3s ease;

    transform: translateX(100%);

}



.mobile-menu.active {

    transform: translateX(0);

}



.mobile-menu a, .mobile-menu button {

    display: block;

    padding: 15px 30px;

    color: white;

    text-decoration: none;

    font-size: 1.2rem;

    text-align: center;

    opacity: 0;

    transform: translateY(20px);

    transition: all 0.3s ease;

}



.mobile-menu.active a, .mobile-menu.active button {

    opacity: 1;

    transform: translateY(0);

}



.mobile-menu .login-btn {

    margin: 20px auto;

    width: 200px;

}



/* Hamburger Animation */

.hamburger.active span:nth-child(1) {

    transform: rotate(45deg) translate(6px, 6px);

}



.hamburger.active span:nth-child(2) {

    opacity: 0;

}



.hamburger.active span:nth-child(3) {

    transform: rotate(-45deg) translate(6px, -6px);

}



/* Media Queries */

@media (max-width: 768px) {

    .nav-links {

        display: none;

    }



    .hamburger {

        display: block;

    }



    .mobile-menu {

        display: block;

    }

}



/* Animations */

@keyframes slideDown {

    from { transform: translateY(-100%); opacity: 0; }

    to { transform: translateY(0); opacity: 1; }

}



.light-theme {

    background: #f5f5f7;

    color: #333;

}



.light-theme .navbar {

    background: rgba(255, 255, 255, 0.9);

}



.light-theme .nav-links a {

    color: #333;

}



.light-theme .nav-links a:hover {

    color: var(--primary-blue);

    background: rgba(0, 0, 0, 0.05);

}



.light-theme .hamburger span {

    background: #333;

}



.light-theme .mobile-menu {

    background: rgba(255, 255, 255, 0.98);

}



.light-theme .mobile-menu a {

    color: #333;

}



.notification {

    position: fixed;

    bottom: 20px;

    right: 20px;

    padding: 15px 25px;

    border-radius: 8px;

    color: white;

    animation: slideIn 0.3s ease forwards;

    z-index: 1200;

    transition: opacity 0.3s ease;

}



.notification.success {

    background: linear-gradient(45deg, #28a745, #20c997);

}



.notification.error {

    background: linear-gradient(45deg, #dc3545, #f72585);

}



@keyframes slideIn {

    from {

        transform: translateX(100%);

        opacity: 0;

    }

    to {

        transform: translateX(0);

        opacity: 1;

    }

}



/* User Menu Styles */

.user-menu {

    position: relative;

    display: flex;

    align-items: center;

}



.user-profile {

    display: flex;

    align-items: center;

    gap: 1rem;

    padding: 0.5rem 1.2rem;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.1);

    cursor: pointer;

    transition: all 0.3s ease;

}



.user-profile:hover {

    background: rgba(255, 255, 255, 0.15);

    transform: translateY(-2px);

}



.user-profile .profile-pic {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255, 255, 255, 0.2);

}



.user-profile .username-text {

    color: white;

    font-weight: 500;

    font-size: 0.95rem;

}



.dropdown-menu {

    position: absolute;

    top: calc(100% + 5px);

    right: 0;

    background: rgba(20, 20, 41, 0.95);

    backdrop-filter: blur(10px);

    border-radius: 12px;

    min-width: 200px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    overflow: hidden;

}



.user-profile:hover .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.dropdown-menu a {

    display: block;

    padding: 0.75rem 1.2rem;

    color: white;

    text-decoration: none;

    transition: all 0.3s ease;

    font-size: 0.95rem;

}



.dropdown-menu a:hover {

    background: rgba(255, 255, 255, 0.1);

    padding-left: 1.5rem;

}



/* Light theme modifications */

.light-theme .user-profile {

    background: rgba(0, 0, 0, 0.05);

}



.light-theme .user-profile:hover {

    background: rgba(0, 0, 0, 0.08);

}



.light-theme .user-profile .username-text {

    color: #333;

}



.light-theme .dropdown-menu {

    background: rgba(255, 255, 255, 0.95);

}



.light-theme .dropdown-menu a {

    color: #333;

}



.light-theme .dropdown-menu a:hover {

    background: rgba(0, 0, 0, 0.05);

}



/* Mobile User Menu Styles */

.mobile-menu .user-menu.mobile {

    padding: 0 30px;

}



.mobile-menu .user-profile {

    flex-direction: column;

    background: transparent;

    padding: 15px 0;

}



.mobile-menu .user-profile .profile-pic {

    width: 64px;

    height: 64px;

    margin-bottom: 10px;

}



.mobile-menu .user-profile .username-text {

    font-size: 1.2rem;

    margin-bottom: 15px;

}



.mobile-menu .user-profile a {

    width: 100%;

    text-align: center;

    padding: 12px;

    margin: 5px 0;

    background: rgba(255, 255, 255, 0.1);

    border-radius: 8px;

}



.mobile-menu .user-profile a:hover {

    background: rgba(255, 255, 255, 0.2);

}



.light-theme .mobile-menu .user-profile a {

    background: rgba(0, 0, 0, 0.05);

}



.light-theme .mobile-menu .user-profile a:hover {

    background: rgba(0, 0, 0, 0.1);

}



/* Auth Modal Styles */

.auth-modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(5px);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1100;

}



.auth-modal-content {

    background: #fff;

    padding: 2rem;

    border-radius: 15px;

    width: 90%;

    max-width: 400px;

    position: relative;

    animation: modalSlideIn 0.3s ease;

}



.close-modal {

    position: absolute;

    right: 1rem;

    top: 1rem;

    background: none;

    border: none;

    font-size: 1.5rem;

    cursor: pointer;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    transition: all 0.3s ease;

    color: #666;

}



.close-modal:hover {

    background: rgba(0, 0, 0, 0.1);

    color: #333;

}



.auth-tabs {

    display: flex;

    gap: 0.5rem;

    margin-bottom: 1.5rem;

}



.auth-tab {

    flex: 1;

    padding: 0.5rem 0.75rem;

    border: none;

    background: none;

    cursor: pointer;

    font-size: 0.9rem;

    opacity: 0.7;

    transition: all 0.3s ease;

    border-bottom: 2px solid transparent;

}



.auth-tab.active {

    opacity: 1;

    border-bottom-color: var(--primary-blue);

}



.auth-form {

    display: none;

    flex-direction: column;

    gap: 1rem;

}



.auth-form.active {

    display: flex;

}



.auth-input {

    padding: 0.75rem 1rem;

    border: 1px solid rgba(0, 0, 0, 0.1);

    border-radius: 8px;

    font-size: 1rem;

}



.auth-submit {

    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));

    color: white;

    padding: 0.75rem;

    border: none;

    border-radius: 8px;

    font-size: 1rem;

    cursor: pointer;

    transition: transform 0.3s ease;

}



.auth-submit:hover {

    transform: translateY(-2px);

}



.auth-divider {

    display: flex;

    align-items: center;

    text-align: center;

    margin: 1rem 0;

}



.auth-divider::before,

.auth-divider::after {

    content: '';

    flex: 1;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

}



.auth-divider span {

    padding: 0 1rem;

    color: #666;

    font-size: 0.9rem;

}



.google-auth-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    padding: 0.75rem;

    border: 1px solid rgba(0, 0, 0, 0.1);

    border-radius: 8px;

    background: white;

    cursor: pointer;

    transition: background 0.3s ease;

}



.google-auth-btn:hover {

    background: rgba(0, 0, 0, 0.05);

}



.google-auth-btn img {

    width: 20px;

    height: 20px;

}



@keyframes modalSlideIn {

    from {

        transform: translateY(-20px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}



.politician-info {

    text-align: center;

    color: #666;

    margin-bottom: 1rem;

    font-size: 0.9rem;

    line-height: 1.4;

}



.politician-form {

    display: none;

}



.politician-form.active {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}



/* Loading Animation */

.loading-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(10, 10, 31, 0.95);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 9999;

    backdrop-filter: blur(5px);

}



.loading-animation {

    position: relative;

    width: 100px;

    height: 100px;

}



.loading-animation::before {

    content: '';

    position: absolute;

    top: 50%;

    left: 50%;

    width: 150px;

    height: 150px;

    transform: translate(-50%, -50%);

    background: radial-gradient(

        circle,

        rgba(0, 102, 255, 0.2) 0%,

        rgba(255, 51, 102, 0.2) 50%,

        transparent 70%

    );

    animation: flashlight 2s infinite;

}



.loading-dot {

    position: absolute;

    width: 15px;

    height: 15px;

    border-radius: 50%;

    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));

    transform-origin: 50px 50px;

    animation: loadingCircle 1.5s infinite ease-in-out;

}



@keyframes loadingCircle {

    0% {

        transform: rotate(0deg) translateX(0);

        opacity: 1;

    }

    50% {

        transform: rotate(180deg) translateX(30px);

        opacity: 0.5;

    }

    100% {

        transform: rotate(360deg) translateX(0);

        opacity: 1;

    }

}



@keyframes flashlight {

    0%, 100% {

        transform: translate(-50%, -50%) scale(1);

        opacity: 0.5;

    }

    50% {

        transform: translate(-50%, -50%) scale(1.2);

        opacity: 0.8;

    }

}



/* Create 8 dots positioned in a circle */

.loading-dot:nth-child(1) { animation-delay: 0s; }

.loading-dot:nth-child(2) { animation-delay: 0.2s; }

.loading-dot:nth-child(3) { animation-delay: 0.4s; }

.loading-dot:nth-child(4) { animation-delay: 0.6s; }

.loading-dot:nth-child(5) { animation-delay: 0.8s; }

.loading-dot:nth-child(6) { animation-delay: 1.0s; }

.loading-dot:nth-child(7) { animation-delay: 1.2s; }

.loading-dot:nth-child(8) { animation-delay: 1.4s; }



.dashboard-link {

    display: none;

    align-items: center;

    gap: 0.5rem;

    color: white;

    text-decoration: none;

    padding: 0.5rem 1rem;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.03);

    transition: all 0.3s ease;

}



.dashboard-link:hover {

    background: rgba(255, 255, 255, 0.07);

    transform: translateY(-2px);

}



.dashboard-link i {

    font-size: 1.1rem;

}



.dashboard-link-container {

    margin: 0 1rem;

} 
