@font-face {
  font-family: 'AMHfont';
  src: url('YekanBakh-VF.ttf') format('truetype');
  font-weight: 100 900; /* Assuming it’s a variable font with weight axis */
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'AMHfont';
  padding-bottom: 60px; /* space for navbar */
  direction: rtl;
}

body * {
  font-family: 'AMHfont';
}

/* Navbar container */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Navbar item */
.nav-item {
  flex: 1;
  text-align: center;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-item i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

/* Active state */
.nav-item.active {
  color: #007bff;
}

.nav-item i svg path {
  fill: #666;
}


.nav-item.active i svg path {
  fill: #007bff;
}

.nav-item:hover i svg path{
  fill: #007bff;
}

.nav-item:hover {
  color: #007bff;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile .name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #007bff;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.support-btn:hover {
  background: #0056b3;
}

.content {
  padding: 20px;
  padding-top: 5px;
}

.select-row {
  display: flex;
  gap: 10px;            /* space between selects */
  max-width: 400px;     /* optional */
  margin: 20px auto;    /* center horizontally */
}

.select-row select {
  flex: 1;              /* equal width */
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}


div.track, div.bar{
  box-sizing: border-box;
  position: relative;
}

div.progress{
  width: 100%;
  height: 50px;
}

div.track{
  width: 100%;
  height: 50px;
  display: flex;  
  flex-direction: row;
  justify-content: space-between;
}

div.bar{
  height: 40px;
  width: 2%;
  background-color: #b2c3d6;
  border-radius:2px;
  box-shadow: 0px 0px 5px #b2c3d6;
}

div.bar.active{
  height: 40px;
  width: 2%;
  background-color: #007bff;
  border-radius:2px;
  box-shadow: 0px 0px 5px #007bff;
}

.exam-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.exam-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.exam-header i {
  font-size: 24px;
  color: #007bff;
}

.exam-name {
  font-size: 20px;
  margin: 0;
  color: #333;
}

.exam-description {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.exam-details {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.exam-details p {
  margin: 4px 0;
}

.exam-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s;
}

.download-btn {
  background: #007bff;
  color: white;
}

.download-btn:hover {
  background: #0056b3;
}

.day-schedule {
  max-width: 500px;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr;
}

.time-col {
  background: #f4f4f4;
  text-align: center;
  font-size: 12px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.slot {
    height: 50px; /* height of 1 hour block */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 12px;
    display: flex;
    padding-right: 10px;
    align-items: center;
}

.slot[done="yes"] {
  background-color: #d4edda;
}

.slot[done="rest"] {
  background-color: #edd4d4;
}

.slot[done="rest"]::after {
    content: "استراحت";
}

.slot:hover {
  background: #e6f0ff;
}

.banner {
  display: flex;
  justify-content: flex-start;
  padding: 15px 20px;
  margin: 15px auto;
  max-width: 600px;
  border-radius: 10px;
  color: #333;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex-direction: column;
}

.banner.done {
  border-right: 6px solid #28a745; /* green */
}

.banner.not-done {
  border-right: 6px solid #ffc107; /* yellow */
}

.banner-text {
  flex: 1;
}

.banner-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.banner-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: #555;
}

.banner-icon i {
  font-size: 24px;
}

.banner.done .banner-icon i {
  color: #28a745;
}

.banner.not-done .banner-icon i {
  color: #ffc107;
}


/* ADMIN */

.admin-upload-box {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px 30px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-upload-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.file-group {
  margin-bottom: 15px;
}

.file-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
}

.file-group input[type="file"] {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    background: #f5f5f5;
    padding: 15px;
    margin-top: -19px;
    padding-top: 30px;
    border-radius: 15px;
}

.input-group label {
  font-size: 14px;
  color: #555;
}

.searchbar {
  width: -webkit-fill-available;
  padding: 5px 10px;
  font-size: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 15px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  margin-top: 10px;
}

.searchbar:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}
.input-group input,
.input-group textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #007bff;
}

.input-group textarea {
  resize: vertical;
  min-height: 60px;
}

.student-id-group {
  display: grid;
  gap: 10px;
  align-items: center;
}


.student-name {
  font-size: 14px;
  padding: 10px;
  background: #e6f0ff;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.upload-btn {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
}

.upload-btn:hover {
  background: #0056b3;
}


.student-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-header {
  text-align: center;
  margin-bottom: 15px;
}

.student-name-2 {
  font-size: 20px;
  color: #333;
}

.recent-scores h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #555;
}

.recent-scores ul {
  list-style: none;
  padding-left: 0;
}

.recent-scores ul li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #444;
}


.admin-input-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 25px 30px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-input-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.input-group label {
  font-size: 14px;
  color: #555;
}



.submit-btn {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #0056b3;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 70px;
  left: 20px;
  height: 40px;
  border-radius: 40px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0px 10px;
}

/* Hidden state */
.floating-btn.hidden {
  opacity: 0;
  visibility: hidden;
}

#tab1 {
  padding-bottom: 20px;
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal Content Box */
.modal-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  width: 70%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Buttons Container */
.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Buttons */
.modal-buttons .btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn.cancel {
  background: #ccc;
  color: #333;
}

.btn.confirm {
  background: #007bff;
  color: white;
}

.btn.neutral {
    background: #fb0202;
    color: white;
}

.btn:hover {
  opacity: 0.85;
}

.opac20 {
    opacity: 20%;
}

div#adddarddivmoddd button {
    width: 100%;
}


.hideit {
    display: none !important;
}

.stattt {
    display: flex;
    justify-content: space-between;
    width: -webkit-fill-available;
    padding: 0px 15px;
}

.stattt div h6, .stattt div h5 {
    margin: 0;
    text-align: center;
    margin-bottom: 5px;
}

.stattt div {
    border: 1px solid #007bff
}


.stattt {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* space between cards */
    width: 100%;
    padding: 15px;
    flex-wrap: wrap; /* makes it responsive */
    box-sizing: border-box;
}

.stat-card {
    flex: 1;
    /*min-width: 180px;  keeps cards readable on small screens */
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 5px 5px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    background: #e4f1ff; /* soft hover bg */
}

.stat-card h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #444;
}

.stat-card h6 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
}
