/* -------------------- General reset -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* -------------------- Login / Sign Up Pages -------------------- */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* full screen */
}

form {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

form h2 {
    margin-bottom: 20px;
    color: #333;
}

form label {
    display: block;
    text-align: left;
    margin-top: 10px;
    color: #555;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="submit"],
form input[type="button"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form input[type="submit"],
form input[type="button"] {
    background-color: #4CAF50;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover,
form input[type="button"]:hover {
    background-color: #45a049;
}

/* -------------------- Home Page / Sidebar -------------------- */
.home-container {
    display: flex;
    height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: 220px;
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.sidebar-btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-btn:hover {
    background-color: #45a049;
}

.sidebar-btn.active {
    background-color: #2e7d32;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* Page inside main content */
.page {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* -------------------- Add Note form -------------------- */
.add-note-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.note-title {
    font-size: 1.2rem;
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    max-height: 50px;
    box-sizing: border-box;
}

.note-content {
    font-size: 1rem;
    padding: 10px;
    flex-grow: 1;
    width: 100%;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.save-note-btn {
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
}

/* -------------------- My Notes List -------------------- */
#myNotes ul {
    list-style: none;
    padding: 0;
}

#myNotes li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
