
body {
  font-family: Arial, sans-serif;
  margin-bottom: 10rem !important;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
}

footer {
  background-color: #2c2c2c;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 1000;
}

main {
  padding: 20px;
  margin-bottom: 60px;
}

textarea {
  width: 100%;
}

.bee-logo {
  width: 65px;
  height: 45px;
  object-fit: cover;
  display: block;
}

.upload-card {
  width: 50px !important;
}

.login-card {
  align-items: center;
}

.login-text,
.signup-text {
  padding-top: 9px;
}

.btn.btn-primary.btn-sm.me-2,
.btn.btn-outline-light.btn-sm,
a.btn.btn-primary.btn-sm {
  --bs-btn-padding-y: 0.5rem;
}

.landing-banner {
  margin-top: 10rem;
}

.form-label {
  width: max-content;
  display: block;
  margin-bottom: 0.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
}

.img-fluid {
  max-width: 250px !important;
}

img {
  max-width: 100%;
  height: auto;
}

.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
}
.badge.bg-danger {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}
.badge.bg-success {
  background-color: #198754 !important;
  color: #fff !important;
}

.alert-info {
  background-color: #cfe2ff;
  border-color: #b6d4fe;
  color: #084298;
}
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0d6efd;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}
.skip-link:focus {
  top: 0;
}

.btn, button, input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
}

a {
  color: #0d6efd;
  text-decoration: none;
}
a:hover, a:focus {
  color: #0a58ca;
  text-decoration: underline;
}

.text-muted {
  color: #6c757d !important;
}

.card {
  border-radius: 0.5rem;
}
.card-body {
  padding: 1.5rem;
}

header.bg-dark {
  background-color: #212529 !important;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  color: #fff;
}
.btn-success {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}
.btn-success:hover, .btn-success:focus {
  background-color: #157347;
  border-color: #146c43;
  color: #fff;
}
.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.btn-danger:hover, .btn-danger:focus {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: #fff;
}
.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}
.btn-warning:hover, .btn-warning:focus {
  background-color: #ffca2c;
  border-color: #ffc720;
  color: #000;
}
.btn-outline-light {
  color: #f8f9fa;
  border-color: #f8f9fa;
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #212529;
}

.btn + .btn {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  body {
    margin-bottom: 8rem !important;
    font-size: 14px;
  }
  main {
    padding: 10px;
    margin-bottom: 80px;
  }
  footer {
    padding: 0.75em 0;
    font-size: 0.9em;
  }
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .card {
    margin-bottom: 1rem;
  }
  .btn-group, .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .form-label, label {
    display: block !important;
    margin-bottom: 0.5rem;
    width: max-content;
  }
  .list-group-item {
    padding: 0.75rem 0.5rem;
  }
  .card-body {
    padding: 1rem;
  }
  .upload-card {
    width: 50px !important;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100%
  }
  .btn + .btn {
    margin-left: 0;
  }
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  #successModal .modal-content {
    padding: 1.5em;
    min-width: 250px;
  }
  .success-text {
    font-size: 1.1em;
  }
  .btn.btn-warning.btn-sm {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
  }
}

#successModal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
#successModal .modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
}
.success-text {
  color: #198754;
  font-size: 1.2em;
  display: block;
  margin-bottom: 1em;
}
#progressBar {
  height: 7px;
  width: 100%;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
#progressBar:after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b6ffba, #198754);
  animation: progressBarAnim 5s linear forwards;
}
@keyframes progressBarAnim {
  from { width: 100%; }
  to { width: 0%; }
}

.inbox-icon,
.login-icon,
.signup-icon,
.search-icon {
  font-size: 20px;
}

@media (max-width: 400px) {
    .inbox-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    .inbox-actions .btn,
    .inbox-actions button,
    .inbox-actions input[type="submit"] {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.5rem !important;
        min-width: 100%;
        min-height: 36px;
    }
    .inbox-actions form {
        width: 100%;
    }
}