/* === Red Earth Mobile Theme === */


.styled-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  font-family: sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.styled-table thead tr {
  background-color: #8B2500;
  color: #ffffff;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 12px 15px;
  border: 1px solid #dddddd;
}
.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}
.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #8B2500;
}
.styled-table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Image box styling */
.img-box {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 4px;
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




body {
      margin: 0;
  padding: 0;
    padding-bottom: 50px; /* space for the sticky footer */
  font-family: sans-serif;
  margin: 10px;
  background: #f8f5f2;
  color: #333;
}

h2 {
  color: #8B2E1E;
}

select, input, button, textarea {
  width: 100%;
  padding: 10px;
  margin: 5px ;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  padding: 18px 12px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.card input[type="checkbox"] {
  transform: scale(1.4);
  margin-right: 12px;
  flex-shrink: 0;
}

.card span {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  background: #B33C28;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.btn-small {
  font-size: 14px;
  padding: 6px 10px;
  margin-top: 5px;
  background: #cc4f38;
  border: none;
  cursor: pointer;
}

/* Button spacing for adjacent buttons */
.btn-col + .btn-col {
  margin-left: 0.5rem;
}
/* Override back-button color */
.btn-col.btn-small {
  background: #6c757d;
}
.btn-col.btn-small:hover {
  background: #5a6268;
}



.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-title {
  font-size: 16px;
  color: #8B2E1E;
}

.level-details div {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4em;
}

.btn-group {
  display: flex;
  gap: 6px;
}

.btn-small {
  display: inline-block;
  background: #cc4f38;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.btn-col {
  flex: 1;
  text-align: center;
  background: #cc4f38;
  color: white;
  padding: 10px 0;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.btn-col:hover {
  background: #b0382f;
}

.btn-col a,
.btn-col button {
  display: block;
  width: 100%;
  padding: 6px 0;
  color: white;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

.btn-col a:hover,
.btn-col button:hover {
  background-color: #b0382f;
}

/* --- Logo at top: rectangle, not round #fff--- */
.header {
    margin: 0;                    /* remove any stray top margin */
    background: #A84421;
    color: #fff;
    text-align: center;
    padding: 18px 10px 12px 10px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 12px rgba(168,68,33,0.08);
}
.header img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 0;
    background: #A84421;
    object-fit: contain;
    box-shadow: 0 1px 5px rgba(168,68,33,0.09);
    vertical-align: middle;
    display: inline-block;
}

.dashboard-container {
    max-width: 420px;
    margin: 22px auto 0 auto;
    padding: 0 12px;
}
/* --- Student DP: perfectly centered, always round, margin below --- */
.profile-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #A84421;
    margin: 0 auto 10px auto;
    display: block;
    background: #eee;
    box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
.welcome-msg {
    font-size: 1.05rem;
    color: #593019;
    margin: 14px 0 12px 0;
}
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: #7B2E17;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 62px;
    z-index: 99;
    box-shadow: 0 -2px 14px rgba(0,0,0,0.06);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
    flex: 1 1 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: color .2s;
}
.nav-link.active,
.nav-link:hover {
    color: #ffd4b3;
}
.nav-link svg {
    margin-bottom: 2px;
    height: 26px;
    width: 26px;
}
.nav-label {
    font-size: 0.83rem;
}
@media (min-width: 500px) {
    .dashboard-container { margin-top: 36px;}
    .header { font-size: 2.1rem;}
}


