* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}




body.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.login-wrapper {
  max-width: 400px;
  width: 90%;
  padding: 20px;
}

.login-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeIn 0.6s ease;
}

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

.login-container h1 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 1px;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease;
}

.login-container input:focus {
  background: rgba(255,255,255,0.25);
}

.login-container input::placeholder {
  color: #ddd;
}

.show-password {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 5px;
  margin-bottom: 20px;
  user-select: none;
  justify-content: flex-start;
}

.show-password input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00c9a7;
  cursor: pointer;
}

.show-password label {
  cursor: pointer;
  line-height: 1;
  color: #eee;
}


.login-container button {
  width: 100%;
  padding: 12px;
  background: #00c9a7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-container button:hover {
  background: #00b894;
}

.register-text {
  margin-top: 20px;
  font-size: 14px;
  color: #eee;
}

.register-text a {
  color: #00f0ff;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}




.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  background: linear-gradient(to bottom, #1e3c72, #2a5298);
  color: white;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 15px 0;
}

.sidebar a {
  display: block;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.15);
}


.main-content {
  flex-grow: 1;
  background: #f4f6f9;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background 0.3s;
}

.main-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.main-content header h3 {
  font-size: 22px;
  font-weight: 500;
  color: #2c3e50;
}


.top-buttons {
  display: flex;
  gap: 12px;
}

.top-buttons button {
  padding: 8px 16px;
  background-color: #00c9a7;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.top-buttons button:hover {
  background-color: #00b894;
}


.welcome {
  margin-top: 40px;

}

.welcome h1 {
  font-size: 32px;
  color: #34495e;
  margin-bottom: 10px;
}

.welcome p {
  font-size: 16px;
  color: #7f8c8d;
}

body.dark-mode .main-content {
  background: #1f1f1f;
  color: #eee;
}

body.dark-mode .main-content header h3,
body.dark-mode .welcome h1,
body.dark-mode .welcome p {
  color: #eee;
}

body.dark-mode .sidebar {
  background: #111;
}

body.dark-mode .sidebar a {
  color: #ddd;
}

body.dark-mode .sidebar a:hover {
  background: rgba(255,255,255,0.1);
}

body.dark-mode .top-buttons button {
  background-color: #27ae60;
}

body.dark-mode .top-buttons button:hover {
  background-color: #219150;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
  }

  .sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
    border: none;
    padding-bottom: 0;
  }

  .sidebar ul {
    display: flex;
    gap: 10px;
  }

  .sidebar li {
    margin: 5px 0;
  }

  .main-content {
    padding: 20px;
  }

  .welcome h1 {
    font-size: 24px;
  }
}



