/* ═══ UNIFIED APPLICATION AESTHETIC ═══ */
/* Basic reset and layout matching screenshot design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f5f6fa;
}

/* Navigation - Uniform Blue Header */
.navbar {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-user {
  color: #e3f2fd;
  font-size: 14px;
  font-weight: 500;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Main content */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Forms - Consistent styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  background: white;
  color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.1);
}

/* Buttons - Unified styling */
button,
.btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74,144,226,0.3);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Button variants */
.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

/* Auth forms */
.auth-container {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid #e1e5e9;
}

.auth-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #4a90e2;
  font-size: 24px;
  font-weight: 600;
}

.guest-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #6c757d;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  margin-top: 1rem;
  transition: all 0.2s;
  font-weight: 500;
}

.guest-button:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
}

.auth-links a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Error and success messages */
.error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
  font-weight: 500;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
  font-weight: 500;
}

/* Card components */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e1e5e9;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  font-weight: 600;
  color: #495057;
}

.card-body {
  padding: 20px;
}

/* List styling */
ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f2f5;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* COMMENTED OUT: Additional utility classes for future use */
/*
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
*/

/* Responsive design */
@media (max-width: 768px) {
  .main-content {
    padding: 0 1rem;
    margin: 1rem auto;
  }
  
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .auth-container {
    margin: 2rem auto;
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .auth-links,
  button,
  .btn {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}