/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Branding Colors */
  --primary: #0F766E;        /* Deep Teal */
  --accent: #F59E0B;         /* Warm Amber */
  --text: #111827;           /* Charcoal */
  --text-secondary: #4B5563; /* Soft Charcoal */
  --bg: #F8FAFC;             /* Off White */
  --success: #22C55E;        /* Success Green */
  --error: #DC2626;          /* Error Red */
  --border: #E5E7EB;         /* Light Gray */

  /* Font Stack */
  /* Using Quicksand for headings, Poppins for body/buttons */
  --heading-font: 'Quicksand', sans-serif;
  --body-font: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--body-font); /* Poppins for body */
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--heading-font); /* Quicksand for headers */
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Ensure buttons use the body font (Poppins) for better readability */
.btn {
  font-family: var(--body-font);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0d655e;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(15, 118, 110, 0.1);
}

/* Landing Page Wrapper */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

/* Dashboard Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Drop Form */
.drop-zone {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.drop-zone input {
  flex: 1;
  margin-bottom: 0;
}

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

.draft-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.draft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.draft-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
}

.draft-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.draft-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Utilities & Footer */
.delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.2rem;
  transition: color 0.2s;
}

.delete-btn:hover {
  color: var(--error);
}

.draft-card.expired {
  opacity: 0.6;
  filter: grayscale(1);
}

footer {
  text-align: center;
  margin-top: auto;
  padding: 2rem;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--primary);
  text-decoration: none;
}