body {
    background-color: #121212;
    margin: 0;
    min-height: 100vh;
    padding-top: 80px;
    /* for fixed navbar */
    padding-bottom: 60px;
    /* for fixed footer */
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

/* REGISTER AND LOGIN */
.form-container h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.btn-login {
    background-color: #5F4B8B;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #4a3a6d;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #333;
    color: #999;
}

.form-control:focus {
    outline: none;
    background-color: #333;
    color: #999;
    outline: 1px solid #9683C3;
}

.title-text {
    font-size: 50px;
    font-weight: bold;
    color: #5F4B8B;
    text-align: center;
    margin-bottom: 30px;
}

.tagline {
    text-align: center;
    font-size: 20px;
    color: white;
}

.form-container {
    background-color: #1E1E1E;
    ;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.form-container textarea {
    min-height: 100px;
    resize: vertical;
}

.mt-3 {
    margin-top: 15px;
}

.mb-0 {
    margin-bottom: 0;
    color: rgb(174, 174, 174);
}

.mb-4 {
    margin-bottom: 0;
    color: rgb(255, 255, 255);
}

#searchInput {
    color: white;
    background-color: #333;
    border-color: 1px solid #444;
    border: 1px solid #444;
}

#searchInput::placeholder {
    color: #999;
}


#searchInput:focus {
    background-color: #333;
    color: #9683C3;
    box-shadow: none;
    border-color: var(--accent-purple);
}


.color-options {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #333;
    cursor: pointer;
    transition: transform 0.3s;
}

.color-option.selected {
    border: 4px solid black;
    transform: scale(1.1);
}

.product-container {
    display: flex;
    flex-direction: column;
}

.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

.icon-row img {
    margin: 2px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.icon-row img.selected {
    border: 3px solid #5F4B8B;
}

.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

.icon-row img {
    margin: 2px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.icon-row img.selected {
    border: 3px solid #5F4B8B;
}

/* SOCIALS */
.btn-social {
    background-color: #5F4B8B;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 30%;
    font-size: 16px;
    margin-top: 10px;
}

/* PROFILE */
.profile-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 600px;
    margin-top: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #5F4B8B;
    object-fit: cover;
}

.profile-info {
    margin-left: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    color: #5F4B8B;
    margin: 0;
}

.profile-username {
    color: #888;
    margin: 5px 0;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: bold;
    font-size: 18px;
    color: #5F4B8B;
}

.stat-label {
    font-size: 14px;
    color: #888;
}

.profile-bio {
    margin-bottom: 20px;
}

.btn-edit {
    background-color: #5F4B8B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-edit:hover {
    background-color: #4a3a6d;
}

.post-container {
    margin-top: 20px;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-date {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}

.post-content {
    margin-bottom: 10px;
}

.post-actions {
    display: flex;
    color: #888;
    font-size: 14px;
}

.post-action {
    margin-right: 15px;
    cursor: pointer;
}

.post-action:hover {
    color: #5F4B8B;
}

/* Ensure the navbar takes full width */

.navbar {
    width: 100%;
    position: fixed;
    /* Fix navbar to the top */
    top: 0;
    left: 0;
    z-index: 1000;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Logo styles */
.navbar-logo {
    height: 50px;
    width: auto;
}

/* Navbar styles */
.navbar-custom {
    background-color: #1E1E1E !important;
}

.nav-link {
    font-weight: 500 !important;
    color: #999 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5F4B8B;
}

/* Ensure the navbar items stretch across the full width */
.navbar-collapse {
    width: 100%;
}

/* Align navbar items horizontally */
.navbar-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Align the profile and logout section properly */
.navbar-nav.ms-auto {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-nav.ms-auto .nav-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
    /* Adds space between profile and logout */
}

/* Mobile navbar toggler */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-color: #5F4B8B;
}


.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
}

/* Profile Page Specific Styles */
.profile-container {
    background-color: #1E1E1E;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 600px;
    margin-top: 120px;
    flex-grow: 1; 
    margin-bottom: 60px; 
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #5F4B8B;
    object-fit: cover;
}

.profile-info {
    margin-left: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    color: #5F4B8B;
    margin: 0;
}

.profile-username {
    color: #888;
    margin: 5px 0;
}

/* Ensure profile content does not overlap or get cut off */
.profile-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Rest of the profile page styles */
.profile-bio {
    margin-bottom: 20px;
}

h3 {
    color: #999;
}

p {
    color: #999;
}

/* Buttons */
.btn-edit {
    background-color: #5F4B8B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-edit:hover {
    background-color: #4a3a6d;
}

/* Footer */
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #1E1E1E;
    color: #5F4B8B;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/*Social Page*/
/* Set the background color of each card
.card {
    background-color: #1e1e1e;
    color: #999; 
}

/* Set the text color of card headers
.card .card-title, .card .friends-post-title {
    color: #5F4B8B;
}

/* Ensure other text in the card is light grey
.card .card-text {
    color: #999;

/*Following and Followers  */
.followers-list,
.following-list {
    width: 80%;
    max-width: 600px;
    margin-top: 20px;
}

.follower-item,
.following-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.follower-pic,
.following-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.follower-info,
.following-info {
    flex-grow: 1;
}

.stat-item a:hover {
    cursor: pointer;
    text-decoration: underline;
}

.friends-post-title {
    color: white;
}

.notification-title {
    color: white;
}

/*Post modal*/
/* Force the close button "X" to be white */
.btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586l6.293-6.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3E%3C/svg%3E") !important;
    filter: none !important;
    /* remove Bootstrap's invert filter if it's being applied */
}

#movieThoughts {
    background-color: #333;
    /* Dark background */
    color: #999;
    /* Light gray text */
    border: 1px solid #444;
    /* Subtle border */
    border-radius: 4px;
    padding: 10px;
}

/* Placeholder text */
#movieThoughts::placeholder {
    color: #999;
}

/* On focus */
#movieThoughts:focus {
    outline: none;
    border-color: #6f42c1;
    /* Optional: purple border on focus */
    background-color: #1a1a1a;

}

/* Dark theme modal */
/* Make the close button "X" white */
.modal-content .btn-close {
    color: white !important;
    /* Set the text (icon) color to white */
    background-color: transparent !important;
    /* Ensure the background is transparent */
    border: none !important;
    /* Remove border */
}

/* If the icon itself isn't white yet, target the SVG directly */
.modal-content .btn-close svg {
    fill: white !important;
    /* Set the SVG "X" icon color to white */
}

/* Optional: Close button hover effect */
.modal-content .btn-close:hover {
    color: #ccc !important;
    /* Slightly gray when hovered */
}

.modal-content {
    background-color: #222 !important;
    /* Dark background */
    color: #fff;
    /* Light text */
}

.modal-header {
    border-bottom: 1px solid #111;
    /* Dark border */
}

.modal-body {
    background-color: #222;
    /* Darker background for the body */
}

.modal-title {
    color: #fff;
    /* White text for modal title */
}

.modal-header .btn-close {
    color: #fff;
    /* White close button */
    opacity: 1;
    /* Ensure it's visible */
}

/* Dark theme for the modal close button hover */
.modal-header .btn-close:hover {
    background-color: #555;
    /* Slightly darker hover background */
}