:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-text {
    background: transparent;
    color: var(--secondary-color);
    padding-left: 0;
}

.memory-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.memory-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.memory-text {
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

textarea,
input[type="text"] {
    width: 93%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: var(--bg-color);
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
}

input[type="file"] {
    color: var(--text-color);
}

.loading {
    text-align: center;
    color: var(--secondary-color);
    margin-top: 2rem;
}

.recall-actions {
    margin-top: 15px;
    text-align: right;
}

.btn-complete {
    background-color: #10b981;
    /* Green */
    color: white;
}

.next-recall-info {
    font-weight: 400;
    opacity: 0.85;
    font-size: 0.85em;
}

/* User bar */
#user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #334155;
    font-size: 0.85rem;
}

.app-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

#user-bar .user-email {
    color: var(--secondary-color);
}

#user-bar #logout-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #ef4444;
}

#user-bar .user-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: auto;
}

#user-bar .user-link:hover {
    text-decoration: underline;
}

/* User Menu Styles */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #334155;
    border-radius: 20px;
    background: var(--bg-color);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.btn-user:hover {
    background-color: #334155;
}

.user-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-color);
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.hidden {
    display: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.15s;
    border-bottom: 1px solid #334155;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #334155;
}