/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #2d3748;
  padding-bottom: 32px;
}

/* Header/Navbar Styles */
.main-header {
  background: #ffffff;
  min-height: 110px;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Brand Logo Styles */
.brand-logo {
  text-decoration: none;
}

.brand {
  font-size: 30px;
  font-weight: 700;
  color: #348cdf;
  letter-spacing: 0.5px;
}

/* Auth Panel Styles */
.auth-panel {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
}

.auth-input-group label {
  font-size: 12px;
  color: #404b5c;
  margin-bottom: 5px;
}

.auth-input-group input {
  height: 35px;
  padding: 6px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
}

.login-button {
  height: 35px;
  background: #348cdf;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover {
  background: #2c5282;
}

.greetings {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logout-button {
  height: 35px;
  background: #ed3f3f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background: #bc2e2e;
}

/* Main Container Styles */
.container {
  max-width: 1000px;
  margin: 32px auto;
  padding: 0 24px;
}

.page-title {
  text-align: center;
  margin: 32px 0;
  padding-top: 24px;
  color: #2d3748;
  font-size: 35px;
  font-weight: 500;
}

/* Search Form Styles */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.input-group {
  display: flex;
  flex-direction: column;
  min-width: 225px;
}

.input-group label {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #404b5c;
}

.input-group input {
  height: 42px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: #348cdf;
  box-shadow: 0 0 0 3px rgba(49, 133, 212, 0.2);
}

.search-button {
  height: 42px;
  align-self: flex-end;
  background: #348cdf;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background: #2b6cb0;
}

/* Results Container Styles */
#resultsContainer,
#savedContainer {
  margin-top: 40px;
}

#resultsContainer h3,
#savedContainer h3 {
  text-align: left;
  margin-bottom: 18px;
  color: #2d3748;
  font-size: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.university-card {
  background: white;
  border-radius: 10px;
  border-bottom: 4px solid #a7d4ff;
  border-right: 4px solid #a7d4ff;
  padding: 24px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.university-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-card strong {
  display: block;
  color: #2d3748;
  font-size: 18px;
}

.university-card a {
  display: inline-block;
  color: #348cdf;
  text-decoration: none;
  margin-bottom: 18px;
}

.university-card a:hover {
  text-decoration: underline;
  color: #2b6cb0;
}

.save-button {
  background: #38a169;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-button:hover {
  background: #2f855a;
}

.remove-button {
  background: #ed3f3f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.remove-button:hover {
  background: #bc2e2e;
}

/* Error Styles */
.auth-error-message {
  position: absolute;
  top: 100%;
  right: 10px;
  margin-top: 10px;
  color: #ed3f3f;
  background-color: #fed7d0;
  border: 1px solid #feb2b0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}