body.write-page {
  min-height: 100vh;
  background: linear-gradient(to right, #eaeaea, #f5f5f5);
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


.write-container {
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(10px);
  padding: 35px 30px;
  border-radius: 18px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  color: #222;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}


.write-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.write-container h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.write-container button {
  padding: 8px 14px;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

.write-container button:hover {
  background: #27ae60;
}


.write-container input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 15px;
  background: #f9f9f9;
  color: #333;
  border: 1px solid #ccc;
  outline: none;
}


.write-container textarea {
  width: 100%;
  height: 250px;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  background: #fcfcfc;
  color: #222;
  border: 1px solid #ccc;
  resize: vertical;
  outline: none;
}

.write-buttons {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.write-buttons input[type="file"] {
  background: #eee;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  cursor: pointer;
  color: #444;
}

.write-buttons button {
  background: #3498db;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.write-buttons button:hover {
  background: #2980b9;
}


#preview img {
  margin-top: 20px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}


body.dark-mode.write-page {
  background: linear-gradient(to right, #1e1e1e, #2d2d2d);
}

body.dark-mode .write-container {
  background: rgba(30, 30, 30, 0.95);
  color: white;
  border: 1px solid #444;
}

body.dark-mode input,
body.dark-mode textarea {
  background: #2e2e2e;
  color: white;
  border: 1px solid #555;
}

body.dark-mode .write-buttons input[type="file"] {
  background: #3a3a3a;
  color: white;
  
}
body.dark-mode #title{
    background-color: #2e2e2e;
    color: white;
     border: 1px solid #555;
}


/* ========== RESPONSIVE ========== */
@media screen and (max-width: 600px) {
  .write-container {
    padding: 25px 20px;
  }

  .write-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .write-buttons button,
  .write-buttons input[type="file"] {
    width: 100%;
  }
}

.settings-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  color: #333;
  margin:0 auto;
  margin-top: 100px;
}


.settings-header {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}


.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
}


.setting-label {
  font-size: 16px;
  color: #444;
}


.setting-toggle input[type="checkbox"] {
  appearance: none;
  width: 48px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  position: relative;
  transition: 0.3s;
  cursor: pointer;
}

.setting-toggle input[type="checkbox"]::before {
  content: "";
  width: 20px;
  height: 20px;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.setting-toggle input[type="checkbox"]:checked {
  background: #4caf50;
}

.setting-toggle input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}

.save-btn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.save-btn:hover {
  background: #43a047;
}


body.dark-mode {
  background: linear-gradient(to right, #1f1f1f, #333);
  color: white;
}

body.dark-mode .settings-container {
  background: rgba(40, 40, 40, 0.9);
  color: white;
}

body.dark-mode .settings-header {
  color: white;
  border-color: #666;
}

body.dark-mode .setting-label {
  color: #ddd;
}

body.dark-mode .save-btn {
  background: #00c896;
}

body.dark-mode .save-btn:hover {
  background: #00b183;
}



/* ================= RESPONSIVE ================= */
@media screen and (max-width: 500px) {
  .settings-container {
    width: 90%;
    padding: 25px 20px;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .setting-toggle {
    align-self: flex-end;
  }

  .save-btn {
    font-size: 15px;
    padding: 10px;
  }
}
.entries-page {
  background: #f4f6fb;
  font-family: 'Poppins', sans-serif;
  padding: 30px 10px;
  min-height: 100vh;
}

.entries-container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.entries-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry-card {
  background: #ecf0f1;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.entry-card h3 {
  margin: 0 0 5px;
}

.entry-card small {
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.entry-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.entry-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: #4c8bf5;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.entry-actions button:nth-child(2) {
  background: #e74c3c;
}

/* Dark mode support */
body.dark-mode .entries-page {
  background: #1f1f1f;
  color: white;
}

body.dark-mode .entries-container {
  background: #2c2c2c;
}

body.dark-mode .entry-card {
  background: #3d3d3d;
  color: white;
}



input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
  transition: none;
  display: block;
}
 .google-login-btn {
      margin-top: 15px;
      background-color: #4285F4;
      color: white;
      padding: 10px;
      border: none;
      width: 100%;
      font-weight: bold;
      cursor: pointer;
      border-radius: 5px;
      font-size: 16px;
    }

    .google-login-btn:hover {
      background-color: #357ae8;
    }

    .signup-container {
   background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeIn 0.6s ease;}
@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.signup-container h1 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Inputs */
.signup-container input[type="email"],
.signup-container input[type="password"] {
    width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 10px;
  color: black;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease;
}

.signup-container input:focus {
  background: rgba(255, 255, 255, 0.25);
}

.signup-container input::placeholder {
  color: black;
}

/* Button */
.signup-container button {
  width: 100%;
  padding: 12px;
  background: #00c9a7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

.signup-container button:hover {
  background: #00b894;
}

/* Link to Login */
.login-link {
  margin-top: 20px;
  font-size: 14px;
  color: #eee;
}

.login-link a {
  color: #00f0ff;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 500px) {
  .signup-container {
    padding: 30px 20px;
  }

  .signup-container h1 {
    font-size: 24px;
  }

  .signup-container button {
    font-size: 15px;
  }
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dp-placeholder {
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom right, #6a11cb, #2575fc);
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


/* blogs */