
:root {
    --primary: #8F87F1;
    --secondary: #C68EFD;
    --highlight: #E9A5F1;
    --soft-bg: #FAD2E2;
  }
  
  body {
      font-family: sans-serif;
      background-color: var(--soft-bg);
      color: #333;
      margin: 0;
      padding: 0;
  }
  
  
  
      
  
  h2, h3 {
      text-align: center;
    --highlight: #be0891c7;
    color: 
  }
  
  form {
      max-width: 500px;
      margin: 20px auto;
      padding: 10px;
      background-color: var(--soft-bg);
      border: 1px solid #E4EFE7;
      border-radius: 10px;
      
  }

  

  
  
  input, textarea {
      width: 70%;
      padding: 8px;
      margin: 6px 0;
      border: 1px solid #ddd;
      border-radius: 5px;
  }
  
  button {
      background-color: var(--secondary);
      color: white;
      padding: 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      display: block;
    margin: 0 auto
  }
  
  button:hover {
      background-color: #7FA572;
  }
  
  table {
      width: 95%;
      margin: 20px auto;
      border-collapse: collapse;
  }
  
  th, td {
      padding: 8px;
      border: 1px solid #ccc;
  }
  
  footer {
      background-color: var(--primary);
      color: white;
      padding: 8px;
      text-align: center;
      position: fixed;
      bottom: 0;
      width: 100%;
  }
  
  :root {
      --logo-height: 60px;
      --logo-border-radius: 12px;     
      --logo-hover-scale: 1.05;
      --logo-hover-opacity: 0.85;
  }
  
  
  
  header h1 {
      font-size: 32px;  /* increase this value as needed */
      margin: 0;
      color: var(--soft-bg)fff;
      font-family: sans-serif;
  }
  

  

  
 
  
  body {
      margin: 0;
      padding: 0;
      font-family: 'Segoe UI', sans-serif;
      background: var(--soft-bg);
  }
  
  
  .background-section {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-image: url('../images/pda.jpeg'); /* ← FIXED path */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: -1;
      opacity: 0.5;
    }
    
    
    
    
    
    
    .background-section .overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.5); /* ✅ Adjust opacity here (0 = transparent, 1 = black) */
      z-index: 1;
    }
    
    .background-section .content {
      position: relative;
      z-index: 2;
      text-align: center;
    }
    
  
  /* form container styles */ 

  form{
    background: #895cfa;
    width: 100%;
    }
    label{
      color: #f0f2f3;
    }
  
 .form-container {
  width: 60%;                 /* take full width on small screens */
  max-width: 600px;            /* limit width on large screens */
  margin: 40px auto;           /* center with top/bottom spacing */
  padding: 25px 30px;          /* inner spacing */
  border-radius: 16px;         /* smooth rounded corners */
  background: #ffffffee;       /* subtle white with transparency */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* softer shadow */
  box-sizing: border-box;      /* ensures padding doesn’t overflow */
}

  
  
  .custom-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .custom-modal-content {
      background: var(--soft-bg);
      padding: 30px 40px;
      border-radius: 16px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      animation: fadeIn 0.3s ease-in-out;
  }
  
  .success-icon {
      font-size: 60px;
      color: #4CAF50;
      margin-bottom: 20px;
  }
  
  .custom-modal-content h2 {
      font-size: 24px;
      color: #f5f3f3;
      margin-bottom: 10px;
  }
  
  .custom-modal-content p {
      font-size: 18px;
      margin-bottom: 20px;
  }
  
  .custom-modal-content button {
      padding: 10px 24px;
      background: #4CAF50;
      color: var(--soft-bg);
      border: none;
      border-radius: 8px;
      cursor: pointer;
  }
  
  .custom-modal-content button:hover {
      background: #45a049;
  }
  
  @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to   { opacity: 1; transform: scale(1); }
  }
  
  
  .small-input {
    width: 130px;         /* Adjust width as needed */
    height: 30px;         /* Adjust height */
    padding: 5px 10px;    /* Padding inside the input */
    font-size: 14px;      /* Font size */
    border: 1px solid #ccc;  /* Border styling */
    border-radius: 4px;   /* Rounded corners */
    box-sizing: border-box;
    
  }
  .container1 {
    display: flex;
    justify-content: center;  /* Horizontal alignment */
    align-items: center;      /* Vertical alignment */
             /* Full height of viewport */
  }
  
  
  
  header {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      background-color: var(--primary);
      color: var(--soft-bg)fff;
      margin-bottom: -5px;
  }
  
  .header-text {
      flex: 1;
      text-align: center;
  }
  
  header h1 {
      font-size: 28px;
      margin: 0;
      font-family: sans-serif;
      text-align: center;
  }
  
  header h2 {
      font-size: 22px;
      margin: 0;
      font-family: sans-serif;
      color: #ccc;
  }
  
  .header-logo {
    height: 80px;
    width: 420px;
    border-radius: 12px;
    transition: transform 0.3s ease;
  }
 
  

