
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

    body {
      background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #a1c4fd 50%, #c2e9fb 75%, #fbc2eb 100%);
      min-height: 100vh;
      padding: 20px;
      animation: gradientShift 10s ease infinite;
      background-size: 200% 200%;
    }

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .app-container {
      max-width: 1500px;
      width: 100%;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(16px);
      border-radius: 60px;
      box-shadow: 0 30px 60px rgba(0,0,0,0.2), 0 0 0 2px rgba(255,255,255,0.4);
      overflow: hidden;
    }

    .screen { padding: 38px 45px; transition: 0.2s; }
    .hidden { display: none !important; }

    /* Vault Cards - Festive Colors */
    .vault-card {
      background: linear-gradient(145deg, rgba(255,248,225,0.95), rgba(255,235,205,0.98));
      border-radius: 52px;
      padding: 52px;
      box-shadow: 0 25px 45px rgba(255,107,107,0.3);
      border: 2px solid rgba(255,215,0,0.6);
      max-width: 580px;
      margin: 0 auto;
      text-align: center;
    }

    h1 {
      font-size: 2.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD93D, #6BCB77, #4D96FF);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 12px;
      text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    }

    .sub {
      color: #b83b3b;
      margin-bottom: 36px;
      font-weight: 600;
      background: rgba(255,215,0,0.3);
      display: inline-block;
      padding: 5px 20px;
      border-radius: 40px;
    }

    .input-group {
      margin-bottom: 28px;
      text-align: left;
    }

    label {
      display: block;
      font-weight: 700;
      margin-bottom: 10px;
      color: #c0392b;
      text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    }

    input, textarea, select {
      width: 100%;
      padding: 15px 22px;
      background: rgba(255,255,245,0.95);
      border: 2px solid #FFB347;
      border-radius: 44px;
      color: #2c3e50;
      font-size: 1rem;
      transition: 0.2s;
      outline: none;
    }

    input:focus, textarea:focus, select:focus {
      border-color: #FF6B6B;
      box-shadow: 0 0 0 4px rgba(255,107,107,0.2);
      background: white;
    }

    button {
      background: linear-gradient(100deg, #FF6B6B, #FF8E53);
      border: none;
      padding: 14px 30px;
      font-weight: 800;
      font-size: 1rem;
      border-radius: 60px;
      color: white;
      cursor: pointer;
      width: 100%;
      box-shadow: 0 8px 18px rgba(255,107,107,0.4);
      transition: 0.2s;
    }

    button:hover { transform: scale(0.98); filter: brightness(1.05); }

    .error-msg { color: #e74c3c; font-size: 0.8rem; margin-top: 8px; font-weight: bold; }

    /* Main Diary Dashboard */
    .diary-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 35px;
      padding-bottom: 20px;
      border-bottom: 3px solid rgba(255,215,0,0.7);
    }

    .greeting {
      font-size: 2rem;
      font-weight: 800;
      background: linear-gradient(135deg, #FF6B6B, #FFB347, #FFD93D);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .logout-btn {
      width: auto;
      background: linear-gradient(100deg, #FF8E53, #FF6B6B);
      padding: 10px 28px;
    }

    .diary-layout {
      display: flex;
      flex-wrap: wrap;
      gap: 35px;
    }

    .entry-form {
      flex: 1.2;
      min-width: 310px;
      background: rgba(255,248,235,0.85);
      border-radius: 48px;
      padding: 32px;
      backdrop-filter: blur(4px);
      border: 2px solid #FFD700;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .entries-list {
      flex: 2.5;
      min-width: 350px;
    }

    .section-title {
      font-size: 1.55rem;
      font-weight: 800;
      margin-bottom: 22px;
      color: #c0392b;
      display: flex;
      align-items: center;
      gap: 12px;
      text-shadow: 2px 2px 4px rgba(255,215,0,0.5);
    }

    .media-buttons {
      display: flex;
      gap: 14px;
      margin: 20px 0;
      flex-wrap: wrap;
    }

    .media-btn {
      background: linear-gradient(135deg, #FFB347, #FF8E53);
      width: auto;
      padding: 10px 20px;
      font-size: 0.85rem;
    }

    /* Voice Recorder Styles */
    .voice-recorder {
      background: linear-gradient(135deg, #FFF5E6, #FFE4C4);
      border-radius: 60px;
      padding: 12px 20px;
      margin: 15px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      flex-wrap: wrap;
      border: 2px solid #FFB347;
    }

    .record-btn {
      width: auto;
      background: linear-gradient(135deg, #FF6B6B, #FF4757);
      padding: 12px 24px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .record-btn.recording {
      background: linear-gradient(135deg, #28a745, #20c997);
      animation: pulse 1s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.8; transform: scale(1.02); }
    }

    .stop-btn {
      width: auto;
      background: linear-gradient(135deg, #FF4757, #c0392b);
      padding: 12px 24px;
    }

    .recording-timer {
      font-size: 1.2rem;
      font-weight: 700;
      color: #e67e22;
      font-family: monospace;
    }

    .wave-animation {
      display: inline-flex;
      gap: 3px;
      align-items: center;
    }

    .wave-animation span {
      width: 3px;
      height: 12px;
      background: #e67e22;
      animation: wave 0.8s infinite;
    }

    .wave-animation span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
    .wave-animation span:nth-child(3) { animation-delay: 0.2s; height: 14px; }
    .wave-animation span:nth-child(4) { animation-delay: 0.3s; height: 20px; }
    .wave-animation span:nth-child(5) { animation-delay: 0.4s; height: 12px; }

    @keyframes wave {
      0%, 100% { height: 12px; }
      50% { height: 24px; }
    }

    .search-bar {
      background: rgba(255,248,235,0.95);
      border-radius: 70px;
      padding: 8px 24px;
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 32px;
      border: 2px solid #FFD700;
    }

    .search-bar input {
      background: transparent;
      border: none;
      padding: 12px 5px;
    }

    .entries-grid {
      max-height: 580px;
      overflow-y: auto;
      padding-right: 6px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .entry-card-compact {
      background: linear-gradient(115deg, rgba(255,245,220,0.98), rgba(255,235,200,0.98));
      border-radius: 38px;
      padding: 20px 26px;
      transition: 0.2s;
      border: 2px solid #FFB347;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .entry-card-compact:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(255,107,107,0.3);
    }

    .entry-info { flex: 4; cursor: pointer; }
    .entry-title { font-size: 1.3rem; font-weight: 800; color: #c0392b; word-break: break-word; }
    .entry-meta { display: flex; gap: 20px; margin-top: 8px; font-size: 0.75rem; color: #e67e22; font-weight: 600; }
    .entry-actions { display: flex; gap: 14px; }
    .icon-btn {
      background: linear-gradient(135deg, #FFB347, #FF8E53);
      width: 44px;
      height: 44px;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: 0.2s;
      box-shadow: none;
      padding: 0;
      color: white;
    }
    .icon-btn.delete { background: linear-gradient(135deg, #FF6B6B, #c0392b); }
    .icon-btn.download { background: linear-gradient(135deg, #6BCB77, #28a745); }
    .icon-btn:hover { transform: scale(1.08); filter: brightness(1.1); }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(12px);
      z-index: 3000;
      display: flex;
      justify-content: center;
      align-items: center;
      visibility: hidden;
      opacity: 0;
      transition: 0.2s;
    }
    .modal-overlay.active { visibility: visible; opacity: 1; }
    .modal-content {
      background: linear-gradient(145deg, #FFF8F0, #FFEFD5);
      border-radius: 56px;
      max-width: 750px;
      width: 90%;
      max-height: 85vh;
      overflow-y: auto;
      padding: 38px;
      border: 3px solid #FFD700;
      box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    }
    .modal-header { display: flex; justify-content: space-between; margin-bottom: 25px; align-items: center; }
    .close-modal { background: linear-gradient(135deg, #FF6B6B, #FF4757); width: 45px; border-radius: 50px; }
    .media-grid { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0; }
    .media-grid img, .media-grid video { max-width: 200px; border-radius: 28px; cursor: pointer; border: 2px solid #FFD700; }
    audio { width: 100%; margin-top: 10px; }
    .entry-password-field { margin: 20px 0 15px; }
    .unlock-entry-btn { background: linear-gradient(135deg, #6BCB77, #28a745); margin-top: 10px; }

    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #FFE4C4; border-radius: 10px; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #FFB347, #FF8E53); border-radius: 10px; }

    @media (max-width: 780px) { .screen { padding: 22px; } }

    .toast {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: linear-gradient(135deg, #28a745, #20c997);
      color: white;
      padding: 12px 24px;
      border-radius: 50px;
      z-index: 4000;
      animation: fadeInOut 2s ease;
      font-weight: bold;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    @keyframes fadeInOut {
      0% { opacity: 0; transform: translateY(20px); }
      15% { opacity: 1; transform: translateY(0); }
      85% { opacity: 1; transform: translateY(0); }
      100% { opacity: 0; transform: translateY(20px); }
    }

    /* Decorative elements */
    .decorative-dot {
      position: fixed;
      width: 100px;
      height: 100px;
      background: radial-gradient(circle, rgba(255,215,0,0.3), transparent);
      border-radius: 50%;
      pointer-events: none;
      z-index: -1;
    }
 