/*Page5.css - Meeting Database*/

/* Page Container */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--off-white);
}

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Header Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
}

.leftlogo, .rightlogo {
  height: 55px;
  width: auto;
  flex-shrink: 0;
}

.college-name {
  color: var(--primary-red);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: -0.5px;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  padding: 0 40px;
  box-shadow: var(--shadow-sm);
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.navbar li {
  padding: 0;
}

.navbar a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 16px 24px;
  transition: var(--transition);
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: calc(100% - 48px);
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.meetings-page-container {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  text-align: center;
  color: var(--primary-red);
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 2px;
}

.no-meetings {
  text-align: center;
  color: var(--dark-gray);
  font-size: 1.2rem;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Meetings Grid Container */
.meetings-grid-container {
  width: 100%;
  overflow: hidden;
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  padding: 10px;
}

/* Soft Delete Button */
.soft-delete-button {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--white);
  padding: 10px 18px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-top: 15px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.soft-delete-button:hover {
  background: linear-gradient(135deg, #c82333, #a71d2a);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Meeting Cards */
.meeting-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-red);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.meeting-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-summary {
  padding: 25px;
  cursor: pointer;
}

.meeting-title {
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.meeting-meta {
  display: flex;
  justify-content: space-between;
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.meeting-department {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.9rem;
  background-color: rgba(183, 32, 46, 0.1);
  padding: 4px 12px;
  border-radius: var(--border-radius-xl);
  display: inline-block;
}

.card-details {
  padding: 25px;
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
  flex: 1;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.detail-row {
  display: flex;
  margin-bottom: 12px;
  line-height: 1.5;
}

.detail-label {
  font-weight: 600;
  color: var(--primary-red);
  min-width: 110px;
  flex-shrink: 0;
}


.detail-section {
  margin: 20px 0;
}

.detail-section h3 {
  color: var(--primary-red);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--medium-gray);
  padding-bottom: 8px;
}

.agenda-list, .attachments-list {
  padding-left: 20px;
  margin: 10px 0;
}

.agenda-list li, .attachments-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--darker-gray);
}

.attachments-list a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.attachments-list a:hover {
  color: var(--dark-red);
  text-decoration: underline;
}

.recipients-list {
  word-break: break-all;
  color: var(--darker-gray);
  line-height: 1.6;
}

/* Calendar Button */
.calendar-button {
  display: block;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white) !important;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.calendar-button:hover {
  background: linear-gradient(135deg, var(--dark-red), #6d1219);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(183, 32, 46, 0.35);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
  padding: 25px 40px;
  text-align: center;
  margin-top: auto;
}

.terms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.terms a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.terms a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-image {
  height: 30px;
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .meetings-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .header-bar,
  .navbar,
  .meetings-page-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .college-name {
    font-size: 1.2rem;
    order: -1;
  }

  .navbar li {
    padding: 12px 16px;
  }

  .navbar a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .meetings-page-container {
    padding: 25px 15px;
  }

  .page-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .meetings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-row {
    flex-direction: column;
    gap: 5px;
  }

  .detail-label {
    margin-bottom: 0;
    min-width: auto;
  }

  .meeting-meta {
    flex-direction: column;
    gap: 8px;
  }

  .card-summary {
    padding: 20px;
  }

  .card-details {
    padding: 20px;
  }
}