/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* App Container */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header Styles */
header {
    background-color: #222020;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Content Area */
main {
    display: flex;
    flex: 1;
    overflow: hidden; /* Prevent scrolling issues */
}

/* Note List Sidebar */
#noteList {
    width: 250px;
    border-right: 1px solid #171616;
    overflow-y: auto;
    background-color: #171414;
    padding: 1rem;
}

/* Note List Items */
#noteList div {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    background-color: #000000;
    color: white;
}

#noteList div:hover {
    background-color: #6b6b6b;
}

/* Note Content Area */
#noteContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    min-width: 0;
    color: white;
    background-color: #000000; /* Prevent content overflow */
}

/* Note Metadata */
#noteMetadata {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Note Editor */
#noteEditor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgb(0, 0, 0); /* DO NOT CHANGE AHHHHH */
}

/* Note Title Input */
#noteTitle {
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background-color: #000000;
    color: white;
}

/* Note Body Textarea */
#noteBody {
    flex: 1;
    resize: none;
    padding: 0.5rem;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: white;
    background-color: #000000;
}

/* Note Actions */
#noteActions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

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

/* Button Styles */
button {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* Input and Form Elements */
input,
textarea,
select {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Note Item Styles */
.note-item {
    position: relative;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    transition: background-color 0.2s;
}

.note-item:hover {
    background-color: #e0e0e0;
}

.note-item.selected {
    background-color: #007bff20;
    border: 1px solid #007bff;
}

/* Checkbox Styles */
.note-checkbox {
    margin-right: 10px;
}

/* Bulk Actions Bar */
.bulk-actions {
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
    display: none;
    background-color: #000000;
}

.bulk-actions.visible {
    display: block;
}

/* Headings */
h2 {
    color: white;
}

/* Background Color Class */
.bgColor {
    color: white;
}

/* Enhanced Button Styles */
button {
    margin: 0.25rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Custom Checkbox Styling */
.note-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-checkbox:checked {
    background-color: #007bff;
}

.note-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Modal Improvements */
.modal-content {
    background-color: #000000;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
}

/* Close Button for Modals */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px;
    margin-right: 10px;
}

/* Font Selector */
#fontStyle {
    background-color: #000000;
    color: white;
    padding: 8px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000;
}

/* Export and Import Options */
.export-options, .import-section {
    margin: 15px 0;
}

/* Date Filter and Note Selection */
.date-filter, .note-selection {
    margin: 10px 0;
}

#noteSelectionList {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
}

/* Delete Account Button */
#deleteAccountBtn {
    background: red;
}
