/* Modern Design System - Diary App */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark: #121212;
  --bg-surface: #1e1e1e;
  --primary: #6c5ce7;
  --primary-hover: #5b4cc4;
  --secondary: #a29bfe;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --font-main: "Inter", sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  background-image: radial-gradient(
      circle at 15% 50%,
      rgba(108, 92, 231, 0.15) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(162, 155, 254, 0.1) 0%,
      transparent 25%
    );
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(108, 92, 231, 0.3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Forms */
.form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
}

.form-control:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Auth Containers (Login/Signup) */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
}

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

.auth-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Navbar */
.navbar-glass {
  background: rgba(18, 18, 18, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main) !important;
}

/* Cards (Diary Entries) */
.entry-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 25px;
  position: relative;
  cursor: pointer;
}

.entry-date {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.entry-snippet {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}
