html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    color: white;
    background-color: black;
}

.grid {
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.041) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
    mask-image: radial-gradient(white 15%, transparent);
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-size: 15px 15px;
}

@font-face {
    font-family: lexend;
    src: url("/assets/fonts/lexend.ttf");
}

* {
    font-family: lexend;
}

nav {
    background: transparent;
    z-index: 5;
    border-radius: 30px;
    border: none;
    width: 99%;
    margin-top: 10px;
    opacity: 1;
    position: fixed;
    left: 50%;
    padding: 5px;
    transform: translateX(-50%);
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    display: flex;
}

nav ul li {
    margin: 5px;
    background: rgb(14, 14, 14);
    border: 0px solid rgba(255, 255, 255, 0.171);
    border-radius: 100px;
    width: 40px;
    aspect-ratio: 1;
    height: 40px;
    transition: 0.15s;
    float: left;
}

nav ul li:hover {
    transform: scale(1.05);
    background: rgb(30, 30, 30);
    cursor: pointer;
}

nav ul li.divider {
    background: rgba(128, 128, 128, 0.445);
    width: 2px;
    height: 20px;
    position: relative;
    transform: translateY(40%);
    padding: 0;
    display: none;
}

nav ul li.divider:hover {
    pointer-events: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

nav ul li a i {
    position: relative;
    left: 50%;
    transform: translate(-50%, 75%);
    cursor: pointer;
}

li.toright {
    position: absolute;
    right: 10px;
}

#contentFrame {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

#contentFrame.active {
    display: block;
}

#homeContent {
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#homeContent.hidden {
    display: none;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-slate-700 {
    color: rgb(51 65 85);
}

.text-slate-600 {
    color: rgb(71 85 105);
}

.font-black {
    font-weight: 900;
}

.font-medium {
    font-weight: 500;
}

.lucide {
    scale: 0.95;
}

.toast-icon {
    margin-right: 6px;
}

.fa-icon-lol {
    font-size: 22px;
    margin-right: 10 px;
    vertical-align: middle;
}

nav ul li.disabled {
    filter: brightness(0.7);
    pointer-events: none;
}

.home-gradient {
    background: linear-gradient(to bottom right, white, black);
    background-clip: text;
    color: transparent;
}

#homesearch {
    background: transparent;
    height: 50px;
    padding: 10px 20px;
    width: 400px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-family: Arial;
    transition: 0.2s;
}

#homesearch:focus {
    outline: none;
}

.searchathome {
    background: rgb(10 10 10);
    border-radius: 20px;
    transition: 0.15s;
}

.searchathome i {
    margin-right: -3%;
    margin-left: 2%;
}

.searchathome:has(#homesearch:focus) {
    background: rgb(20 20 20);
}

.hcontainer {
    display: flex;
    flex-direction: row;
}

.settings-container, .chat-container {
    background: rgb(10 10 10);
    border-radius: 25px;
    color: white;
    width: 625px;
    height: 50vh;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    transition: 0.25s;
    padding: 15px;
    transform-origin: center center;
    filter: drop-shadow(0 0 15px black);
}

.settings-sidebar {
    width: 25%;
    padding: 2px;
    position: relative;
    left: 0;
    margin: 4px;
    top: 0;
}

.settings-section {
    padding: 10px;
    background: transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin: 2px;
}

.settings-section.active {
    background: #1d1d1d;
}

.settings-section:hover {
    background: #3d3d3d;
}

.vflex {
    display: flex;
    flex-direction: column;
}

.settings-section i {
    margin-right: 6px;
}

.settings-content-container {
    width: 67%;
    position: absolute;
    right: 0;
    top: 6.1%;
    margin: 4px;
    margin-left: 18px;
    left: 26%;
}

.settings-content-container h2 {
    font-size: 24px;
    margin-bottom: 7px;
}

.settings-content-container p {
    color: gray;
    font-size: 14px;
    font-weight: 350;
    margin-bottom: 7px;
}

.settings-page {
    display: none;
}

.settings-page.settings-active {
    display: block;
}

p a {
    text-decoration: underline;
    color: white;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: 0.2s;
}

p a:hover {
    color: lightgray;
}

