/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #333;
}




/* Navigation Bar */
nav {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.nav-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

#nav-user, #nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}




/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left; 
}


/* Footer */
.email-footer {
    text-align: center;
    padding: 1rem 0;
    background: #1a1a2e;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Forms and Buttons */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-container h1 {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
}


.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: #1a1a2e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #16213e;
}

/*Forgot Password and Register Links*/
.forgot-password-link {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.forgot-password-link a {
    color: #1a1a2e;
    text-decoration: none;
}

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

.register-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.register-link a {
    color: #1a1a2e;
    text-decoration: none;
}
.register-link a:hover {
    text-decoration: underline;
}



/* Dashboard */
.dashboard-main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.welcome-message {
    width: 100%;
    text-align: left;
    margin-bottom: 2.5rem;
    margin-left: -2.5rem;
    padding: 0;
}

.welcome-message h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}

.welcome-message p {
    color: #666;
    font-size: 1rem;
}

.notes-container {
    width: 100%;
}

.notes-header {
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
}

.create-note {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-card h3 {
    margin-bottom: 0.5rem;
}

.note-card small {
    color: #888;
    display: block;
    margin: 0.5rem 0;
}

.note-card button {
    background: #c0392b;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

#message, #create-message {
    margin-top: 1rem;
    color: #c0392b;
    text-align: center;
}





/* Settings Page */
.settings-container {
    max-width: 600px;
    margin: 2rem auto;
}

.settings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-card h2 {
    margin-bottom: 1rem;
}

.danger-zone {
    border: 1px solid #c0392b;
}

.danger-zone h2 {
    color: #c0392b;
}

.danger-zone button {
    background: #c0392b;
    margin-top: 1rem;
}

.danger-zone p {
    color: #666;
    font-size: 0.9rem;
}

