/* Postal Application Styles - Complete CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.siteHeader {
  background: #343a40;
  color: white;
  padding: 1rem;
  margin-bottom: 2rem;
}

.siteHeader__inside {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.siteHeader__logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 2rem;
}

.siteHeader__logo a {
  color: white;
  text-decoration: none;
}

.siteHeader__version {
  margin: 0 2rem 0 0;
  opacity: 0.8;
}

.siteHeader__nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.siteHeader__navItem {
  margin-right: 1rem;
}

.siteHeader__navLink {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

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

.siteContent {
  max-width: 1200px;
  margin: 0 auto;
}

.siteContent__main {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Buttons */
.btn, .button {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  margin-right: 8px;
  margin-bottom: 8px;
}

.btn-primary, .button--positive {
  background: #28a745;
  color: white;
}

.btn-primary:hover, .button--positive:hover {
  background: #218838;
}

.btn-secondary, .button--dark {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover, .button--dark:hover {
  background: #5a6268;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-sm, .button--small {
  padding: 4px 8px;
  font-size: 12px;
}

/* Forms */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #333;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Lists */
.largeList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.largeList__item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.largeList__item:last-child {
  border-bottom: none;
}

.largeList__link {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.largeList__link:hover {
  color: #0056b3;
  text-decoration: underline;
}
  display: block;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.largeList__link:hover {
  color: #007bff;
}

/* Sub page box (for login, etc) */
.subPageBox {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subPageBox--wide {
  max-width: 600px;
}

/* Page header */
.pageHeader {
  margin-bottom: 2rem;
}

.pageHeader__title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

/* Page content */
.pageContent {
  max-width: 1200px;
  margin: 0 auto;
}

.pageContent--compact {
  max-width: 800px;
}

.pageContent__intro {
  color: #666;
  margin-bottom: 2rem;
}

/* No data state */
.noData {
  text-align: center;
  padding: 3rem 1rem;
}

.noData--clean {
  background: none;
  border: none;
  padding: 2rem 1rem;
}

.noData__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
}

.noData__text {
  color: #999;
  margin-bottom: 2rem;
}

.noData__button {
  display: inline-block;
}

/* Data table */
.dataTable {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dataTable table {
  margin: 0;
}

.dataTable th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.dataTable tr:hover {
  background-color: #f8f9fa;
}

/* Flash messages */
.flashDisplay {
  margin-bottom: 2rem;
}

.flashMessage {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.flashMessage--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flashMessage--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flashMessage--alert {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Footer */
.footer__links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  flex-wrap: wrap;
}

.footer__links li {
  margin: 0 1rem;
}

.footer__links a {
  color: #666;
  text-decoration: none;
}

.footer__links a:hover {
  color: #333;
}

.footer__name {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .siteHeader__inside {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .siteHeader__nav {
    margin-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .siteHeader__navItem {
    margin: 0.25rem 0;
  }
  
  .siteContent__main {
    padding: 1rem;
  }
  
  .subPageBox {
    margin: 20px 1rem;
    padding: 1rem;
  }
}

/* Button states */
.btn:disabled, .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form validation */
.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
