/*Page6.css*/

/* Root Variables (optional, for consistency) */
:root {
  --primary-red: #B7202E;
  --dark-red: #8a0000;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Page Container */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f4;
}

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

.leftlogo, .rightlogo {
  height: 50px;
  width: auto;
}

.college-name {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

/* Navbar */
.navbar {
  background-color: var(--primary-red);
  padding: 0 20px;
}

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

.navbar li {
  padding: 15px 20px;
}

.navbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.navbar a:hover, .navbar a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Main Content */
.email-management-container {
  flex: 1;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.email-management-container h1 {
  text-align: center;
  color: var(--primary-red);
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Search Bar */
.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* Grid Layout */
.departments-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 10px;
}

/* Department Card Style */
.department-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-red);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.department-card h3 {
  margin-top: 0;
  color: var(--primary-red);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 8px;
}

.department-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.department-card li {
  padding: 5px 0;
  border-bottom: 1px solid var(--medium-gray);
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* Actions */
.department-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.edit-btn, .delete-btn, .add-department-btn, .save-btn, .cancel-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.edit-btn {
  background-color: #4CAF50;
  color: white;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.add-department-btn {
  background-color: #2196F3;
  color: white;
  margin-bottom: 20px;
}

/* Edit Form */
.edit-form {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
}

.email-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.email-input-group input {
  flex: 1;
}

.remove-email {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 16px;
}

.add-email {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

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

.terms a {
  color: var(--white);
  text-decoration: none;
}

.footer-image {
  height: 30px;
}

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

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

  .college-name {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  .navbar li {
    padding: 10px 15px;
  }

  .email-management-container {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .departments-list {
    grid-template-columns: 1fr;
  }
}
