body {
    background-color: #ffffff;
    
}
.roboto-thin {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .roboto-light {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .roboto-medium {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .roboto-black {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: xx-large;
    font-style: normal;
  }
  
  .roboto-thin-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .roboto-light-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .roboto-regular-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .roboto-medium-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .roboto-bold-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .roboto-black-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  
/* Styles for the dashboard and other pages */


body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('addmin.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.header {
  background-color: rgba(0, 86, 179, 0.8);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #fff;
}

.header img {
  height: 40px;
}

.sidebar {
  width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgb(42, 41, 103);
  color: #fff;
  padding-top: 20px; 
  display: flex;
  flex-direction: column;
  justify-content: 10%; /* Space out the sidebar elements */
}

.sidebar a {
  display: block;
  padding: 15px;
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.sidebar a:hover {
  background-color: rgba(0, 86, 179, 0.6);
  color: #fff;
}

.sidebar .dropdown {
  display: none; /* Hide dropdown by default */
  padding-left: 20px;
}

.main-container { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }

.main-content {
  margin-left: 220px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1; /* Ensures the height is equal to the width */
  width: 100%; /* Ensures it takes up the full width of its parent column */
  max-width: 100%; /* Prevents it from growing too large */
}

.card {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 86, 179, 0.5);
  padding: 20px;
  color: #000;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.card h2 {
  font-size: 22px;
  margin: 0 0 10px 0;
}

.dashboard-title {
  font-size: 24px;
  color: rgb(42, 41, 103);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#positionDisplay {
  font-size: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card:hover {
  background-color: rgb(42, 41, 103);
  color: #fff;
  transform: scale(1.10);
}

.logout-button {
  background-color: #f2f2f6;
  color: rgb(0, 2, 4);
  border: none;
  padding: 10px 20px;
  border-radius: 220px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logout-button:hover {
  background-color: rgb(20, 126, 188);
  transform: scale(1.05);
}

.logout-area {
  padding: 20px;
}

/* Responsive adjustments */
/* Default styling for all screens */
.main-container {
  min-height: 100vh;
  width: 100%;
}


/* Hide the element on small screens */
@media (max-width: 767px) { 
  .divHeight {
      display: none;
  }
  .sidebar {
      width: 100px;
  }
  .main-content {
      margin-left: 0;
      padding: 10px;
  }
  .dashboard-grid {
      grid-template-columns: 1fr;
  }
  .card {
      padding: 15px;
  }
  .dashboard-title {
      font-size: 20px;
  }
  #positionDisplay {
      font-size: 16px;
  }
  .card-square {
      height: 150px;
      width: 100%;
  }
  /* Ensure the fifth card is centered */
  .col-lg-4 {
      margin-top: 20px;
  }
}

/* Show the element on medium and large screens */
@media (min-width: 768px) {
  .divHeight {
      height: 100vh;
  }
}

/* Adjustments for screens wider than 1430px */
@media (min-width: 1430px) {
  .main-container {
      min-height: 100vh;
  }
}


@media (max-width: 480px) {
  .sidebar {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: auto;
      flex-direction: row;
      overflow-x: auto;
  }

  .sidebar a {
      font-size: 14px;
      padding: 10px;
      text-align: center;
  }

  .dashboard-grid {
      gap: 15px;
  }

  .dashboard-title {
      flex-direction: column;
      align-items: flex-start;
  }

  .card {
      padding: 10px;
  }
}


/*Css for the user pages*/

.letter-container {
  width: 210mm; /* A4 width */
  height: 297mm; /* A4 height */
  margin: 20px auto;
  background: white;
  padding: 40px;
  border: 1px solid white;
  position: relative;
  box-sizing: border-box;
}

h1 {
  text-align: left;
  margin-bottom: 20px;
}

.logo {
  position: absolute;
  top: 20px;
  right: 50px;
  width: 205px;
  height: auto;
}

.field-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.field-group label {
  font-weight: bold;
  width: 15%;
}

.field-group input, 
.field-group textarea, 
.field-group select {
  width: 50%;
  padding: 8px;
  font-size: 14px;
}

.letter-body textarea {
  width: 100%;
  max-width: 750px; /* Max width for readability */
  height: 350px; /* Height adjustment */
  font-size: 16px;
  padding: 10px;
  border-radius: 5px;
  resize: none; /* Disable resizing */
  box-sizing: border-box; /* Prevent overflow */
}

.button-container {
  text-align: center;
  margin-top: 20px;
}

button {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin: 5px;
}

button:hover {
  background-color: #0056b3;
}

.generated-letter {
  margin: 20px auto;
  border: 1px solid white;
  padding: 40px;
  background-color: white;
  text-align: justify;
  display: none; /* Hidden initially */
  page-break-after: always;
  width: 210mm; /* A4 width */
  height: 315mm; /* A4 height */
  box-sizing: border-box;
}

.generated-letter .logo {
  position: static;
  display: block;
  margin: 0 auto 20px;
  max-width: 205px;
  height: auto;
}

.signature {
  max-width: 200px;
  height: auto;
  display: block;
  margin-top: 20px;
}

@media print {
  body * {
      visibility: hidden; /* Hide everything */
  }

  .generated-letter, .generated-letter * {
      visibility: visible; /* Show only generated letter */
  }

  .generated-letter {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      background: white; /* Ensure white background */
      color: black; /* Ensure black text */
  }

  .generated-letter .logo {
      max-width: 50px; /* Adjust this value to set a smaller size */
      height: auto; /* Maintain aspect ratio */
  }

  .generated-letter h1,
  .generated-letter p {
      page-break-inside: avoid; /* Prevent breaking paragraphs */
  }
}

.vertical-center {
  vertical-align: middle !important; /* Centers the text vertically */
  text-align: center !important; /* Centers the text horizontally (optional) */
}


/* Custon CSS to handle select2 elememts */

.select2-container .select2-selection--single {
  height: 38px !important ;/* Set to match other form fields' height */
  padding: 6px 8px !important; /* Adjust padding to match the other fields */
  border-radius: 0.375rem !important; /* Match the border radius of other fields */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 25px !important; /* Adjust line height */
}

.table-container {
    margin: 20px;
}
.btn-delete {
    margin-bottom: 15px;
}
.selected-count {
    margin-left: 10px;
    font-weight: bold;
    color: #28a745;
}
.poppins-regular {
    font-family: 'Poppins', sans-serif;
}
.row-selected {
    background-color: #e3f2fd !important;
}
.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}