@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Montserrat:wght@700&display=swap');

/* === GLOBAL RESETS === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
}

table {
  font-size: 12pt !important;
  width: 100%;
  table-layout: auto;
}

th, button, .btn {
  font-family: 'Inter', sans-serif;
  font-size: 12pt !important;
  color: #555;
  
}

th, td {
  padding: 12px !important;
  vertical-align: middle;
}

.nav-link {
  
  color: #ffffff !important;
}
.nav-link.setting {
  color: #717070 !important;
}

.nav-link:hover {
  background-color: #ffffff !important;
  color: #0d6efd !important;
  border-radius: 5px !important;
}

/* === UTILITIES === */
.bg-peter {
  background-color: #3498db;
  color: white;
}

.btn-success {
  background-color: #2ecc71 !important;
  color: white !important;
  border: 1px solid #2ecc71 !important;
}

.btn-danger {
  background-color: #c0392b !important;
  color: white !important;
  border: 1px solid #c0392b !important;
}

.text-success {
  color: #2ecc71 !important;
}

.text-danger {
  color: #c0392b !important;
}

.border {
  border: 1px solid #95a5a6;
}

.rounded {
  border-radius: 10px !important;
}

.dropdown-toggle::after { 
  content: none;
}

.dropdown-item {
  font-size: 14px;
}

/* === FULL-SCREEN LAYOUT === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.container, .container-fluid {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-content {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.content-area {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  flex: 1;
  min-width: 0;
}
.modal {
  z-index: 1055 !important;
}
.modal-backdrop {
  z-index: 1050 !important;
}

/* === FOOTER === */
footer {
  background: #f8f9fa;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 14px;
  margin-top: auto;
  padding: 1rem;
  width: 100%;
  position: relative; /* keeps it inside the main flex flow */
}
main {
  flex: 1;
}
/* === RESPONSIVE MEDIA QUERIES === */

/* Tablets (portrait) and smaller laptops */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }

  .content-area {
    padding: 0.5rem;
  }

  table {
    font-size: 12px !important;
  }

  th, td {
    padding: 8px !important;
  }
}

/* Phones and small tablets */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .nav-tabs {
    flex-wrap: wrap;
    font-size: 12px;
  }

  .content-area {
    padding: 0.25rem;
  }

  footer {
    font-size: 12px;
    padding: 0.5rem;
  }

  th, td {
    padding: 6px !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Extra small devices (phones under 576px) */
@media (max-width: 576px) {
  h4 {
    font-size: 16px;
  }

  .breadcrumb {
    font-size: 0.7em;
  }

  .nav-tabs .nav-item {
    flex: 1 1 100%;
    text-align: center;
  }

  .btn, .dropdown-item {
    font-size: 12px !important;
  }

  footer {
    font-size: 11px;
  }
}
