/* General Reset */

:root {
  --primary: #0070f3;
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --bg-light: #f9fbfe;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: 0.3s ease;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}


/* Main Container */
.dashboard-container {
  padding: 1rem;
  max-width: 90%;
  margin: auto;
}

.section-divider {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.shadow-card {
  background-color: #e7f0f4;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 2rem;
}

/* Welcome Box */
.welcome-box {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-box h1 {
  color: #0066cc;
  margin-bottom: 0.5rem;
}

/* Quick Alerts */
.quick-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.alert-card {
  background-color: #e6f3ff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.alert-card h3 {
  color: #003366;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.alert-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Suggested Provider Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.provider-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.provider-card h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.provider-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.provider-card a {
  margin-top: auto;
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.provider-card a:hover {
  background-color: #005bd1;
}

/* Tips */
.tips-section ul {
  list-style-type: disc;
  margin-left: 2rem;
  margin-top: 1rem;
  color: #444;
}


main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

h2, h3 {
  color: var(--primary);
}




/* Banner */
.banner {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #ebf8ff, #e0f2fe);
  margin-bottom: 2rem;
  border-radius: 12px;
}

.banner h1 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.banner p {
  color: #555;
  margin-bottom: 1rem;
}

.btn-primary {
  padding: 0.6rem 1.4rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #005bd1;
}

/* Post Box */
.post-box textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.8rem;
}

.btn-post {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-post:hover {
  background-color: #005bd1;
}

/* Community Feed */
.community-feed {
  margin-top: 2rem;
}

.community-feed .post-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in;
}

.post-card .timestamp {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

/* Simple animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 600px) {
  .dashboard-container {
    padding: 1rem;
  }

  .card-grid,
  .quick-alerts {
    grid-template-columns: 1fr !important;
  }
}
