@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: white;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}

.light-mode {
  background-color: #ffffff;
  color: black;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: black;
}

.light-mode header {
  background: white;
}

button {
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  background: #333;
  color: white;
  transition: 0.3s;
}

.light-mode button {
  background: #ddd;
  color: black;
}

#add-note {
  margin: 20px;
  background: blue;
}

.light-mode #add-note {
  background: yellow;
  color: black;
}

#notes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
}

.note {
  width: 250px;
  padding: 15px;
  background: #222;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.light-mode .note {
  background: #f0f0f0;
  color: black;
}

/* FULL-SCREEN MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.full-screen {
  width: 100%;
  height: 100%;
  background: #08090B;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.light-mode .full-screen {
  background: white;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  background: #222;
  color: white;
}

.light-mode .modal-header {
  background: #f0f0f0;
  color: black;
}

.modal-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px;
  background: #222;
}

.light-mode .modal-footer {
  background: #f0f0f0;
}

.editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 5px;
}

.toolbar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.toolbar button {
  font-size: 18px;
}

/* LOCK MODAL */
.lock-modal-content {
  width: 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Lock Modal Styling */
#lock-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Lock Modal Content */
.lock-modal-content {
    background: #222;
    color: white;
    padding: 25px;
    width: 350px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.light-mode .lock-modal-content {
    background: #f9f9f9;
    color: black;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* PIN Input Field */
#pin-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border: none;
    border-radius: 6px;
    outline: none;
    background: #333;
    color: white;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.light-mode #pin-input {
    background: #e6e6e6;
    color: black;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Unlock Button */
#unlock-note {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#unlock-note:hover {
    background: #45a049;
}

.light-mode #unlock-note {
    background: #007BFF;
}

.light-mode #unlock-note:hover {
    background: #0056b3;
}

/* Smooth Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}