* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: "Montserrat", sans-serif;
}

body {
  background: #eee;
  padding: 0px;
}

title{
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(246, 247, 248, 0.623);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
  margin: 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}

/* Preserve original header design with note-block layers */
header {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f5ba13;
  margin: auto -16px;
  padding: 16px 32px;
  -webkit-box-shadow: 0px -1px 12px 1px #505050; 
  box-shadow: 0px -1px 12px 1px #505050;
  width: 60%;
  z-index: 99;
}

header h1 {
  font-family: "McLaren", cursive;
  font-weight: bold;
  font-size: 2rem;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(244, 223, 147, 0.821);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
  margin: 0;
}

/* Keep original layer design exactly as before */
.layer01{
  position: relative;
  display: flex;
  background-color: #16FF00;
  -webkit-box-shadow: 0px -1px 12px 1px #505050; 
  box-shadow: 0px -1px 12px 1px #505050;
  width: 70%;
  height: 80px;
  margin: 0px -30px;
  margin-bottom: 100px;

}

.layer02{
  position: absolute;
  display: flex;
  background-color: #FB2576;
  -webkit-box-shadow: 0px -1px 12px 1px #505050; 
  box-shadow: 0px -1px 12px 1px #505050;
  width: 80%;
  height: 83px;
  margin: 0px -30px;
}

.layer03{
  position: absolute;
  display: flex;
  background-color: #FDFF00;
  -webkit-box-shadow: 0px -1px 12px 1px #505050; 
  box-shadow: 0px -1px 12px 1px #505050;
  width: 90%;
  height: 86px;
  margin: 0px -30px;
}
.layer04{
  position: absolute;
  display: flex;
  background-color: #31E1F7;
  -webkit-box-shadow: 0px -1px 12px 1px #505050; 
  box-shadow: 0px -1px 12px 1px #505050;
  width: 100%;
  height: 89px;
  margin: 0px -50px 0px 0px;
}

header h1 {
  font-family: "McLaren", cursive;
  font-weight: bold;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(244, 223, 147, 0.821);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
}

.note {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  padding: 10px;
  width: 240px;
  margin: 16px 8px;
  float: left;
  position: relative;
  border-left: 4px solid;
  min-height: 120px;
  transition: all 0.3s ease;
}

.note:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.note h2 {
  font-size: 1.5em;
  margin-bottom: 6px;
}

.note h1 {
  font-family: "McLaren", cursive;
  font-weight: 900;
  font-size: 2rem;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(244, 223, 147, 0.821);
  -webkit-background-clip: text;
  -moz-background-clip: text;
   background-clip: text;
   margin-top: -7px;
}
.note p {
  font-size: 1.1em;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note button {
  padding: 5px auto;
  text-align: center;
  background: #f5ba13;
  color: #020202;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  outline: none;
}

form {
  position: relative;
  width: 480px;
  margin: 30px auto 20px auto;
  background: #fff;
  padding: 15px;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgb(138, 137, 137);
}

form input,
form textarea {
  width: 100%;
  border: none;
  padding: 8px;
  outline: none;
  font-size: 1.2em;
  font-family: inherit;
  resize: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}

form input:focus,
form textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(245, 186, 19, 0.3);
}

