* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body {
    transition: background 0.3s, color 0.3s;
}
.container {
    width: 100%;
    min-height: 100vh;
    background: rgb(24, 24, 24);
    color: rgb(251, 251, 251);
    padding: 4% 10%;
}
.container h1 {
    display: flex;
    align-items: center;
    font-size: 35px;
    font-weight: 600;
}
.container h1 img {
    width: 60px;
    margin-right: 10px;
}
.search-container {
    margin: 20px 0;
}
#search-input {
    width: 90%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: #333;
    color: white;
}
.container button.btn {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: aliceblue;
    background: rgb(47, 47, 48);
    border: 0;
    outline: 0;
    border-radius: 40px;
    padding: 15px 25px;
    margin: 30px 0 20px;
    cursor: pointer;
}
.container button i {
    width: 25px;
    margin-right: 8px;
}
.input-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgb(162, 159, 159);
    color: #333;
    padding: 20px;
    margin: 20px 0;
    outline: none;
    border-radius: 10px;
}
.note-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: inherit;
}
.note-content {
    font-size: 16px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: inherit;
    min-height: 80px;
}
.input-box img {
    width: 25px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}
.toolbar button {
    background: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.dark-mode .toolbar button {
    background: #ddd;
    color: black;
}

/* Toggle Switch */
.switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 60px;
    height: 30px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    background-color: #f39c12;
    border-radius: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    font-size: 16px;
    color: white;
}
.slider .moon-icon {
    opacity: 1;
    transition: 0.4s;
}
.slider .sun-icon {
    opacity: 0;
    transition: 0.4s;
}
input:checked + .slider {
    background-color: #333;
}
input:checked + .slider .moon-icon {
    opacity: 0;
}
input:checked + .slider .sun-icon {
    opacity: 1;
}

/* Dark Mode */
.dark-mode {
    background: white;
    color: black;
}
.dark-mode .container {
    background: #f4f4f4;
    color: black;
}
.dark-mode .container button.btn {
    background: #ddd;
    color: black;
}
.dark-mode .input-box {
    background: white;
    color: black;
}
.dark-mode #search-input {
    background: #ddd;
    color: black;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 5% 3%;
        text-align: center;
    }
    .container h1 {
        font-size: 28px;
        justify-content: center;
    }
    .container button.btn {
        font-size: 14px;
        padding: 12px 20px;
        margin: 20px auto;
    }
    .input-box {
        max-width: 100%;
    }
    #search-input {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .container h1 {
        font-size: 24px;
    }
    .container button.btn {
        font-size: 12px;
        padding: 10px 15px;
    }
}
