
/* Custom layout and utility styles replacing Bootstrap */

/* Container */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}
[class*="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
}
.col-12 { width: 100%; }
.col-9 { width: 75%; }
.col-8 { width: 66.666%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* Padding & margin utilities */
.p-1 { padding: 0.25rem; }
.p-3 { padding: 1rem; }
.p-5 { padding: 3rem; }
.m-1 { margin: 0.25rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-small { font-size: 0.875rem; }
.text-gray { color: #6c757d; }
.text-gray-light { color: #adb5bd; }

/* Borders */
.border { border: 1px solid #dee2e6; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.border-gray-light { border-color: #dee2e6; }

/* Flexbox */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-justify-center { justify-content: center; }
.flex-justify-between { justify-content: space-between; }

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  background-color: #007bff;
  color: white;
}
.btn:hover {
  background-color: #0056b3;
}
.btn-outline-dark {
  background: none;
  border: 1px solid #333;
  color: #333;
}
.btn-outline-dark:hover {
  background-color: #333;
  color: white;
}

/* Form control */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}
.rounded-circle {
  border-radius: 50%;
}

/* === Sidebar Layout === */
.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

.sidebar {
  width: 320px;
  background-color: #2c2f36;
  color: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
}

.sidebar .logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  border: 2px solid white;
  padding: 1rem;
  border-radius: 1rem;
}

.sidebar nav {
  flex-grow: 1;
}

.sidebar nav a {
  display: block;
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  margin: 0.25rem 0;
  border: 2px solid white;
  border-radius: 0.5rem;
}

.sidebar nav a:hover {
  background-color: #444;
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  background-color: #f9f9f9;
  color: #333;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .sidebar .logo {
    width: 100%;
    margin-bottom: 1rem;
  }

  .sidebar nav a {
    flex: 1 0 40%;
    margin: 0.5rem;
  }
}
