.dashboard-grid {
  display: grid;
  /* grid-template-columns: 300px 1fr 400px; */
  /* grid-template-columns: auto 1fr auto; */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.accordion-content {
  padding: 16px;
  background: #f8fafc;
  border-radius: 0 0 4px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart {
  height: 300px;
  width: 100% !important;
}

.home-container {
  padding: 50px;
}

/* News Section */
.news-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  height: calc(100vh - 300px);
  overflow-y: auto;
  overflow-x: hidden;
}

.section-header h2 {
  font-size: 20px;
  color: #333;
  margin: 0;
}

.load-more {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.news-content {
  flex: 1;
}

.news-content .category {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.news-content h3 {
  font-size: 14px;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.4;
  font-weight: bold;
}

.news-content .date {
  font-size: 12px;
  color: #94a3b8;
  font-weight: bold;
}

/* Reports Section */
.reports-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: calc(100vh - 300px);
}

.accordion {
  margin-bottom: 16px;
  width: auto;
  background: none;
  border: none;
  display: inline;
}

.accordion-btn {
  width: 100%;
  padding: 16px;
  background: #002b45;
  color: white;
  border: none;
  border-radius: 4px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #a1e7d7;
}

.accordion-content {
  padding: 20px;
  background: #f8fafc;
  border-radius: 0 0 4px 4px;
}

.chart {
  height: 300px;
}

/* Completion Dates Section */
.completion-dates-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: calc(100vh - 300px);
}

.completion-dates-list {
  height: calc(100vh - 200px);
  overflow-y: auto;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.btn-more {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

/*  */
.life-quote-container {
  position: fixed;
  bottom: 60px;
  left: 20px;
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.close-quote {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
}

.close-quote:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
}

.quote-content img {
  width: 100%;
  display: block;
}

.quote-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  font-size: 22px;
  font-style: italic;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

.brand h1 {
  font-size: 24px;
  color: #2c3e50;
  margin-top: 15px;
  margin-bottom: 8px;
}

.brand p {
  color: #94a3b8;
  font-size: 14px;
}

.form-group {
  margin-bottom: 24px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.form-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-button {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.login-button i {
  font-size: 14px;
  transition: transform 0.3s;
}

.login-button:hover i {
  transform: translateX(4px);
}

/* Flash messages styling */
.message {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: center;
}

.message.error {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.message.success {
  background: #dcfce7;
  color: #22c55e;
  border: 1px solid #bbf7d0;
}

.sabs-logo {
  width: 100px;
  margin-bottom: 8px;
}
/* login */

.category.new {
  color: #4caf50; /* Green */
}

.category.update {
  color: #2196f3; /* Blue */
}

.category.important {
  color: #f44336; /* Red */
}

.category.announcement {
  color: #ff9800; /* Orange */
}

.sbos_logo {
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    display: block;
  }

  .news-section,
  .reports-section,
  .completion-dates-section {
    margin-bottom: 24px;
    height: auto;
  }

  .home-container {
    padding: 20px;
  }
  .news-section {
    height: calc(100vh - 140px);
  }
}
