/* File: assets/css/style.css */

/* Global & Layout */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
  min-height: 100vh;
}
a {
  color: var(--primary, #007bff);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--secondary, #2ecc71);
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
::-webkit-scrollbar {
  width: 8px; background: #e9ecef;
}
::-webkit-scrollbar-thumb {
  background: #b7bfc9; border-radius: 6px;
}

/* Navbar */
.navbar-brand img {
  height: 40px;
}
.navbar {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  background: #fff;
}
.navbar .fw-bold {
  font-weight: 700 !important;
}

/* Page Cards & Sections */
.card {
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: none;
}
.card-header, .card-footer {
  background: #f9fafb;
  border-bottom: none;
  border-top: none;
}

/* Buttons & Forms */
.btn {
  border-radius: 2em;
  font-weight: 500;
  transition: all .16s;
}
.btn-primary {
  background: var(--primary, #007bff);
  border-color: var(--primary, #007bff);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary, #2ecc71);
  border-color: var(--secondary, #2ecc71);
}
.btn-outline-primary {
  border-color: var(--primary, #007bff);
  color: var(--primary, #007bff);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--primary, #007bff);
  color: #fff;
}
.form-control, .form-select {
  border-radius: 0.9em;
  box-shadow: none;
  border: 1px solid #e4e9ef;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary, #007bff);
  box-shadow: 0 2px 8px rgba(0,123,255,.07);
}

/* File Upload Drag & Drop */
.upload-area {
  border: 2px dashed var(--primary, #007bff);
  border-radius: 1rem;
  background: #f3f7fc;
  text-align: center;
  padding: 2.5em 1.2em;
  color: #888;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-area.dragover {
  border-color: var(--secondary, #2ecc71);
  background: #e9fbe5;
}
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.upload-preview .file-thumb {
  border: 1.5px solid #e9ecef;
  border-radius: 1rem;
  padding: 0.7em;
  min-width: 60px;
  max-width: 110px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: center;
}
.upload-preview .file-thumb img, .upload-preview .file-thumb video {
  max-width: 70px;
  max-height: 70px;
  border-radius: 0.5em;
  margin-bottom: 0.25em;
}

/* Table, Data, and Dashboard Widgets */
.table th, .table td {
  vertical-align: middle !important;
}
.table thead {
  background: #f6f8fa;
}

/* Alerts, Toasts, Modals */
.toast {
  border-radius: 1.2em;
  font-size: 1em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.modal-content {
  border-radius: 1.4em;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #e4e9ef;
  margin-top: 2.2rem;
  font-size: 0.96em;
  color: #888;
  padding-bottom: 1.3em;
}
footer .badge {
  font-size: 1em;
  margin-top: 0.7em;
}

/* PWA Install Banner */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100vw;
  left: 0; right: 0;
  background: var(--primary, #007bff);
  color: #fff;
  text-align: center;
  padding: 1em;
  z-index: 1100;
  box-shadow: 0 -2px 10px rgba(0,0,0,.10);
}
.pwa-install-banner.active {
  display: block;
}

/* Mobile First */
@media (max-width: 600px) {
  .navbar-brand img { height: 30px; }
  .card { border-radius: 1em; }
  .upload-area { padding: 2em 0.7em; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px);}
  to   { opacity: 1; transform: none;}
}
.fadeInUp {
  animation: fadeInUp .7s;
}
