@font-face {
    font-family: 'Comfortaa';
    src: url('../assets/fonts/comfortaa-regular.woff2') format('woff2'),
        url('../assets/fonts/comfortaa-regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('../assets/fonts/comfortaa-bold.woff2') format('woff2'),
        url('../assets/fonts/comfortaa-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

body {
    background-color: #090C15;
    color: white;
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 50%, #d4d8e8 100%);
    color: #1a1a2e;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: rgba(10, 13, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #5638E5;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #7c5cef;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 45px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

body.light-theme .nav-links a {
    color: #1a1a2e;
}

.nav-links a:hover {
    color: #543fce;
}

body.light-theme .nav-links a:hover {
    color: #5638E5;
}

.nav-links a.active {
    color: #543fce;
    font-weight: bold;
}

body.light-theme .nav-links a.active {
    color: #5638E5;
}

.signup-hamburger {
    display: flex;
    align-items: center;
    gap: 30px;
}

.signup-btn {
    background-color: #0E0634;
    border: 2px solid #5638E5;
    border-radius: 7px;
    padding: 10px 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

body.light-theme .signup-btn {
    background-color: #5638E5;
    border-color: #4325c2;
    color: white;
}

.signup-btn:hover {
    background-color: #5638E5;
}

body.light-theme .signup-btn:hover {
    background-color: #4325c2;
}

.hamburger {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger div {
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

body.light-theme .hamburger div {
    background-color: #1a1a2e;
}

.main-content {
    flex: 1;
}

.settings-wrapper {
    padding: 0;
    display: flex;
}

.sidebar {
    width: 265px;
    background-color: #0A0D18;
    padding: 25px 20px;
    min-height: calc(100vh - 74px);
    border-right: 1px solid #2C2F45;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .sidebar {
    background-color: #ffffff;
    border-right: 1px solid #d4d8e8;
}

.sidebar-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    color: white;
    padding-left: 10px;
    transition: color 0.3s ease;
}

body.light-theme .sidebar-title {
    color: #1a1a2e;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    text-decoration: none;
    color: white;
    border-radius: 9px;
    transition: all 0.3s ease;
    font-family: 'PT Sans', sans-serif;
    font-size: 19px;
    font-weight: 600;
}

body.light-theme .sidebar-link {
    color: #1a1a2e;
}

.sidebar-link:hover {
    background-color: #161830;
    color: #5638E5;
}

body.light-theme .sidebar-link:hover {
    background-color: #f0f2f8;
    color: #5638E5;
}

.sidebar-link.active {
    background-color: #1A1C36;
    color: #5638E5;
    border-left: 4px solid #5638E5;
}

body.light-theme .sidebar-link.active {
    background-color: #e8eaf0;
    color: #5638E5;
}

.sidebar-link .icon {
    font-size: 24px;
    width: 34px;
    height: 34px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link .icon img {
    width: 24px;
    height: 24px;
}

.content-area {
    flex: 1;
    padding: 30px 40px;
    background-color: #090C15;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

body.light-theme .content-area {
    background-color: #f5f7fa;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
    max-width: 1085px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #161830;
    border: 1px solid #2C2F45;
    border-radius: 25px;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .search-box input {
    background-color: #ffffff;
    border-color: #d4d8e8;
    color: #1a1a2e;
}

.search-box input:focus {
    outline: none;
    border-color: #5638E5;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #543fce;
    transition: border-color 0.3s ease;
}

body.light-theme .profile-header {
    border-bottom-color: #7c5cef;
}

.profile-title h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

body.light-theme .profile-title h2 {
    color: #1a1a2e;
}

.profile-title p {
    font-size: 16px;
    color: #a7a7c7;
    margin: 0;
    transition: color 0.3s ease;
}

body.light-theme .profile-title p {
    color: #6b6b7f;
}

.goto-profile-btn {
    background-color: #0E0634;
    border: 2px solid #5638E5;
    border-radius: 7px;
    padding: 10px 24px;
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

body.light-theme .goto-profile-btn {
    background-color: #5638E5;
    border-color: #4325c2;
    color: white;
}

.goto-profile-btn:hover {
    background-color: #1a1046;
}

body.light-theme .goto-profile-btn:hover {
    background-color: #4325c2;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.form-group-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group:has(#pronouns),
.form-group:has(#location) {
    margin-bottom: 24px !important;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'PT Sans', sans-serif;
    transition: color 0.3s ease;
}

body.light-theme .form-group label {
    color: #1a1a2e;
}

.form-group input,
.form-group textarea,
.select-wrapper select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 18px;
    background-color: #161830;
    border: 1px solid #2C2F45;
    border-radius: 8px;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .select-wrapper select {
    background-color: #ffffff;
    border-color: #d4d8e8;
    color: #1a1a2e;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a7a7c7;
    opacity: 0.8;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: #6b6b7f;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5638E5;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.custom-pronouns-container {
    margin-top: 10px;
}

.custom-pronouns-input {
    width: 100%;
    padding: 14px 18px;
    background-color: #161830;
    border: 1px solid #2C2F45;
    border-radius: 8px;
    color: white;
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .custom-pronouns-input {
    background-color: #ffffff;
    border-color: #d4d8e8;
    color: #1a1a2e;
}

.custom-pronouns-input:focus {
    outline: none;
    border-color: #5638E5;
}

.custom-pronouns-input::placeholder {
    color: #a7a7c7;
    opacity: 0.8;
}

body.light-theme .custom-pronouns-input::placeholder {
    color: #6b6b7f;
}

.profile-pic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-right: 0;
    margin-left: 40px;
}

.profile-pic-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-pic-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #161830;
    border: 2px solid #5638E5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

body.light-theme .profile-pic-circle {
    background-color: #ffffff;
}

.edit-pic-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5638E5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
}

.edit-icon {
    width: 20px;
    height: 20px;
}

.edit-pic-btn:hover {
    background-color: #4325c2;
    transition: background-color 0.3s ease;
}

.profile-pic-container p {
    font-size: 15px;
    color: #a7a7c7;
    margin: 0;
    transition: color 0.3s ease;
}

body.light-theme .profile-pic-container p {
    color: #6b6b7f;
}

.form-actions {
    display: flex;
    gap: 18px;
    margin-top: 36px;
}

.save-btn {
    background-color: #5638E5;
    border: none;
    border-radius: 7px;
    padding: 14px 24px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.light-theme .save-btn {
    background-color: #5638E5;
}

.save-btn:hover {
    background-color: #4325c2;
}

body.light-theme .save-btn:hover {
    background-color: #4325c2;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid #5638E5;
    border-radius: 7px;
    padding: 14px 24px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.light-theme .cancel-btn {
    color: #1a1a2e;
    border-color: #5638E5;
}

.cancel-btn:hover {
    background-color: rgba(86, 56, 229, 0.1);
}

body.light-theme .cancel-btn:hover {
    background-color: rgba(86, 56, 229, 0.1);
}

.error-message {
    color: rgb(255, 0, 0);
    font-size: 14px;
    margin-top: 5px;
    font-family: 'PT Sans', sans-serif;
    min-height: 18px;
}

.input-error {
    border-color: red !important;
}

footer {
    background-color: #0A0D18;
    border-top: 1px solid #2C2F45;
    padding: 40px 50px;
    font-family: 'Comfortaa', sans-serif;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme footer {
    background-color: #ffffff;
    border-top-color: #d4d8e8;
    color: #1a1a2e;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-section {
    margin-bottom: 20px;
    flex: 1;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #6f54f8;
    transition: color 0.3s ease;
}

body.light-theme .footer-section h3 {
    color: #5638E5;
}

.footer-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.footer-section a {
    color: #5638E5;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: none;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    padding: 2px 0;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    width: fit-content;
}

body.light-theme .footer-links a {
    color: #1a1a2e;
}

.footer-links a:hover {
    color: #5638E5;
    text-decoration: none;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #1A1F36;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

body.light-theme .footer-separator {
    background-color: #d4d8e8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
    transition: color 0.3s ease;
}

body.light-theme .copyright {
    color: #6b6b7f;
}

@media (max-width: 992px) {
    .form-row {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .profile-pic-container {
        margin: 0 auto 30px;
    }

    .form-group {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0A0D18;
        padding: 20px;
        z-index: 999;
        border-bottom: 1px solid #5638E5;
    }

    body.light-theme .nav-links.active {
        background-color: #ffffff;
        border-bottom-color: #7c5cef;
    }

    .content-area {
        padding: 20px 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .goto-profile-btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-btn,
    .cancel-btn {
        width: 100%;
    }
}

.textarea-container {
    position: relative;
    width: 100%;
}

.character-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 14px;
    color: #a7a7c7;
    font-family: 'PT Sans', sans-serif;
    background-color: rgba(22, 24, 48, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

body.light-theme .character-count {
    color: #6b6b7f;
    background-color: rgba(255, 255, 255, 0.8);
}

.character-count.approaching-limit {
    color: #ffa500;
}

.character-count.over-limit {
    color: #ff0000;
    font-weight: bold;
}

.form-group textarea {
    padding-right: 70px;
}