
.student-panel{
    position: relative;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
/* handle tabs style */

.tabs {
    display: flex;
    background: #34495eb0;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 14px 10px;
    cursor: pointer;
    color: #fff;
    border-right: 2px solid #34495eb0;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn i {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}
.tab-btn:hover{
    opacity: 0.6;
}
.tab-btn.active {
    background: #34495e;
    color: #9acd32;
    border-bottom: 3px solid #9acd32;
}

.tab-content {
    display: none;
    padding: 25px;
    margin:22px 5px 0 0;
    border-radius: 5px 5px 0 0 ;
    /* animation: fadeIn 0.2s ease; */
}
.unfold-register{
    display: none;
}

.tab-content.active, .unfold-register.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.add-task-input{
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-task-input select,
 .add-task-input input{
    height: 100%;
    width: 100%;
    margin: 5px;
}

.save-task{
    width: 200px;
    background-color: #9acd32;
}

.unfold-register-btn i{
    border-radius: 10px;
    padding: 10px;
    color: white;
    background-color: #9acd32;
    position: absolute;
    right: 10px;
    top: 80px;
    font-size: 20px;
    cursor: pointer;
}
.add-user-box .input-fields.show{
    display: block;
}
.display-students,.display-parents{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;  
    margin-bottom: 1rem;
    width: 100%;
    border-collapse: collapse;
    /* overflow: hidden; */
    position: relative;
}
.persona-table{
    width: 100%;
    /* border-collapse: collapse; */
    /* min-width: 600px;  */
}


.persona-table tr:nth-child(even) {
  background-color: #34495e;
  color:#ffffff;
}

.persona-table tr:nth-child(odd) {
  background-color: #9acd32;
  color:#34495e;
  border-radius:10px;
}


.persona-table tr{
  position: relative;
}
.persona-table td {
  border-radius:10px;
  padding-left:8px;
}
.persona-table th{
  background-color: #18191A;
  color: #ffffff;
  border: 1px double #9acd32;
  border-radius: 0 0 5px 5px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.persona-table th:first-child{
  border-radius: 5px 0 5px 5px;
}
.persona-table th:last-child{
  border-radius: 0 5px 5px 5px;
}
.persona-table tbody{
  text-align: start;
}
.persona-table tbody .pers-status{
  text-align: center !important;
}
/* display, add, edit and delete students */
.child-badge {
    /* background-color: #007bff; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px double #9acd32;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    width:50px;
}

.persona-table .center-td {
    text-align: center;

}
.center-td i{
  font-size: 22px;
    transition: all 0.3s ease;
}
.pers-view-btn{
  cursor: pointer;
}
.pers-view-btn:hover i{
  color: #007bff;
}.pers-view-btn:active i{
  color: #ffffff;
}
.persona-table .pers-status{
  width: 1px;
    display: block;
    margin: 0 auto;
    height: 1px;
    padding: 5px;
    border-radius: 50%;
}
/* Status colors */
table .st-status.pending, table .st-task.pending{
  background: #fff3cd;
  color: #856404;
}
table .st-status.completed, table .st-task.completed{
  background: #9acd32;
  color: #ffffff;
}
.task-table .st-task{
  width: 60px;
  text-align: center;
}
.get-parent-list{
    display: none;
}
.st-school i{
    opacity: 0.4;
}

.st-table:nth-child(even) {
  background-color: #34495e;
}

.st-table:nth-child(odd) {
  background-color: #34495eb0;
}
.st-num{
    display: flex;
   align-items: center;
}
.st-num img{
    width: 30px;
    height: 30px;
    opacity: 0.6;
    border-radius: 50px;
    border: 2px solid #ffff;
}
.st-img.online-profile img{
    opacity: 1;
    border-color: #08fa10;
}
.st-info-btn{
    cursor: pointer;
    color: #ffffff;
}
.display-students, .display-parents{
  width: 100%;
}
.display-students .st-status{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin: 4px;
}
.online {
  background-color: #ffff;
  box-shadow: 0 0 8px #61d765;
}

.away {
  background-color: #FFC107;
  box-shadow: 0 0 8px #FFC107;
}

.offline {
  background-color: #9E9E9E;
  box-shadow: 0 0 8px #9E9E9E;
}

.st-status.online{
  background-color: #4CAF50;
}

.st-status.online::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #4CAF50;
  animation: pulse 1.5s infinite;
  opacity: 0.6;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
/* Display tasks style */
.display-tasks {
  margin: 30px auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Inter", sans-serif;
}

button.mark-complete,
button.st-info-btn {
  background: #9acd32;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

button.mark-complete:hover,
button.st-info-btn:hover {
  background: #17a589;
}

/* Students attendance */
.students-attendance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto;
}

.absence-item {
  border:1px solid #ccc;
  border-radius: 10px;
  padding: 0 5px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dark-mode .absence-item{
    background-color: #242526;
}
.absence-item:hover {
  transform: translateY(-2px);
}
.abs-info{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.abs-info h4 {
  margin: 0;
  font-size: 1rem;
}

.abs-info small {
  font-size: 0.85rem;
}

.abs-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  opacity: 1;
}

.abs-btn.present {
  color: #1fcf48;
}

.abs-btn.absent {
  color: #c12434;
}

.abs-btn:hover {
  transform: scale(1.05);
}
/* -------------action modal style------------- */
.modal-overlay {
    display: none;  
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center; justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%; max-width: 500px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.dark-mode .modal-content{
  background-color: #242526;
}
.modal-header { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal-footer { margin-top: 20px; text-align: right; border-top: 1px solid #eee; padding-top: 10px; }

.btn-cancel {
    background: #d65a47; color: white; border: none;
    padding: 8px 16px; border-radius: 4px; cursor: pointer;
}

.btn-cancel:hover{
  background-color: #007bff;
}

.close-modal { 
  cursor: pointer; 
  font-size: 24px; 
  font-weight: bold; 
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.btn-edit {
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.btn-edit:hover { background-color: #218838; }

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}