
/* Background style */
body, html {
  margin: 0;
  padding: 0;

  font-family: 'Roboto','Segoe UI', sans-serif;
  height: 100%;
  background-image: url("images/Home.jpg");
  
}

.background {
  /* background: linear-gradient(to right, #74ebd5, #ACB6E5); */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("images/Home.jpg");

}

/* Card Style */
.login-box {
  background: rgb(252, 253, 253);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 320px;
  
  animation: fadeIn 1s ease-in-out;
}

.login-box h1 {
  
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
}

.login-box p {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

/* Button styles */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  padding: 12px 20px;
  text-decoration: none;
  background-color: #1e90ff;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(30, 144, 255, 0.2);
}

.btn:hover {
  background-color: #1c7ed6;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*---------------------admin/Student css--------------------*/

.admin-login-page {
    height: 100vh;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    background-image: url("Home.jpg");
}

/* Target only inside .admin-login-page */
.admin-login-page .acontainer {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    width: 450px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.7s ease;
}

.admin-login-page .ad {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

.admin-login-page label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
    color: #555;
}

.admin-login-page .control {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.admin-login-page .control:focus {
    border-color: #1e90ff;
}

.admin-login-page .submit-btn {
    margin-top: 20px;
    margin-left: 10px;
    background-color: #1e90ff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.2);
}

.admin-login-page .submit-btn:hover {
    background-color: #187bcd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*-----------------------------dashboard-------------------------------------*/
.D_container{
    
    width:100%;
   margin-top: -50px;

}


.D_nav {
    width: 100%;
    background: linear-gradient(to right, #1e3c72, #2a5298); /* nice blue gradient */
    padding: 20px 40px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Flex Container */
.D_flex {
    display: flex;
    gap: 20px; /* space between children */
    padding: 20px;
 
}

/* Sidebar */
.side1 {
    width: 20%;
    color: white;
    min-height:400px;
    background-color: #f0f4f8;
    height:500px;
    background-color: #0b0b0b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    background-color: rgba(2, 2, 2, 0.6);

 
}

.side1 ul a{
    text-decoration: none;
    line-height: 30px;
    color:white;
} 
/* Main Content */
.side2 {
    flex: 1;
    min-height:500px;
    background-color: #dacaca;
    background-color: #f4bbfb;
   
    background-color: teal;
    
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(131, 129, 129, 0.6);
}
.ss{
  color:white;
}

.form-control::placeholder {
      color: #aaa;
    }

    .form-control {
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 15px;
    }


/*----------------------------------------------------------course form-------------------------------------------------------------------*/

.course-form-container {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 450px;
 min-height: 250px;
}



.course-form-container h2 {
  margin-bottom: 15px;
  color: #d62828; /* red heading */
  font-size: 22px;
}

.course-form-container label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 14px;
}

.course-form-container input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.course-form-container button {
  width: 100%;
  padding: 10px;
  background-color: #ffc107;
  /*yellow*/border: none;
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
}

.course-form-container button:hover {
  background-color: #e0a800;
}

.toshowCourse{
  display:flex;
  width:100%;

}
.c1{
  margin-top: 100px;
  width:50%;
  position: relative;
}
.c2{
  background-color:white;
   margin-top: 100px;
  width:50%;
  position: relative;
}
.viewcourse{
  width:570px;
}
.viewcourse table{
  margin: auto;
  width: 97%;
}

/*=================-===========================exam css==================================================*/


.exam-form-container {
 background-color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 450px;
  height: 400px;
  margin-top: -80px;
}

.exam-heading {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
}

.exam-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
}

.exam-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.exam-form input:focus {
  outline: none;
  border-color: #007BFF;
}

.exam-form button {
  width: 100%;
  padding: 10px;
 background-color: #e0a800;
  color: white;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

 .toshowCourse {
  display: flex;
  gap: 20px;
}
.viewcourse {
  flex: 1;
  overflow-y: auto;  /* optional if needed */
}
.exam-form button:hover {
   background-color: #e0a800;
}

.c2 p{
  color: wheat;
}

/*========================================================*/

/* ---------------------------------------------------------------- Responsive Design ----------------------------------------------*/
@media (max-width: 992px) {
  .D_flex {
    flex-direction: column;
    gap: 15px;
  }

  .side1 {
    width: 100%;
    height: auto;
  }

  .side2 {
    width: 100%;
  }

  .toshowCourse {
    flex-direction: column;
  }

  .c1, .c2 {
    width: 100%;
    margin-top: 40px;
  }

  .course-form-container {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .D_nav {
    font-size: 1.2rem;
    padding: 15px 20px;
    text-align: center;
  }

  .course-form-container {
    padding: 20px;
  }

  .login-box {
    width: 90%;
    padding: 30px 20px;
  }

  .admin-login-page .acontainer {
    width: 90%;
    padding: 25px;
  }
}

/*==========================================question===================*/

.form-label{
  font-weight:700 ;
}



/* ================= schedule css========================*/




/*====================================student css==========================*/


/*=====================student registration===============================*/
.student-container {
  background: #fff;
  padding: 30px;
  width: 90%; /* Use most of the screen */
  width: 550px; /* Increase this value as needed */
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}


.student-container:hover {
  transform: translateY(-3px);
}

.student-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


.student-register-page {
  height: 100vh;
  background: linear-gradient(to right, #74ebd5, #acb6e5); /* Soft gradient */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s ease;
}



.login-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
  color: #222;
}


.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  width: 95%;
  padding: 10px;
  font-size: 15px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
  outline: none;
}


.btn-login {
  width: 95%;
  padding: 12px;
  margin-left:10px;
  background-color: #4285F4;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #4285F4;
}


.register-msg {
  text-align: center;
  font-size: 14px;
  margin-top: 15px;
}

.register-msg a {
  color: #1976d2;
  text-decoration: none;
}

.register-msg a:hover {
  text-decoration: underline;
}


@media (max-width: 600px) {
  .student-container {
    padding: 25px;
  }

  .login-title {
    font-size: 22px;
  }

  .form-group input {
    font-size: 14px;
    padding: 8px;
  }

  .btn-login {
    font-size: 15px;
    padding: 10px;
  }
}




/*internal register*/

    .reg-wrapper {
      display: flex;
      justify-content: center;
      margin-top: 60px;
    }

    .reg-card {
      background-color: #fff;
      padding: 30px 40px;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      width: 100%;
    }

    .reg-title {
      text-align: center;
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 25px;
      color: #333;
    }

    .reg-group {
      margin-bottom: 20px;
    }

    .reg-group label {
      font-size: 14px;
      font-weight: 500;
      color: #555;
      display: block;
      margin-bottom: 6px;
    }

    .reg-input,
    .reg-select {
      width: 100%;
      padding: 10px 12px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-sizing: border-box;
    }

    .reg-input[readonly] {
      background-color: #f9f9f9;
      color: #333;
    }

    .reg-button {
      width: 100%;
      padding: 12px;
      font-size: 16px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      margin-top: 10px;
    }

    .reg-button:hover {
      background-color: #0056b3;
    }


  /*=============student dashboard=========================================*/


  .studentDashBoard{
    display: flex;
  }




  /* ===================================
   Media Queries for Responsive Design
====================================== */
@media (max-width: 992px) {
  .D_flex {
    flex-direction: column;
    gap: 15px;
  }

  .side1, .side2 {
    width: 100%;
    height: auto;
  }

  .student-form-grid {
    grid-template-columns: 1fr;
  }

  .toshowCourse {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .D_nav {
    font-size: 1.2rem;
    padding: 15px 20px;
    text-align: center;
  }

  .login-box,
  .acontainer,
  .student-container,
  .exam-form-container,
  .course-form-container {
    width: 95%;
    padding: 20px;
  }

  .login-box h1,
  .exam-heading,
  .reg-title {
    font-size: 18px;
  }

  .btn, .submit-btn, .btn-login, .reg-button {
    font-size: 14px;
    padding: 10px;
  }
}
