/* =========================
   INPUT SECTION
========================= */

.inputSection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

input, select {
    padding: 12px;
    border-radius: 5px;
    border: 2px solid #2A84FF;
    background-color: var(--card-color);
    color: var(--text-color);
}

input {
    flex: 1;
    min-width: 150px;
}

input:focus, select:focus {
    outline: 1px solid #48A111;
    box-shadow: 0 0 0 3px rgba(72, 161, 17, 0.2);
    border-color: #48A111;
}

body.dark-mode input,
body.dark-mode select {
    border-color: #444;
}

body.dark-mode input:focus {
    border-color: #48A111;
}

/* =========================
   BUTTON STYLES
========================= */

button {
    border: none;
    border-radius: 5px;
    background-color: #48A111;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.95);
}

/* =========================
   NOTE CARD
========================= */

.todoDiv {
    background-color: var(--card-color);
    border-left: 5px solid #B832C5;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

body.dark-mode .todoDiv {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.pinned {
    border-left: 5px solid gold !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* =========================
   CATEGORY COLORS (FIXED)
========================= */

.todoDiv[data-category="general"] { border-left-color: #B832C5; }
.todoDiv[data-category="work"] { border-left-color: #2A84FF; }
.todoDiv[data-category="personal"] { border-left-color: #48A111; }
.todoDiv[data-category="ideas"] { border-left-color: #FF9800; }
.todoDiv[data-category="important"] { border-left-color: #FF4545; }

/* =========================
   FOOTER SECTION
========================= */

.footerDiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timestamp {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

body.dark-mode .timestamp {
    color: #aaa;
}

.categoryLabel {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    font-weight: bold;
    white-space: nowrap;
}

body.dark-mode .categoryLabel {
    background: rgba(255, 255, 255, 0.15);
}

.pinBtn {
    background: transparent !important;
    padding: 5px !important;
    font-size: 16px !important;
    box-shadow: none !important;
    transform: none !important;
}

.pinBtn:hover {
    background: rgba(0,0,0,0.05) !important;
}

body.dark-mode .pinBtn:hover {
    background: rgba(255,255,255,0.05) !important;
}

/* =========================
   MENU & DROPDOWN
========================= */

.menu-wrapper { position: relative; }

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    color: #333;
    transition: background 0.2s;
}

body.dark-mode .menu-btn { color: #fff; }

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 100;
}

.dropdown-menu.show { display: block; }

body.dark-mode .dropdown-menu {
    background: #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    color: #2a2a2a;
}

body.dark-mode .dropdown-item { color: #eee; }
.dropdown-item:hover { background: #f0f0f0; }
body.dark-mode .dropdown-item:hover { background: #3a3a3a; }
.delete-item { color: #FF4545; }
