/* General Resets */
body {
  margin: 0;
  padding: 0;
  font-family: "Gill Sans", sans-serif;
}

a {
  text-decoration: none;
}

header {
  position: fixed;
  background: #22242A;
  padding: 20px;
  width: 100%;
  z-index: 10;
}

.left_area h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 900;
}

.left_area span {
  color: #19B3D3;
}

.logout_btn {
  padding: 5px 10px;
  background: #19B3D3;
  color: #fff;
  float: right;
  border-radius: 2px;
  font-weight: 600;
  transition: background 0.3s;
}

.logout_btn:hover {
  background: #0B87A6;
}

/* Sidebar */
.sidebar {
  background: #2f323a;
  position: fixed;
  top: 70px;
  left: 0;
  width: 250px;
  height: 100%;
  padding-top: 30px;
  transition: left 0.5s;
}

.sidebar .profile_image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.sidebar h4 {
  color: #ccc;
  margin-top: 0;
}

.sidebar a {
  color: #fff;
  display: block;
  padding: 15px 40px;
  box-sizing: border-box;
  transition: background 0.3s;
}

.sidebar a:hover {
  background: #19B3D3;
}

#sidebar_btn {
  font-size: 20px;
  cursor: pointer;
  color: #fff;
}

.content {
  margin-left: 250px;
  padding: 100px 20px 20px 20px;
}

/* Dashboard Cards */
.card {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  border: 1px solid #000;
  transition: 0.3s ease-in-out;
}

.card .card-block {
  padding: 25px;
}

.order-card i {
  font-size: 26px;
}

.f-left {
  float: left;
}

.f-right {
  float: right;
}

/* Jumbotron */
.jumbotron h1 {
  text-align: center;
}

.jumbotron {
  padding: 2rem 1rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .content {
    margin-left: 0;
    padding-top: 130px;
  }

  .logout_btn {
    float: none;
    display: block;
    margin: 10px auto 0;
    text-align: center;
  }

  .sidebar a {
    padding-left: 20px;
  }

  header {
    position: relative;
    text-align: center;
  }

  #sidebar_btn {
    position: absolute;
    left: 10px;
    top: 25px;
  }
}

@media (max-width: 576px) {
  .card h2 {
    font-size: 1.5rem;
  }

  .card .card-block {
    padding: 15px;
  }

  .jumbotron h1 {
    font-size: 2rem;
  }

  .jumbotron .lead {
    font-size: 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* ####### */
    
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 9999;
}

.footer-link {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.footer-link i {
  font-size: 18px;
  margin-bottom: 2px;
}


/* ######## others
 */
 
/* === Universal Table Styling === */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table thead th {
  background-color: #343a40;
  color: #fff;
  padding: 10px;
  text-align: center;
}

.table td, .table th {
  padding: 10px;
  border: 1px solid #dee2e6;
  text-align: center;
}

.table-hover tbody tr:hover {
  background-color: #f1f1f1;
}

@media (max-width: 768px) {
  .table thead {
    display: none;
  }

  .table tr {
    display: block;
    margin-bottom: 15px;
  }

  .table td {
    display: block;
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}

/* === Form Layout === */
form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  padding: 10px 20px;
  background-color: #04868f;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

form button:hover {
  background-color: #03646c;
}

/* === Buttons === */
.btn {
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 4px;
}

.btn-primary {
  background-color: #4C51BF;
  border: none;
}

.btn-primary:hover {
  background-color: #3B40A4;
}

/* === Page Layout Containers === */
.container-fluid,
.container {
  padding-left: 15px;
  padding-right: 15px;
}

.main-content {
  padding: 20px;
}

/* === Page Headings === */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #2f323a;
  text-align: center;
}

/* === Mobile tweaks === */
@media (max-width: 576px) {
  h1, h2 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 7px 10px;
  }
}
/* === Navbar Styling === */
.navbar {
  background-color: #000 !important;
}

.navbar-brand {
  font-size: 1.25rem;
  font-family: "Comic Sans MS", cursive, sans-serif;
  color: #fff !important;
}

.navbar .nav-link {
  color: #ccc !important;
  padding-left: 20px;
}

.navbar .nav-link:hover {
  color: #fff !important;
}

/* === Jumbotron Section === */
#section-jumbotron {
  background-color: #f8f9fa;
  padding: 60px 20px;
  min-height: 80vh;
  text-align: center;
}

#section-jumbotron .display-1 {
  font-weight: bold;
  font-size: 3.5rem;
}

@media (max-width: 576px) {
  #section-jumbotron .display-1 {
    font-size: 2.5rem;
  }

  #section-jumbotron .display-4 {
    font-size: 1.5rem;
  }

  .jumbotron .lead {
    font-size: 1rem;
  }
}

/* === Logout Image Responsive === */
.logout-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 100px auto;
}

/* === Utility Centering === */
.text-center {
  text-align: center;
}


/*****************OFFLINE PAGE STYLES*****************/
.offline-warning {
    background-color: #ff9800;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.offline-container {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

/* PWA app-like styles */
@media all and (display-mode: standalone) {
    body {
        padding-top: 20px; /* Space for status bar */
    }
    
    header {
        padding-top: env(safe-area-inset-top);
    }
}