.settings-hidden {
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

.settings-shown {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
    transform-origin: center center;
}

.apps-wrapper.settings-hidden, .chat-container.settings-hidden {
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

.apps-wrapper.settings-shown, .chat-container.settings-shown {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
    transform-origin: center center;
}

.blurOverlay {
    z-index: 1;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.browser-container {
    background: rgb(10 10 10);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6;
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
}

.browser-frame {
    width: 99.25%;
    height: 86.85vh;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: 1px rgba(255, 255, 255, 0.123) solid;
    display: none;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.browser-frame.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.browser-controls {
    height: 200px;
    position: fixed;
    width: 100%;
    left: 0;
}

.tabs {
    height: 100px;
    margin-bottom: -45px;
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    top: 0;
    left: 0;
    display: flex;
}

.browser-buttons {
    height: 100px;
    width: 100%;
    flex: 1;
    justify-content: center;
    display: inline-block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}

.browser-buttons button {
    margin-right: 2px;
    margin-left: 2px;
    height: 35px;
    width: 35px;
    aspect-ratio: 1;
    padding: 0px;
    margin-top: 2px;
    font-size: 15px;
    border-radius: 50%;
    transition: 0.2s;
    cursor: pointer;
}

.browser-buttons button:hover {
    background: #3d3d3d;
}

.browser-buttons input {
    background: rgb(15 15 15);
    border-radius: 15px;
    height: 40px;
    padding: 5px 20px;
    width: 90%;
    transition: 0.2s;
    margin-left: 10px;
    margin-right: 10px;
    color: white;
    font-family: arial;
    outline: none;
    font-size: 14px;
}

.browser-buttons input:focus {
    background: rgb(25 25 25);
    outline: none;
}

.tab {
    background: rgb(20 20 20);
    width: 200px;
    padding: 10px 20px;
    border-radius: 15px;
    margin: 5px;
    transition: 0.2s;
    height: 43px;
}

.tab span {
    overflow: hidden;
    width: 80%;
    margin-right: -50px;
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.tab:hover {
    background: #2d2d2d;
}

.tab.active {
    background: rgb(40 40 40);
}

.tab img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-left: -5px;
}

.tab .close-btn {
    font-size: 20px;
    position: relative;
    top: 10%;
    right: -30%;
    cursor: pointer;
    transition: 0.2s;
}

.tab .close-btn:hover {
    color: rgb(255, 111, 111);
}

.newtab {
    background: rgb(20 20 20);
    height: 35px;
    width: 35px;
    border-radius: 50%;
    margin-top: 9px;
    transition: 0.2s;
    cursor: pointer;
}

.newtab:hover {
    background: #3d3d3d;
}

.apps-wrapper {
    position: fixed;
    height: 70vh;
    width: 500px;
    padding: 15px;
    background: rgb(10 10 10);
    border-radius: 25px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    transition: 0.2s;
    transform-origin: center center;
}

.apps-container::-webkit-scrollbar {
    scrollbar-width: thin;
}

.app {
    background: #0d0d0d;
    border-radius: 25px;
    height: 125px;
    width: 100%;
    display: flex;
    transition: 0.2s;
    cursor: pointer;
    margin-bottom: 3px;
}

.app img {
    height: 100px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    left: 3%;
    border-radius: 20px;
    aspect-ratio: 1;
}

.app h1 {
    font-weight: medium;
    font-size: 20px;
    position: relative;
    top: 85%;
    transform: translateY(-50%);
    margin-left: 7%;
}

.app:hover {
    background-color: #2d2d2d;
}

.dashboard-container {
    background: rgb(10 10 10);
    width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    transition: 0.25s;
    border-radius: 25px;
    transform-origin: center center;
    filter: drop-shadow(0 0 15px black);
}

.dashboard-content {
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.profile-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pfp-wrapper {
    position: relative;
}

.pfp-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2d2d2d;
}

.pfp-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(40 40 40);
    border: 2px solid rgb(10 10 10);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.pfp-edit-btn:hover {
    background: rgb(50 50 50);
}

.user-info h1 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.user-info p {
    font-size: 14px;
    color: #888;
    margin: 5px 0 0 0;
}

.close-dashboard {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(40 40 40);
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.close-dashboard:hover {
    background: rgb(60 20 20);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1d1d1d;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-card i {
    font-size: 24px;
    color: white;
}

.stat-card h3 {
    font-size: 20px;
    margin: 0;
    color: white;
}

.stat-card p {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

.dashboard-section {
    margin-bottom: 25px;
}

.dashboard-section h2 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
}

.activity-list {
    background: #1d1d1d;
    border-radius: 20px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2d2d2d;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item p {
    margin: 0;
    color: white;
    font-size: 14px;
}

.activity-item span {
    color: #888;
    font-size: 12px;
}

.empty-state {
    color: #888;
    text-align: center;
    margin: 0;
}

.settings-list {
    background: #1d1d1d;
    border-radius: 20px;
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2d2d2d;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item h3 {
    font-size: 14px;
    margin: 0;
    color: white;
}

.setting-item p {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

.setting-item button {
    padding: 8px 16px;
    background: rgb(40 40 40);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.setting-item button:hover {
    background: rgb(50 50 50);
}

.account-danger button {
    background: rgba(255, 0, 0, 0.137);
    border: rgba(255, 0, 0, 0.123) 1px solid;
}

.account-danger button:hover {
    background: rgba(255, 0, 0, 0.237);
}

.auth-container {
    background: rgb(10 10 10);
    border-radius: 25px;
    color: white;
    width: 400px;
    height: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    transition: 0.25s;
    padding: 30px;
    transform-origin: center center;
    filter: drop-shadow(0 0 15px black);
}

.auth-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: lexend;
    transition: 0.2s;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    background: #2d2d2d;
    border-color: #555;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: rgb(40 40 40);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: lexend;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 10px;
}

.auth-button:hover {
    background: rgb(50 50 50);
}

.auth-toggle-text {
    color: #888;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 15px;
}

.auth-toggle-text:hover {
    color: #aaa;
}

.signout-button {
    display: none;
    background: rgb(60 20 20);
}

.signout-button:hover {
    background: rgb(80 30 30);
}
