/* ==============================
   GLOBAL RESET
============================== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* ==============================
   UTILITIES
============================== */
.hidden {
    display: none !important;
}

/* ==============================
   MAIN CONTAINER
============================== */
.maincontainer {
    background: #1d2026;
    width: 100%;
    height: 100vh;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* ==============================
   NAVIGATION BAR
============================== */
nav {
    display: flex;
    align-items: center;
    padding: 20px;
}

/* LOGO */
nav .logo-img {
    width: 150px;
    cursor: pointer;
}

/* ==============================
   AUTH AREA (LOGIN / PROFILE SLOT)
============================== */
#authArea {
    flex: 1;
    text-align: right;
    margin-right: 10px;
}

/* LOGIN / SIGNUP LIST */
#authButtons {
    display: inline-block;
}

/* NAV ITEMS */
nav ul li {
    display: inline-block;
    list-style: none;
    margin: 0 12px;
    vertical-align: middle;
}

/* AUTH BUTTONS */
nav ul li button.auth {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 12px 0;
    width: 100px;
    font-size: 16px;
    border-radius: 30px;
    border: 3px solid #fff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li button.auth:hover {
    background: rgba(255,255,255,0.15);
}

/* ==============================
   PROFILE CONTAINER
============================== */
.profile-container {
    position: relative;
    display: inline-block;
    width: auto;
}

/* PROFILE BUTTON */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 3px solid #fff;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: 0.3s;
}

.profile-trigger:hover {
    background: rgba(255,255,255,0.15);
}

/* AVATAR */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* USERNAME */
.username {
    font-size: 15px;
    font-weight: 500;
}

/* CARET */
.caret {
    font-size: 12px;
    opacity: 0.8;
}

/* ==============================
   PROFILE DROPDOWN
============================== */
.dropdown {
    position: absolute;
    right: 0;
    top: 58px;
    width: 150px;
    background: rgba(29,32,38,0.95);
    border-radius: 16px;
    border: 1px solid #ffffff40;
    backdrop-filter: blur(12px);
    display: none;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.dropdown-item {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

/* ==============================
   THEME TOGGLE SWITCH
============================== */
nav > button {
    background: #e7e3e3;
    height: 40px;
    width: 65px;
    border-radius: 20px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: 0.4s;
}

nav > button span {
    display: block;
    background: #999;
    height: 26px;
    width: 26px;
    border-radius: 50%;
    margin-left: 2px;
    transition: 0.4s;
}

.active {
    background: green;
}

.active span {
    margin-left: 31px;
    background: #fff;
}

/* ==============================
   LAMP SECTION
============================== */
.lamp-container {
    position: absolute;
    top: -20px;
    left: 22%;
    width: 200px;
}

.lamp {
    width: 100%;
}

.light {
    position: absolute;
    top: 98%;
    left: 45%;
    transform: translateX(-50%);
    width: 700px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.on {
    opacity: 1;
}

/* ==============================
   TEXT SECTION
============================== */
.text-container {
    max-width: 600px;
    margin-top: 7%;
    margin-left: 50%;
}

.text-container h1 {
    font-size: 80px;
    font-weight: 400;
}

.text-container p {
    margin-top: 10px;
    font-size: 17px;
    color: #ccc;
}

.text-container a {
    text-decoration: none;
    padding: 14px 40px;
    display: inline-block;
    color: #fff;
    font-size: 18px;
    margin-top: 30px;
    border-radius: 30px;
    border: 3px solid #fff;
    backdrop-filter: blur(10px);
}

/* ==============================
   AUTH MODALS
============================== */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(6px);
}

.auth-modal.show {
    display: flex;
}

.auth-box {
    position: relative;
    background: rgba(29,32,38,0.85);
    padding: 40px 45px;
    border-radius: 20px;
    border: 1px solid #ffffff40;
    width: 420px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    opacity: 0.85;
    transition: 0.2s;
}

.close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.auth-box h2 {
    font-size: 34px;
    margin-bottom: 5px;
}

.auth-box .subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 14px;
    border: 1px solid #ffffff80;
    background: #1d2026;
    color: #fff;
    font-size: 15px;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    font-size: 17px;
    margin-top: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-submit:hover {
    background: #222;
}

.switch-text {
    margin-top: 18px;
    font-size: 14px;
}

.switch-link {
    color: #6ecfff;
    cursor: pointer;
    font-weight: 600;
}

.switch-link:hover {
    text-decoration: underline;
}
