:root {
  --primary: #7042f8;
  --primary-light: #8c52ff;
  --secondary: #6a3af5;
  --bg-dark: #12122e;
  --bg-light: #1a1a36;
  --text: #ffffff;
  --text-muted: #a0a0c0;
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --success: #4caf50;
  --warning: #ff9800;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-light);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 1.8rem;
  margin-right: 0.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary-light);
}

.user-info h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  text-align: center;
}

.user-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.edit-profile {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-profile:hover {
  background: var(--primary);
  color: white;
}

.nav-menu {
  list-style: none;
  padding: 0 0.5rem;
}

.nav-item {
  margin-bottom: 0.5rem;
  /* justify-content: center; */
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: white;
}

.nav-icon {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.logout {
  margin-top: auto;
  padding: 0 1rem;
}

.logout-btn {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.logout-icon {
  margin-right: 0.5rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  transition: all 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.notification-btn,
.settings-btn {
  background: var(--card-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.notification-btn:hover,
.settings-btn:hover {
  background: var(--primary);
}

/* Dashboard Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.card-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-content {
  margin-bottom: 1rem;
}

.card-stats {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.card-trend {
  display: flex;
  align-items: center;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--warning);
}

/* Memories Gallery */
.gallery-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
}

.add-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.add-icon {
  margin-right: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.memory-card {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.memory-card:hover {
  transform: scale(1.05);
}

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

.memory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1rem;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}

.memory-card:hover .memory-overlay {
  opacity: 1;
}

.memory-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.memory-date {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* video Diary */
.diary-section {
  margin-bottom: 2rem;
  width: 100vh;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.diary-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.diary-card:hover {
  transform: translateY(-5px);
}

.diary-thumbnail {
  position: relative;
  height: 180px;
}

.diary-img,
.diary-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.diary-card:hover .play-icon {
  opacity: 1;
  background: var(--primary);
}

.diary-content {
  padding: 1rem;
}

.diary-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.diary-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Support Section */
.support-section {
  margin-bottom: 2rem;
}

.support-card {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.support-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.support-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.support-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.support-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-light);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-file {
  display: none;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-btn:hover {
  border-color: var(--primary);
}

.upload-icon {
  margin-right: 0.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.cancel-btn,
.save-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
}

.save-btn {
  background: var(--primary);
  border: none;
  color: white;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.save-btn:hover {
  background: var(--secondary);
}

/* Video Record Modal */
.camera-preview {
  width: 100%;
  height: 300px;
  background: #000;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-placeholder {
  color: var(--text-muted);
  text-align: center;
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.camera-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.record-btn {
  background: rgba(255, 0, 0, 0.8);
  border: none;
  color: white;
}

.record-btn:hover {
  background: rgba(255, 0, 0, 1);
}

.pause-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
}

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

/* Notification Area */
.notification-area {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
  animation: slideIn 0.3s ease-out;
  max-width: 300px;
}
/* Base Styles */
:root {
  --primary: #7e57c2;
  --primary-light: #b085f5;
  --primary-dark: #4d2c91;
  --secondary: #64b5f6;
  --accent: #ff80ab;
  --text-dark: #333;
  --text-light: #777;
  --background: #f5f5f5;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --success: #66bb6a;
  --error: #f44336;
  --warning: #ffb74d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Authentication Page Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
  position: relative;
  overflow: hidden;
}

.auth-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  width: 400px;
  max-width: 90%;
  text-align: center;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.logo {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-title {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.auth-input {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.3);
  outline: none;
}

.auth-button {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.auth-button:hover {
  background: var(--primary-dark);
}

.auth-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.error-message {
  color: var(--error);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.success-message {
  color: var(--success);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Particle Animation */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-40px) translateX(20px);
  }
  50% {
    transform: translateY(-20px) translateX(-20px);
  }
  75% {
    transform: translateY(40px) translateX(-10px);
  }
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
  color: white;
  padding: 1.5rem 1rem;
  position: fixed;
  height: 100vh;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar.expanded {
  width: 240px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.logo-icon {
  margin-right: 0.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.user-profile {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
}

.user-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.user-info p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.edit-profile {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.edit-profile:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-menu {
  list-style: none;
  margin-bottom: auto;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
}

.nav-icon {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.logout {
  margin-top: auto;
  padding-top: 1rem;
}

.logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

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

.logout-icon {
  margin-right: 0.8rem;
}

/* Main Content Area */
.main-content {
  margin-left: 240px;
  padding: 2rem;
  width: calc(100% - 240px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-weight: 600;
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.notification-btn,
.settings-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.notification-btn:hover,
.settings-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.card-icon {
  font-size: 1.5rem;
}

.card-content {
  margin-bottom: 1rem;
}

.card-stats {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-trend {
  font-weight: 500;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--error);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.add-btn {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn:hover {
  background: var(--primary-dark);
}

.add-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Gallery Grid */
.gallery-section,
.diary-section {
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.memory-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
}

.memory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.memory-card:hover .memory-img {
  transform: scale(1.05);
}

.memory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.memory-title {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.memory-date {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Diary Grid */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.diary-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.diary-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
}

.diary-img,
.diary-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.diary-content {
  padding: 1rem;
}

.diary-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.diary-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Support Section */
.support-section {
  margin-bottom: 2.5rem;
}

.support-card {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.support-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.support-text {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.support-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.support-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

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

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-title {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
  color: black;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
  outline: none;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-file {
  display: none;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px dashed #ddd;
}

.file-upload-btn:hover {
  background: #e8e8e8;
}

.upload-icon {
  margin-right: 0.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cancel-btn {
  background: #f0f0f0;
  color: var(--text-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cancel-btn:hover {
  background: #e8e8e8;
}

.save-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.save-btn:hover {
  background: var(--primary-dark);
}

/* Camera Preview */
.camera-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-preview video {
  width: 100%;
  height: 100%;
}

.camera-placeholder {
  text-align: center;
  color: #888;
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.camera-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.record-btn {
  background: var(--error);
  color: white;
}

.pause-btn {
  background: var(--warning);
  color: white;
}

/* Notification Area */
.notification-area {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
}

.notification {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s forwards;
  transition: opacity 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Journal Page Styles */
.journal-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journal-entry {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.journal-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.journal-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.journal-actions {
  display: flex;
  gap: 0.5rem;
}

.journal-action-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  color: var(--text-light);
  transition: var(--transition);
}

.journal-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.journal-content {
  padding: 1.5rem;
}

.journal-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.journal-text {
  color: var(--text-dark);
  line-height: 1.5;
}

.journal-footer {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.journal-mood {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.journal-tags {
  display: flex;
  gap: 0.5rem;
}

.journal-tag {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar {
    width: 70px;
    padding: 1.5rem 0.5rem;
  }

  .sidebar:not(.expanded) .nav-text,
  .sidebar:not(.expanded) .logo span,
  .sidebar:not(.expanded) .user-info,
  .sidebar:not(.expanded) .logout-text,
  .sidebar:not(.expanded) .edit-profile {
    display: none;
  }

  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
  }

  .menu-toggle {
    display: block;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1.5rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .diary-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  @media (max-width: 576px) {
    .cards-container,
    .gallery-grid,
    .diary-grid {
      grid-template-columns: 1fr;
    }

    .header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

    .header-actions {
      width: 100%;
      justify-content: flex-end;
    }
  }
}
/* Responsive adjustments omitted for brevity */

.diary-section {
  max-width: 700px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/*
.section-title {
  font-size: 22px;
  color: #5e56e8;
  margin-bottom: 15px;
  text-align: center;
}
*/
.record-controls {
  text-align: center;
  margin: 20px 0;
}
.record-btn,
.stop-btn {
  background-color: #5e56e8;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin: 0 10px;
}
.record-btn:disabled,
.stop-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.media-preview {
  text-align: center;
  margin-bottom: 20px;
  background: #333;
  color: white;
  height: 100px;
  line-height: 100px;
  border-radius: 10px;
}
.entries-grid {
  margin-top: 20px;
}
.entry-card {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.entry-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.entry-date {
  color: gray;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.action-btn {
  margin-top: 10px;
  display: inline-block;
  background: #3ad1ca;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
}

/* video .diary-card */
.video-preview {
  background: #f9f9f9;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.video-preview video {
  display: none;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.preview-text {
  font-style: italic;
  color: #777;
}

.video-controls {
  margin-top: 15px;
}

.video-btn {
  padding: 8px 16px;
  border: none;
  background-color: #5a67d8;
  color: white;
  border-radius: 8px;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.video-btn:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

.video-btn:hover:not(:disabled) {
  background-color: #434190;
}

.entries-container .entry-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #555;
}

.entry-title {
  font-weight: bold;
  font-size: 1.1em;
  margin: 10px 0;
}

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

.entry-actions .action-btn {
  .action-btn {
    margin-top: 10px;
    display: inline-block;
    background: #3ad1ca;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
  }
}

.entry-actions .action-btn:hover {
  text-decoration: underline;
}