/* Legacy button styles - keeping for backward compatibility but overridden by FAB styles */
.note button:not(.MuiFab-root) {
  position: relative;
  float: right;
  margin-right: 10px;
  background-color: #f5ba13;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.note button:not(.MuiFab-root):hover {
  background-color: #e6a300;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

form.create-note button {
  position: absolute;
  right: 18px;
  bottom: -18px;
  /* background: #f5ba13; */
  color: #0a0909;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  outline: none;
}

footer {
  position: fixed;
  background: #eee;
  text-align: center;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

footer p a{
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
}

/* MODERN STYLES FOR ENHANCED FEATURES */

/* Landing Page Styles */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 5% 50px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "McLaren", cursive;
  font-weight: bold;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgb(210 205 255 / 82%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: #f5ba13;
  color: #333;
  border-color: #f5ba13;
}

.btn-primary:hover {
  background: #e6a500;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 186, 19, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-primary.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.demo-notes {
  display: grid;
  gap: 15px;
  transform: rotate(5deg);
}

.demo-note {
  background: #FFE066;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #333;
  transform: rotate(-2deg);
}

.demo-note:nth-child(2) {
  background: #FF9F9B;
  transform: rotate(3deg);
  margin-left: 30px;
}

.demo-note:nth-child(3) {
  background: #A8E6CF;
  transform: rotate(-4deg);
  margin-left: 15px;
}

.demo-note h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.demo-note p {
  margin: 0;
  line-height: 1.4;
}

/* Features Section */
.features-section {
  padding: 80px 5% 50px;
  background: white;
  color: #333;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.feature:hover {
  background: #e9ecef;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header .logo {
  font-family: "McLaren", cursive;
  font-weight: bold;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(248, 248, 248, 0.821);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
  font-size: 2rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #333;
}

.auth-header p {
  color: #666;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #f5ba13;
}

.btn-primary.full-width {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

.divider span {
  padding: 0 15px;
  color: #666;
  font-size: 0.9rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-google:hover {
  border-color: #ddd;
  background: #f8f9fa;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
}

.auth-footer p {
  color: #666;
  margin: 0 0 10px;
}

.auth-footer a {
  color: #f5ba13;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.forgot-link {
  color: #666 !important;
  font-size: 0.9rem;
}

/* Header Updates */
.header-logo {
  text-decoration: none;
  color: inherit;
}

.header-logo h1 {
  font-size: 2rem;
  font-family: "McLaren", cursive;
  font-weight: bold;
  background-color: #1e1e3a;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(244, 223, 147, 0.821);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-text {
  color: white;
  font-weight: 500;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Keeper App Layout - Original Style */
.keeper-app {
  min-height: 100vh;
  background: #eee;
}

.app-content-original {
  min-height: calc(100vh - 200px);
  padding-top: 120px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  clear: both;
  width: 100%;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #999797;
}

.empty-state p {
  color: #7c7c7c;
  font-size: 1.1rem;
  margin: 0;
}

/* User Profile */
.user-profile {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  width: 100%;
  height: 100%;
  background: #f5ba13;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.profile-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #333;
}

.profile-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
}

.profile-actions {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.profile-btn:hover {
  color: #333;
}

.profile-btn .icon {
  width: 16px;
  height: 16px;
}

/* Categories */
.categories h3 {
  margin: 0 0 15px;
  color: #333;
  font-size: 1.1rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: none;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  text-transform: capitalize;
}

.category-btn:hover {
  background: #f8f9fa;
  border-color: #ddd;
}

.category-btn.active {
  background: #f5ba13;
  border-color: #f5ba13;
  color: white;
}

.category-btn .count {
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.category-btn.active .count {
  background: rgba(255, 255, 255, 0.3);
}

/* Search Bar */
.search-bar {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  color: #666;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #f5ba13;
}

.clear-search {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-results {
  margin-top: 10px;
}

.notes-count {
  color: #666;
  font-size: 0.9rem;
}

/* Original Form Styles */
form {
  position: relative;
  width: auto;
  margin: 30px auto 20px auto;
  background: #fff;
  padding: 15px;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgb(138, 137, 137);
}

form input,
form textarea {
  width: 100%;
  border: none;
  padding: 4px;
  outline: none;
  font-size: 1.2em;
  font-family: inherit;
  resize: none;
}

form.create-note button, form.create-note .MuiFab-root {
  position: absolute;
  right: 18px;
  bottom: -30px;
  color: #080808;
  border: none;
  border-radius: 50%;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
  outline: none;
}

/* Enhanced Create Area - keep modern functionality but original styling */
/* CreateArea Component Styles */
.create-area-container {
  position: sticky;
  top: 20px;
  z-index: 10;
  margin: 32px auto 20px;
  max-width: 480px;
}

.create-note {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f5ba13;
  transition: all 0.3s ease;
  padding: 16px;
  margin: 0 16px;
  position: relative;
}

.create-note:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* CreateArea Component Actions */
.create-note-extras {
  margin-top: 12px;
}

/* .create-note-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
}

.color-section {
  position: relative;
  display: flex;
  align-items: center;
} */

.create-note-actions {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  position: relative;
}

.color-section {
  position: relative;
  display: flex;
  align-items: center;
  left: 70px;
}

.color-palette {  
  position: absolute;
  display: flex;
  left: -60px;
  top: 45px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 390px; /* Reduced width for better fit */
  min-height: 60px;
}

.color-picker-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0c0a0a;
  color: #080808;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5ba13;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.color-picker-btn:hover {
  border-color: #999;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* .color-picker-btn svg {
  width: 20px;
  height: 20px;
  color: white;
} */
/* 
.color-palette {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width:390px;
  min-height: 60px;
} */

.color-option:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
  border-color: #333;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Notes Layout - Use original float layout */
.notes-grid {
  margin-top: 20px;
  overflow: hidden; /* Clear floats */
  padding: 0 20px;
}

/* Clear floats after notes */
.notes-grid::after {
  content: "";
  display: table;
  clear: both;
}

/* Note Styles */
.note {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  padding: 16px;
  width: 240px;
  margin: 16px 8px;
  float: left;
  position: relative;
  border-left: 4px solid;
  min-height: 120px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.note:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.note-view {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.note-category {
  background: rgba(245, 186, 19, 0.2);
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  align-self: flex-start;
}

.note-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.3;
}

.note-content {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin: 0 0 12px 0;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.note-timestamp {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}

.note-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.note-actions .MuiFab-root {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.note-actions .MuiFab-root:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Note Edit Mode */
.note-edit {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.edit-title, .edit-content, .edit-category {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.edit-title:focus, .edit-content:focus, .edit-category:focus {
  border-color: #f5ba13;
  box-shadow: 0 0 0 2px rgba(245, 186, 19, 0.2);
}

.edit-content {
  resize: vertical;
  min-height: 60px;
  flex-grow: 1;
}

.edit-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.edit-actions .MuiFab-root {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
}

.note h2, .note-title {
  font-size: 1.5em;
  margin-bottom: 6px;
  margin: 0;
  color: #333;
}

.note p, .note-content {
  font-size: 1.1em;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Original button styling for notes */
.note button, .note .MuiFab-root {
  position: relative;
  float: right;
  background-color: #f5ba13 !important;
  color: #080707;
  border: none;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
  outline: none;
  z-index: 0;
}

/* Note editing styles - simplified to match original */
.note-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-title,
.edit-content,
.edit-category {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px;
  font-family: inherit;
  resize: none;
  font-size: 1em;
}

.edit-title {
  font-size: 1.5em;
  font-weight: normal;
}

.edit-content {
  min-height: 60px;
  resize: vertical;
}

.edit-actions {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  margin-top: 5px;
}

.edit-actions .MuiFab-root {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
}

/* Note footer - simplified */
.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 5px;
  border-top: 1px solid #eee;
}

.note-timestamp {
  font-size: 0.8rem;
  color: #666;
}

.note-actions {
  display: flex;
  gap: 5px;
}

.note-category {
  background: rgba(245, 186, 19, 0.2);
  color: #333;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 5px;
  display: inline-block;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #333;
}

.empty-state p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Demo Page Styles */
.demo-page {
  min-height: 100vh;
  background: #f5f5f5;
}

.demo-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 5%;
  text-align: center;
  position: relative;
}

.demo-banner-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.demo-banner-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.demo-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-warning {
  background: rgba(255, 193, 7, 0.2);
  color: #fff3cd;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 20px;
  display: inline-block;
}

.demo-cta {
  background: white;
  padding: 60px 5%;
  text-align: center;
  border-top: 1px solid #eee;
}

.cta-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.cta-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.floating-user-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s;
}
.floating-user-btn:hover {
  background: #444;
}

.floating-user-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1001;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 20px 24px;
  min-width: 220px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: fadeInPanel 0.2s;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

.panel-welcome {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.panel-logout-btn,
.panel-login-btn {
  background: #10B981;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.panel-logout-btn:hover,
.panel-login-btn:hover {
  background: #059669;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: auto;
}


@media (max-width: 500px){
 form{
  width: auto;
  margin: 30px 16px 20px 16px;
 }

 .note {
  width: 90%;
  margin: 20px 18px;
 }

 .color-palette {
  left: -75px;
   width: auto;
 }

 .create-note-actions {
   gap: 8px;
 }

 .note {
   padding: 12px;
 }

 .note-actions .MuiFab-root {
   width: 28px !important;
   height: 28px !important;
   min-height: 28px !important;
 }

form.create-note button {    
  width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

   .floating-user-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .floating-user-panel {
    bottom: 70px;
    right: 8px;
    padding: 16px 12px;
    min-width: 160px;
  }

  .header-logo h1{
    font-size: 1.7rem;
  }

}

/* Enhanced Responsive Design */
@media (max-width: 768px) {

 /* form.create-note button{
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  } */

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .app-content {
    flex-direction: column;
  }
  
  .app-sidebar {
    width: 100%;
  }
  
  .app-main {
    max-width: 100%;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .demo-actions {
    flex-direction: column;
    align-items: center;
  }

  .create-area-container {
    margin: 16px auto;
    max-width: 95%;
  }

  .create-note {
    margin: 0 8px;
    padding: 12px;
  }

  .color-palette {
    width: auto;
  }

  .note {
    width: calc(50% - 16px);
    margin: 8px;
  }

  .note-actions .MuiFab-root {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}