

/* ===========================================================
   RESET & BASE STYLES
=========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  overflow-x: hidden;
}

/* ===========================================================
   HEADER STYLES
=========================================================== */
.main-header {
  background-color: #fd7e14;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.main-header .logo img {
  margin-right: 10px;
  background: transparent;
}

.user-info {
  font-size: 0.95rem;
}

/* ===========================================================
   SIDEBAR STYLES
=========================================================== */
.sidebar {
  min-height: 100vh;
  background-color: #343a40;
}

.sidebar a {
  color: white;
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sidebar a:hover,
.sidebar .active {
  background-color: #fd7e14;
  color: white;
}

/* ===========================================================
   MAIN CONTENT LAYOUT
=========================================================== */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: #f8f9fa;
}

/* ===========================================================
   BUTTON STYLES
=========================================================== */
.btn-orange {
  background-color: #fd7e14;
  color: white;
  border: none;
}

.btn-orange:hover {
  background-color: #e35b00;
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* ===========================================================
   TABLE STYLES
=========================================================== */
table th {
  background-color: #f1f1f1;
  color: #333;
}

.table td, .table th {
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #fff3e0;
}
.table-responsive {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===========================================================
   FORM ELEMENTS
=========================================================== */
input.form-control,
select.form-select {
  border-radius: 4px;
  border: 1px solid #ced4da;
}

/* ===========================================================
   ALERTS
=========================================================== */
.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

/* ===========================================================
   IMAGE STYLES (for modals / assets)
=========================================================== */
.asset-images img {
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 6px;
}

.asset-images img:hover {
  transform: scale(1.03);
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===========================================================
   CHART STYLES
=========================================================== */
.small-chart {
  width: 300px !important;
  height: 300px !important;
  margin: 0 auto;
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 300px;
}

/* ===========================================================
   RESPONSIVE WRAPPER FOR FLEX LAYOUT
=========================================================== */
.wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sidebar {
  width: 250px;
  background-color: #343a40;
  color: white;
}
.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #2c2f33;
  min-height: 100vh;
}

.content {
  flex-grow: 1; /* This ensures it fills the rest of the space */
  padding: 40px 60px;
  background-color: #f2f2f2;
}

/* Standalone authentication screens */
@media (max-width: 767.98px) {
  body.d-flex,
  body.wrapper,
  .signup-wrapper {
    height: auto !important;
    min-height: 100dvh;
  }

  body.d-flex,
  body.wrapper {
    padding: 1rem;
  }

  .signup-wrapper {
    padding: 1rem 0;
  }

  .card.p-4 {
    padding: 1.25rem !important;
  }

  .form-control,
  .form-select,
  .btn {
    min-height: 44px;
  }

  h4 {
    font-size: 1.2rem;
  }
}
