
/* ============================
   Base Styles
============================ */
body {
  background-color: #454545;
  font-family: Arial, sans-serif;
  color: #000;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-content-wrapper {
  margin-top: 60px; /* below the header */
  margin-left: 240px; /* offset for sidebar */
  padding: 20px 20px 0px 20px;
  box-sizing: border-box;
}

.tight-stack {
  margin-top: -60px;
}

/* ============================
   Login Styles
============================ */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 90%;
  max-width: 400px;
  padding: 20px;
  background-color: #002366;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

h2 {
  color: #ffffff;
  text-align: center;
}

form label {
  display: block;
  margin-top: 10px;
  color: white;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid white;
  border-radius: 30px;
  background-color: white;
}

input:focus {
  background-color: #c0c0c0;
  font-weight: bold;
  outline: none;
}

.button-wrapper {
  text-align: center;
  margin-top: 20px;
}

button {
  padding: 10px 30px;
  background-color: #4169E1;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #003f8a;
}

/* ============================
   Sticky Header
============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #3a5fd4;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  margin-right: 20px;
}

.header-title {
  font-size: 1.5em;
  font-weight: bold;
}

.header-user {
  font-size: 0.9em;
  opacity: 0.8;
}

.vertical-divider {
  width: 2px;
  height: 60%;
  background-color: white;
  margin-right: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Reusable Button (Logout, Dashboard) */
.header-button {
  padding: 8px 16px;
  background-color: white;
  color: royalblue;
  border: 1px solid royalblue;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.header-button:hover {
  background-color: #003f8a;
  color: white;
}

/* ============================
   Responsive Header
============================ */
@media (max-width: 500px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    align-self: flex-end;
    margin-top: 10px;
  }
}

/* ============================
   Dashboard and Accordion
============================ */
.main-content {
  padding: 80px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}

.accordion {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.accordion-section {
  margin-bottom: 10px;
}

.accordion-header {
  background-color: royalblue;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-content {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

/* ============================
   Dashboard Buttons
============================ */
.dashboard-button {
  width: 100%;
  padding: 10px;
  background-color: white;
  color: royalblue;
  border: 1px solid royalblue;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-weight: bold;
  text-decoration: none;
  box-sizing: border-box;
}

.dashboard-button i {
  font-size: 18px;
}

.dashboard-button:hover {
  background-color: #003f8a;
  color: white;
}

/* ============================
   Barcode Page
============================ */
#barcode-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

#barcode {
  width: auto;
  height: 80px;
}

/* ============================
   Barcode Page Form Styling
============================ */
.report-container input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 30px;
  background-color: #e6e6e6;
  color: #444;
  font-size: 16px;
}

.report-container input[type="text"]::placeholder {
  color: #999;
}

.report-container label {
  display: block;
  margin-top: 10px;
  color: #444;
  font-weight: bold;
}

.barcode-page h2 {
  color: #444;
}


/* =============================
    Report Page
===============================*/
.report-container {
  background-color: #ffffff;
  color: #000000;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  border-radius: 30px;
}

.report-container table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 100%;
}

.report-container th,
.report-container td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  cursor: pointer;
  position: relative;
}

th.sort {
  cursor: pointer;
}

th.sort:after {
  content: '';
  float: right;
  margin-left: 5px;
  border-style: solid;
  border-width: 0 4px 6px 4px;
  border-color: #000000 transparent transparent transparent;
  opacity: 0.5;
}

th.sort.desc:after {
  border-width: 6px 4px 0 4px;
  border-color: transparent transparent #000000 transparent;
}

.report-container .search {
  margin: 10px 0 20px;
  padding: 8px 12px;
  width: 100%;
  max-width: 300px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
}

#a-dl-btn {
  margin-bottom: 15px;
}

#a-dl-btn .header-button {
  display: inline-block;
}


/*========================
    Sidebar
=========================*/
.sidebar {
  position: fixed;
  top: 60px; /* offset below header */
  left: 0;
  width: 220px;
  bottom: 0;
  background-color: #2c2c2c;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #fff;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
  color: #ccc;
  text-decoration: underline;
}

.sidebar-link {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #ddd;
  font-size: 14px;
}

.sidebar-link:hover {
  color: #fff;
  text-decoration: underline;
}

.logout-link {
  color: #ff6666;
  font-weight: bold;
}

/*===========
    Manage Inventory
============*/
.management-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.management-options .header-button {
  width: 250px;
  text-align: center;
}

/*=================
   Settings
==================*/
.settings-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.settings-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.settings-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #444;
}

.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 14px;
}

.settings-form button {
  max-width: 200px;
  padding: 12px;
  background-color: #2e86de;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
}

.button-wrapper {
  text-align: center;
  margin-top: 15px;
}
.settings-form button:hover {
  background-color: #1b4f72;
}

.message,
.feedback {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

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

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

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}

.overlay-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.hidden {
  display: none;
}

.loading-indicator {
  font-weight: bold;
  color: #555;
  padding: 10px;
  margin-top: 10px;
}

.report-container {
  position: relative;
}

.sticky-add-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-family: 'Material Symbols Outlined';
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 60; 
  font-size: 60px; 
  color: blue;
  cursor: pointer;
  z-index: 1000;
  display: inline-block;
  line-height: 1;
}
