/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
}

/* Helper class to center content vertically and horizontally */
.body-center-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Helper class for pages with stacked containers */
.body-landing {
    /* Remove horizontal padding to allow header to be full-width */
    padding-bottom: 2rem;
}

.main-container {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    /* Add horizontal padding here to constrain the content cards */
    padding: 0 1rem;
    gap: 2rem;
}

/* Navbar Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 1.5rem; /* Changed from 2rem to 1.5rem to match Tailwind's px-6 */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

/* Form Container */
.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Form Grouping */
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Important for padding and width */
}

/* Wrapper for password fields to contain the toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* Password Strength Indicator */
#password-strength-indicator {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 1rem; /* Prevents layout shift when text appears */
}

/* "Show/Hide" password toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-style: normal;
    font-size: 0.9rem;
}

/* Button Styles */
.form-container button {
    width: 100%; /* Apply full width only to buttons inside a form container */
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.form-container button:hover {
    background-color: #0056b3;
}

/* Danger button style for deletion */
.button-danger {
    background-color: #dc3545;
}
.button-danger:hover {
    background-color: #c82333;
}
/* Link at the bottom */
p {
    margin-top: 1rem;
    color: #777;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Styles for links that look like buttons */
.button-link {
    display: inline-block;
    width: 100px; /* You can adjust the width as needed */
    padding: 0.75rem;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
}

/* Container for the index page */
.welcome-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 0 auto; /* Let the main-container handle spacing */
}

.welcome-greeting {
    background-color: transparent; /* Remove the card background */
    box-shadow: none; /* Remove the card shadow */
    border-bottom: 1px solid #ddd; /* Add the bottom border */
    border-radius: 0; /* Remove rounded corners */
    padding-bottom: 1.5rem;
}

.welcome-container nav {
    margin-top: 1.5rem;
    gap: 1rem;
}

.welcome-container p {
    margin-top: 1.5rem;
}

/* Profile Info on profile.php */
.profile-info {
    text-align: left;
    margin-top: 2rem;
    line-height: 1.8;
}

/* Profile Picture Section on profile.php */
.profile-picture-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.profile-picture-container {
    position: relative;
    display: inline-block; /* So it only takes the width of the image */
    margin-bottom: 1rem;
}

.delete-picture-form {
    position: absolute;
    top: 0;
    right: 0;
}

.delete-picture-form button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}
.camera-icon-label {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.profile-picture-display {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    display: block; /* To remove any extra space below the image */
}

.profile-picture-initials {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 0 auto; /* Center the div */
    border: 3px solid #ddd;
    box-sizing: border-box;
}


/* Profile Menu Styles */
.profile-menu {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
    box-sizing: border-box;
}

.dropdown-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #007bff; /* Arrow color */
}

.profile-icon {
    position: relative; /* Needed for absolute positioning of the arrow */
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    user-select: none;
    cursor: pointer;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden; /* To make border-radius work on links */
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}