.modal {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto;
}
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
}
.modal-content h2 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #222;
    text-align: center;
}
.modal-content input {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}
.modal-content button {
    width: 100%;
    padding: 10px;
    margin: 10px 0 5px;
    background: #34C780;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.modal-content button:hover {
    background: #2ca36c;
}
.switch-link {
    display: block;
    margin-top: 10px;
    cursor: pointer;
    color: #34C780;
    text-decoration: underline;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Dark theme support */
.theme-dark .modal-content {
    background: #23272a;
    color: #e0e0e0;
}
.theme-dark .modal-content h2 {
    color: #e0e0e0;
}
.theme-dark .modal-content input {
    background: #2c3136;
    color: #e0e0e0;
    border-color: #31363b;
}
.theme-dark .switch-link {
    color: #34C780;
}
.theme-dark .modal {
    background: rgba(0,0,0,0.8);
}
/* Errors */
.error-message {
    color: #E13C50;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
}


.user-menu-dropdown {
    position: fixed;
    top: 38px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
}
.user-menu-dropdown:not(.hidden) {
    display: block;
}
.menu-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #222;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
    text-align: center;
}
.menu-item:hover {
    background-color: #f0f0f0;
    color: #34C780;
}

/* Dark theme for dropdown and logout button */
.theme-dark .user-menu-dropdown {
    background: #2c3136;
    border-color: #31363b;
}
.theme-dark .menu-item {
    color: #e0e0e0;
}
.theme-dark .menu-item:hover {
    background-color: #31363b;
    color: #34C780;
}