/* Modern Travel App CSS - Kayak Inspired */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: #1e3d59;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: #ff6b35;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  color: #2c3e50;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #34495e;
}

/* Form Elements */
input, select, button {
  font-family: inherit;
  font-size: 14px;
}

input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
input[type="date"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
}

input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}

label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #34495e;
  font-size: 14px;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Navigation */
a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff6b35;
  text-decoration: underline;
}

/* Trip and Stop Lists */
.trips-list, .stops-list {
  display: grid;
  gap: 16px;
  margin: 2rem 0;
}

.trip-item, .stop-item {
  background: linear-gradient(135deg, #ffffff, #f8f9fc);
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.trip-item:hover, .stop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #ff6b35;
}

/* Travel Icons - Reduced Size */
.travel-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.travel-icon svg, .travel-icon use {
  color: white;
  fill: white;
}

/* Login/Register Cards */
.login-card, .register-card {
  max-width: 400px;
  margin: 4rem auto;
  background: linear-gradient(135deg, #ffffff, #f8f9fc);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border: 1px solid #e1e8ed;
}

.login-icon, .register-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 12px;
  padding: 12px;
  display: block;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.login-card h2, .register-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-size: 1.8rem;
}

.login-card form, .register-card form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-btn, .register-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 1rem;
}

.login-card p, .register-card p {
  text-align: center;
  margin-top: 2rem;
  color: #7f8c8d;
}

/* Forms */
form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid #e1e8ed;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

form h3 {
  margin-top: 0;
  color: #ff6b35;
  border: none;
  padding: 0;
}

/* Inline forms in stop/trip items */
.stop-item form, .trip-item form {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.stop-item input, .trip-item input {
  width: auto;
  min-width: 120px;
  padding: 6px 10px;
  font-size: 13px;
}

.stop-item button, .trip-item button {
  padding: 6px 12px;
  font-size: 12px;
  min-width: auto;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Status messages */
.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .login-card, .register-card {
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .trips-list, .stops-list {
    gap: 12px;
  }
  
  .trip-item, .stop-item {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .stop-item form, .trip-item form {
    width: 100%;
    justify-content: space-between;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Loading and transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header logout link styling */
.header-actions {
  position: absolute;
  top: 20px;
  right: 20px;
}

.logout-link {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logout-link:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}
