/* Global Reset */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
}

.container {
  max-width: 1200px !important;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  border-radius: 6px;
}
.row>*{
	margin-top:0px !important;
}
/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;   /* Vertically center items */
  justify-content: space-between; /* Left vs right */
  background: #f4f4f5;
  color: #333;
  padding: 10px 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap; /* prevent wrapping on large screens */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px; /* spacing between logo and breadcrumb */
}

.header .logo-icon {
  height: 30px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.breadcrumb span {
  color: #ddd;
  margin-left: 5px;
  font-size: 14px;
}

.user-info {
  font-size: 14px;
  white-space: nowrap; /* prevent line break */
}

.user-info a {
  color: #f88;
  margin-left: 8px;
  text-decoration: none;
}

/* ===== LOGIN PAGE ===== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 350px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.login-logo {
  height: 60px;
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-container button:hover {
  background: #218838;
}

.login-container .error {
  color: red;
  font-size: 14px;
}

/* ===== HEADINGS ===== */
h2, h3 {
  margin-top: 0;
  padding-bottom:10px !important;
  color: #444;
}

/* ===== NAVIGATION ===== */
nav {
  margin-bottom: 0px !important;;
}
nav a {
  display: inline-block;
  margin-right: 10px;
  text-decoration: none;
  background: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  transition: 0.2s;
  font-size: 14px;
}
nav a:hover {
  background: #0056b3;
}

/* ===== FORMS ===== */
form {
  margin-bottom: 20px;
}
form input, form select, form textarea, form button {
  display: block;
  margin: 8px 0;
  padding: 8px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  padding: 10px;
}
form button {
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 12px;
}
form button:hover {
  background: #218838;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px !important;
}
table, th, td {
  border: 1px solid #ddd;
}
th, td {
  padding: 10px;
  text-align: left;
}
th {
  background: #f0f0f0;
}
tr:nth-child(even) {
  background: #fafafa;
}

/* ===== BUTTONS ===== */
.btn-danger {
  background: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.btn-danger:hover {
  background: #b02a37;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.btn-secondary:hover {
  background: #565e64;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .header-left {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .breadcrumb {
    margin-left: 0;
  }

  .user-info {
    margin-top: 10px;
    font-size: 13px;
    width: 100%;
    text-align: left;
  }
}

/* ===== MOBILE FORMS ===== */
@media (max-width: 768px) {
  form input, form select, form textarea, form button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px;
    padding: 10px;
  }

  form button {
    font-size: 15px;
    padding: 12px;
  }
}

/* ===== MOBILE TABLE ===== */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  table th, table td {
    font-size: 12px;
    padding: 6px 8px;
  }

  .btn-danger, .btn-secondary {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* ===== VERY SMALL SCREENS (phones < 480px) ===== */
@media (max-width: 480px) {
  .header {
    padding: 10px;
  }

  .user-info {
    font-size: 12px;
  }

  nav a {
    font-size: 12px;
    padding: 6px 8px;
    margin-bottom: 5px;
  }

  form button {
    font-size: 14px;
    padding: 10px;
  }

  table th, table td {
    font-size: 12px;
  }
}
