body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-center {
    flex-grow: 1;
    text-align: center;
    padding: 0 10px;
}

.header-center p {
    margin: 0 0 5px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.small-logo, .wanderlust-logo {
    max-height: 40px;
}

.social-icons a {
    color: #555;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.social-icons a:hover {
    color: #007bff;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.profile-dropbtn:hover {
    background-color: #f0f0f0;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.dropdown-content p {
    margin: 5px 0;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dashboard-main {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    gap: 20px;
    align-items: start;
}

.main-content {
    grid-column: 2;
}

.right-column-banners {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tier-options {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tier-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    min-width: 250px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tier-option h3 {
    color: #0056b3;
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.stripe-btn {
    background-color: #6772e5;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    margin-top: 15px;
}

.stripe-btn:hover {
    background-color: #5469d4;
}

/* General button styles */
button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 0;
    width: 100%;
}

button:hover {
    background-color: #218838;
}

/* Login/Signup specific styles */
.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
}

.password-container {
    position: relative;
    width: calc(100% - 20px);
    margin: 0 auto 15px auto;
}

.password-container input {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.divider-text {
    margin: 15px 0;
    font-size: 14px;
    color: #777;
}

.google-button {
    background-color: #fff;
    color: #757575;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
}

.google-button:hover {
    background-color: #f5f5f5;
}

.google-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.signup-link {
    margin-top: 20px;
    font-size: 14px;
}

.signup-link a {
    color: #0056b3;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Feature card styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
}

.feature-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.feature-card button {
    background-color: #28a745;
    width: auto;
    padding: 10px 20px;
    align-self: flex-start;
}

.feature-card button:hover {
    background-color: #218838;
}

/* Editable list/journal names */
.list-name-edit-container, .journal-entry h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.editable-list-name {
    font-size: 1.5em;
    font-weight: bold;
    border: 1px solid transparent;
    padding: 5px;
    border-radius: 4px;
    flex-grow: 1;
    background-color: transparent;
    color: #333;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.editable-list-name:focus, .editable-journal-title:focus {
    border: 1px solid #0056b3;
    background-color: #f0f8ff;
    outline: none;
}

.editable-list-name[disabled] {
    background-color: transparent;
    cursor: default;
}

.small-edit-btn {
    background: none;
    border: none;
    color: #0056b3;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    width: auto;
}

.small-edit-btn:hover {
    color: #003f80;
    background: none;
}

/* Journal entry actions */
.journal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.journal-actions button {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
}

.edit-journal-btn {
    background-color: #007bff;
}

.edit-journal-btn:hover {
    background-color: #0056b3;
}

.delete-journal-btn {
    background-color: #dc3545;
}

.delete-journal-btn:hover {
    background-color: #c82333;
}

.disclaimer-container {
    text-align: left;
    font-size: 12px;
    color: #555;
    margin: 20px auto;
    max-width: 400px;
}

.tier-features {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tier-feature-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    min-width: 250px;
    margin: 10px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tier-feature-card h3 {
    color: #0056b3;
    text-align: center;
}

.tier-feature-card ul {
    list-style: none;
    padding: 0;
}

.tier-feature-card li {
    margin-bottom: 5px;
}