/* =============================
   BASE TYPOGRAPHY & RESET
============================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 15px;
  background-color: #ffffff;
  color: #1e1e2d;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================
   LINKS
============================= */
a {
  color: #1e90ff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #004080;
  text-decoration: underline;
}

/* =============================
   IMAGES
============================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* =============================
   LISTS
============================= */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
ul { list-style: disc; }
ol { list-style: decimal; }

/* =============================
   HEADINGS
============================= */
h1 {
  font-size: 2rem;
  font-weight: 600;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
}
h5 {
  font-size: 1rem;
  font-weight: 500;
}
h6 {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-group-responsive {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 0.5rem;
  justify-content: center;
}

@media (max-width: 576px) {
  .btn-group-responsive {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
}

/* =============================
   PARAGRAPH
============================= */
p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

/* =============================
   LAYOUT & CONTAINERS
============================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  margin-left: 220px;
  padding: 80px 24px 24px 50px;
  min-height: calc(100vh - 60px);
  background: #fff;
  transition: margin-left 0.3s ease;
}
@media (max-width: 768px) {
  main {
    margin-left: 0;
    padding: 70px 20px 20px 20px;
  }
}
.page-content {
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 0 1rem;
}

/* =============================
   HEADER
============================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background-color: #004080;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-weight: 500;
  font-size: 1rem;
  user-select: none;
  gap: 1rem;
}

/* =============================
   SIDEBAR
============================= */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: #1e1e2d;
  color: white;
  overflow-y: auto;
  padding: 1rem 0;
  transition: transform 0.3s ease;
  z-index: 999;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.2);
}
.sidebar a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: white;
  border-left: 4px solid transparent;
  transition: background 0.3s, color 0.3s;
}
.sidebar a:hover,
.sidebar a:focus {
  background-color: #1e90ff;
  color: #1e1e2d;
  border-left-color: #004080;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-260px);
  }
  .sidebar.active {
    transform: translateX(0);
  }
}

/* =============================
   TABLES
============================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 64, 128, 0.1);
  overflow: hidden;
  overflow-x: auto;
}
thead {
  background: #004080 !important;
  color: white;
  font-weight: 600;
}
thead th, tbody td {
  padding: 12px 16px;
}
tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease;
}
tbody tr:hover {
  background-color: #e6f0ff;
}

/* =============================
   FORMS & INPUTS
============================= */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.75rem;
  border: 1.5px solid #004080;
  border-radius: 6px;
  background: white;
  color: #1e1e2d;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border 0.3s, box-shadow 0.3s;
}
input::placeholder,
textarea::placeholder {
  color: #888;
}
input:focus, select:focus, textarea:focus {
  border-color: #1e90ff;
  background: #f0f8ff;
  box-shadow: 0 0 6px #1e90ff;
  outline: none;
}

/* =============================
   BUTTONS
============================= */
button,
input[type="submit"],
input[type="button"] {
  background: #004080;
  color: white;
  
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  
  transition: background 0.3s, box-shadow 0.3s;
}
button:hover,
button:focus {
  background: #1e90ff;
  box-shadow: 0 4px 12px rgba(30,144,255,0.6);
  outline: none;
}
button:disabled {
   display: none; /* Hide the button completely */
    visibility: hidden; /* Ensure it's not interactive */
    pointer-events: none; /* Disable pointer events */
    /* Override other styles that might make it visible */
    background-color: transparent !important;
    color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

/* =============================
   UTILITIES
============================= */
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }

/* =============================
   SCROLLBAR (Sidebar)
============================= */
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: #1e1e2d;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #1e90ff;
  border-radius: 4px;
}

/* =============================
   NOTIFICATIONS (Minimal)
============================= */
#notification-wrapper {
  font-family: Arial, sans-serif;
}
#notification-wrapper ul {
  margin: 0; padding: 0; list-style: none;
}
#notification-wrapper li:hover {
  background: #f0f0f0;
  cursor: pointer;
}
