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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 10px 20px;
    border-bottom: 2px solid #00ff88;
}

header h2 {
    font-size: 1.5rem;
    color: #00ff88;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00ff88;
}

nav ul li button {
    background: #00ff88;
    color: #121212;
    border: none;
    padding: 8px 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

nav ul li button:hover {
    background: #00cc6a;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #3DDC84, #121212);
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    margin-top: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right ul a button {
    background-color: #00ff88;
    color: #121212;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.header-right ul a button:hover {
    background-color: #00cc6a;
}


.header-right nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.header-right nav a:hover {
    color: #00ff88;
}

.header-right .profile-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px;
}

.news-card {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: scale(1.02);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card .content {
    padding: 15px;
}

.news-card h3 {
    margin-bottom: 10px;
    color: #00ff88;
}

.news-card p {
    font-size: 0.9rem;
    color: #ccc;
}

footer {
    text-align: center;
    padding: 20px;
    background: #1e1e1e;
    border-top: 2px solid #00ff88;
    margin-top: 30px;
}

nav ul li a.active {
    color: #00ff88;
}

.about-section {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,255,136,0.2);
}

.about-section h2 {
    color: #00ff88;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-section p, 
.about-section ul {
    color: #ccc;
    font-size: 1rem;
}

.about-section ul {
    list-style: disc;
    margin-left: 20px;
}


.auth-container {
    max-width: 400px;
    margin: 80px auto;
    background: #1e1e1e;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.auth-container h1 {
    color: #00ff88;
    font-size: 2rem;
    margin-bottom: 25px;
}

.auth-container input {
    width: 100%;
    padding: 14px 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: #121212;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-container input::placeholder {
    color: #888;
}

.auth-container input:focus {
    outline: 2px solid #00ff88;
    background: #181818;
}

.auth-container button {
    width: 100%;
    padding: 14px 0;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-container button#loginBtn,
.auth-container button#registerBtn {
    background: #00ff88;
    color: #121212;
}

.auth-container button#loginBtn:hover,
.auth-container button#registerBtn:hover {
    background: #00cc6a;
}

.auth-container .google-btn {
    background: #275aac;
    color: #fff;
}

.auth-container .google-btn:hover {
    background: #357ae8;
}

.divider {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #888;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #444;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.auth-container p {
    margin-top: 20px;
    color: #ccc;
}

.auth-container a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
}

.auth-container a:hover {
    text-decoration: underline;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #4285f4;
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.google-btn:hover {
    background: #357ae8;
}

.google-logo {
    width: 20px;
    height: 20px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: #1e1e1e;
    padding: 20px;
    border-right: 1px solid #00ff88;
    box-shadow: 2px 0 15px rgba(0,255,136,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    color: #00ff88;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.sidebar-open #overlay {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.user-info {
    text-align: center;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,136,0.2);
    margin-bottom: 30px;
}

.user-info img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.user-info h2 {
    color: #00ff88;
    margin-bottom: 5px;
}

.user-info p {
    color: #ccc;
}

.dashboard-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,136,0.2);
}

.dashboard-content h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.account-action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.account-action input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #121212;
    color: #fff;
}

.account-action button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #00ff88;
    color: #121212;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.account-action button:hover {
    background: #00cc6a;
}

.account-action button.delete {
    background: #ff4444;
}

.account-action button.delete:hover {
    background: #cc0000;
}

#twoFA-section {
    border-top: 1px solid #00ff88;
    padding-top: 20px;
}

#twoFA-section input {
    width: 150px;
}

#twoFA-section button {
    margin-left: 10px;
}

@media (max-width: 600px) {
    .account-action {
        flex-direction: column;
    }
    #twoFA-section input {
        width: 100%;
        margin-bottom: 10px;
    }
    #twoFA-section button {
        width: 100%;
        margin-left: 0;
    }
}


.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-icon img {
    width: 55%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#menu-btn {
    font-size: 1.6rem;
    color: #00ff88;
    cursor: pointer;
    margin-left: 15px;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    #menu-btn {
        display: block;
    }
}

body.sidebar-open .wrapper,
body.sidebar-open .hero {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 480px) {
    .auth-container {
        margin: 50px 20px;
        padding: 30px 20px;
    }

    .auth-container h1 {
        font-size: 1.6rem;
    }

    .auth-container button {
        font-size: 0.95rem;
    }
}