/* Hover effect */
.header-logo:hover {
    transform: scale(3.0);
}
  
  
  .container1 label {
      margin-right: 8px;
      color: #ccc;
      
  }
  
  .container1 input.small-input {
      margin-right: 30px; /* Adjust spacing between input and next label */
      padding: 2px 4px;
      border-radius: 4px;
      border: 1px solid #ccc;
  }
  
 
  
  .signup-form {
      max-width: 1000px;
      margin: auto;
      padding: 20px;
      background: var(--soft-bg);
      border-radius: 16px;
      box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 20px;
      justify-content: space-between;
    }
    
    .form-row input,
    .form-row textarea {
      flex: 1 1 calc(33.33% - 20px);
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 14px;
      min-width: 250px;
      box-sizing: border-box;
    }
    
    textarea {
      resize: vertical;
      height: 80px;
    }
    
    .form-actions {
      text-align: center;
    }
    
    button {
      background-color: var(--secondary);
      color: white;
      border: none;
      padding: 12px 24px;
      font-size: 16px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    
    button:hover {
      background-color: var(--primary);
    }
  
    .signup-button {
      display: inline-block;
      padding: 10px 20px;
      background-color: var(--secondary);      /* Bootstrap blue */
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      transition: background-color 0.3s ease;
  }
  
  .signup-button:hover {
      background-color: var(--primary);      /* Darker blue on hover */
  }

  .signup-text {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    color: #fdfdfd;
  }
  
  
  .dept-heading {

      display:inline-table;     /* ✅ shrink to text width */
      background-color: var(--primary); /* dark green */
      padding: 6px 12px;
      border-radius: 5px;
      font-weight: normal;
      font-family: Arial, sans-serif;
      margin-bottom: -3%;
      margin-top: -3%;
    }

    .dept-heading:hover{
      transform: scale(1.05);
    }
    
    
  
  /* Hover Effects */
  button:hover, .signup-button:hover, .actions button:hover {
      background-color: var(--primary);
      transform: scale(1.05);
      transition: all 0.3s ease-in-out;
  }
  
  .logout-button a:hover {
      background-color: var(--primary);
      transform: translateY(-2px);
      transition: all 0.3s ease;
  }
  
  .dept-heading:hover {
      background-color: var(--highlight);
      transition: background-color 0.3s ease;
  }
  
  /* Logo Hover Animation */
  .header-logo:hover {
      transform: scale(1.2);
      transition: transform 0.3s ease;
  }
  
  /* Fade-in Animation on Load */
  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(20px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  body {
      animation: fadeInUp 0.8s ease-in-out;
  }
  

/* Universal Responsive Rules for Entire Project */

/* Smartphones (portrait and landscape) */
@media only screen and (max-width: 600px) {
    body {
      font-size: 14px;
      padding: 10px;
    }
  
    header {
      flex-direction: column;
      text-align: center;
    }
  
    header img {
      width: 90%;
      height: auto;
      margin-bottom: 10px;
    }
  
    header h1, header h2 {
      font-size: 18px;
    }
  
    .logout-button a,
    button,
    .signup-button {
      padding: 8px 16px;
      font-size: 14px;
    }
  
    .form-container,
    form,
    .signup-form {
      width: 100% !important;
      margin: 10px auto;
      padding: 10px;
    }
  
    .form-row {
      flex-direction: column;
      gap: 12px;
    }
  
    .form-row input,
    .form-row textarea {
      width: 100%;
    }
  
    .grid-container {
      padding: 20px;
      gap: 20px;
    }
  
    .card img {
      width: 100px;
      height: 130px;
    }
  
    footer {
      font-size: 12px;
      padding: 6px;
    }
  }
  
  /* Tablets (601px to 1024px) */
  @media only screen and (min-width: 601px) and (max-width: 1024px) {
    header h1, header h2 {
      font-size: 22px;
    }
  
    .logout-button a,
    button,
    .signup-button {
      font-size: 15px;
      padding: 10px 18px;
    }
  
    .form-container,
    form {
      max-width: 90%;
      padding: 20px;
    }
  
    .grid-container {
      padding: 30px;
      gap: 25px;
    }
  
    .card img {
      width: 120px;
      height: 160px;
    }
  
    footer {
      font-size: 14px;
    }
  }
  
  /* Landscape tablets (iPads) */
  @media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
    and (orientation: landscape) {
    .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
  }

  .admin-container {
    max-width: 1200px;            /* Optional: limit max width */
    margin: 10px 20px;            /* Center the container with top/bottom spacing */
    padding: 30px;                /* Inner space */
    /*background-color: #ffffff;    /* White background */
    border-radius: 12px;          /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Soft shadow */
    font-family: 'Segoe UI', sans-serif;       /* Clean font */
  }
  
  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #ffffff;
  }
  
 
  
  /* Styled span as button */
  .home-button {
    background-color: #8F87F1;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }
  
  .home-button:hover {
    background-color: var(--highlight);
    transform: scale(1.05);
  }
  
  

  /* index.html*/
  <style>
    body {
      margin: 0;
      padding: 0;
      font-family: "Segoe UI", sans-serif;
      background: linear-gradient(135deg, #e4e4ff, #f8f9fb);
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      overflow: hidden;
    }
    
    .welcome-container {
      text-align: center;
      background: #ffffffcc;
      padding: 30px;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      animation: fadeIn 1s ease-in-out;
      opacity: 2.0;
      
    
      /* NEW STYLES */
      max-width: 1200px;        /* Controls max width */
      width: 950px;              /* Responsive width */
      margin: 10px auto;       /* Centers the container horizontally */
    }
    


    h1 {
      font-size: 32px;
      margin-bottom: 30px;
      position: relative;
      
        text-align: center;
        color: white;
        
      
      animation: textSlide 1.5s ease-in-out;
    
      background: linear-gradient(90deg, #b01bf5, #630166);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    
      /* Shine overlay */
      overflow: hidden;
      margin-top: -2px;
      text-align: center;
    }
    
    h1::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 248, 248, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
      );
      animation: shine 2.5s infinite;
    }
    
    @keyframes shine {
      0% {
        left: -100%;
      }
      60% {
        left: 100%;
      }
      100% {
        left: 100%;
      }
    }
    
    
    .button-group {
      display:flex;
      flex-direction: column;
      gap: 15px;
      align-items: center;
      
    }
    .button-group a {
      padding: 12px 25px;
      text-decoration: none;
      font-weight: bold;
      color: rgb(255, 255, 255);
      background: #6b05be;
      border-radius: 8px;
      transition: transform 0.3s ease, background 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      width: 220px;
      text-align: center;
    }
    a {
      text-decoration: none;
      color: inherit;
      transition: background 0.3s ease, color 0.3s ease;
  }
  
  a:hover {
      background-color: rgba(90, 2, 161, 0.1); /* Soft tint */
      color: #5a02a1; /* Slight emphasis */
      border-radius: 4px;
  }
  
    .button-group {
      
      transform: scale(1.05);
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }
    @keyframes textSlide {
      from { transform: translateY(-20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @media (max-width: 600px) {
      .welcome-container {
        padding: 30px 20px;
      }
      h1 {
        font-size: 24px;
      }
      .button-group a {
        width: 180px;
      }
    }
  </style>


  input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #5da3ee;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #a406e2;
    transform: translateY(-2px);
}




/*faculty.profile css */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.popup-form {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}
.popup-form h4 {
    margin-top: 0;
    background: #003366;
    color: white;
    padding: 10px;
    border-radius: 6px;
}
.popup-form label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}
.popup-form input, .popup-form textarea, .popup-form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
}
.popup-form button {
    margin-top: 10px;
}

/* Modals for Faculty Profile menu*/

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.popup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-form input, .popup-form button {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-form button {
    background: #4CAF50;
    color: white;
    cursor: pointer;
}

.popup-form button:hover {
    background: #45a049;
}
