.guestbook-modal article {
  max-width: 600px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(17, 20, 26, 0.98), rgba(25, 29, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guestbook-modal article::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, var(--brand) 20%, transparent 40%, var(--brand-2) 60%, transparent 80%, var(--brand) 100%);
  animation: rotateBorder 10s linear infinite;
  z-index: -1;
}

@keyframes rotateBorder {
  to {
    transform: rotate(360deg);
  }
}

.guestbook-modal h2 {
  color: var(--brand);
  font-size: 28px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.guestbook-form input[type="text"]::placeholder,
.guestbook-form textarea::placeholder {
  color: var(--muted);
}

.guestbook-form input[type="text"]:focus,
.guestbook-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

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

.guestbook-form input[type="file"] {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

.guestbook-form input[type="file"]::-webkit-file-upload-button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.guestbook-form input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--brand-2);
}

.guestbook-form button {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guestbook-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.guestbook-entries {
  margin-top: 30px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px; /* For scrollbar space */
}

.guestbook-entry {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.guestbook-entry .entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.guestbook-entry h3 {
  margin: 0;
  color: var(--brand-2);
  font-size: 20px;
}

.guestbook-entry .entry-date {
  font-size: 12px;
  color: var(--muted);
}

.guestbook-entry p {
  margin: 0 0 10px 0;
  line-height: 1.6;
  color: var(--text);
}

.guestbook-entry .entry-media {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.guestbook-entry .entry-media img,
.guestbook-entry .entry-media video,
.guestbook-entry .entry-media audio {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.guestbook-entry .entry-media video,
.guestbook-entry .entry-media audio {
  width: 100%;
}

.guestbook-entries::-webkit-scrollbar {
  width: 8px;
}

.guestbook-entries::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.guestbook-entries::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

.guestbook-entries::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  font-size: 18px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.empty-text {
  margin-bottom: 5px;
}

.empty-hint {
  font-size: 14px;
}



/* Password Modal Styles */
.password-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.password-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.password-modal-content {
  background: linear-gradient(135deg, 
    rgba(17, 20, 26, 0.95) 0%, 
    rgba(30, 35, 45, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 20px;
  padding: 30px;
  min-width: 320px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.password-modal-content h3 {
  margin: 0 0 16px 0;
  color: var(--brand-2);
  font-size: 24px;
  font-weight: 700;
}

.password-modal-content p {
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.password-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-input-group input {
  padding: 16px;
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  outline: none;
}

.password-input-group input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.password-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.password-confirm-btn,
.password-cancel-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.password-confirm-btn {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: white;
}

.password-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.password-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.password-error {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 12px;
  padding: 8px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Enhanced Guestbook Entry Styles */
.guestbook-entry.message-entry {
  border-left: 4px solid var(--brand-2);
  background: linear-gradient(135deg, 
    rgba(78, 205, 196, 0.05) 0%, 
    rgba(124, 92, 255, 0.05) 100%);
}

.guestbook-entry.memory-entry {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, 
    rgba(255, 107, 107, 0.05) 0%, 
    rgba(124, 92, 255, 0.05) 100%);
}

.entry-name {
  color: var(--brand-2);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.entry-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.entry-content {
  margin-top: 12px;
}

.entry-message {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.entry-media {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.entry-media img,
.entry-media video {
  width: 100%;
  height: auto;
  display: block;
}

.entry-media audio {
  width: 100%;
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}


/* Message Type Toggle Styles */
.message-type-toggle {
  margin-bottom: 32px;
  text-align: center;
}

.toggle-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow: hidden;
}

.toggle-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.1), 
    rgba(173, 216, 230, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.toggle-btn:hover::before {
  opacity: 1;
}

.toggle-btn.active {
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.2), 
    rgba(173, 216, 230, 0.2));
  color: white;
  box-shadow: 0 4px 16px rgba(255, 182, 193, 0.2);
  transform: translateY(-2px);
}

.toggle-btn.active::before {
  opacity: 1;
}

.toggle-icon {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.toggle-text {
  position: relative;
  z-index: 1;
}

.toggle-description {
  margin-top: 12px;
}

.description-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-style: italic;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Media Input Group */
.media-input-group {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-input-group.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Responsive Design for Toggle */
@media (max-width: 768px) {
  .toggle-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .toggle-btn {
    justify-content: center;
    padding: 14px 20px;
  }
  
  .toggle-icon {
    font-size: 18px;
  }
  
  .toggle-text {
    font-size: 15px;
  }
}

/* Enhanced notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, 
    rgba(152, 251, 152, 0.9), 
    rgba(144, 238, 144, 0.9));
  border-color: rgba(152, 251, 152, 0.3);
}

.notification.error {
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.9), 
    rgba(255, 160, 160, 0.9));
  border-color: rgba(255, 182, 193, 0.3);
}

/* Enhanced password modal styles */
.password-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.password-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.password-modal-content {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  min-width: 320px;
  max-width: 450px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 182, 193, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.password-modal-content h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFB6C1, #ADD8E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.password-modal-content p {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.password-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#passwordModalInput {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#passwordModalInput:focus {
  border-color: #FFB6C1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 3px rgba(255, 182, 193, 0.2),
    0 0 20px rgba(255, 182, 193, 0.2);
  transform: scale(1.02);
}

#passwordModalInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: normal;
  font-weight: 500;
}

.password-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.password-confirm-btn,
.password-cancel-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 100px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.password-confirm-btn {
  background: linear-gradient(135deg, #FFB6C1, #ADD8E6);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 182, 193, 0.3);
}

.password-confirm-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 182, 193, 0.4);
}

.password-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

.password-error {
  color: #FFB6C1;
  font-size: 14px;
  text-align: center;
  padding: 12px;
  background: rgba(255, 182, 193, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 182, 193, 0.3);
  margin-top: 16px;
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

