* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Fira Sans', sans-serif !important;
  overflow: hidden;
}

.page-border {
  margin: 10px;
  border: 8px solid white;
  border-radius: 16px;
  box-sizing: border-box;
  height: calc(100vh - 20px);
  overflow: hidden;
  background: white;
  /* Makes the box white */
  display: flex;
  flex-direction: column;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  /* FIXED: Make header pure white */
  padding: 8px 30px;
  height: 60px;
  border-bottom: 1px solid #e0e0e0;
}

.left,
.right,
.user-profile,
.delogo {
  display: flex;
  align-items: center;
}

.msil-logo {
  height: 26px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  color: #1a237e;
  margin-left: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  margin-right: 5px;
}

.divider {
  height: 25px;
  width: 1px;
  background-color: #ccc;
  margin: 0 15px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  /* border: 1px solid #aaa;
    border-radius: 50%; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 12px;
}

.user-details {
  padding-right: 20px;
}

.inner-dot {
  width: 10px;
  height: 10px;
  background-color: #4a148c;
  border-radius: 50%;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
}

.user-id {
  font-size: 14px;
  color: #212694;
  font-weight: 700;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  /* background-color: white; */
  min-width: 75px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 8px 0;
  border-radius: 8px;
  background-color: white;
  border-color: black;
  border-width: 2px;
  border-style: solid;

}

.dropdown-menu a {
  color: black;
  text-decoration: none;
  font-weight: 400;
  padding-left: 2px;
  /* display: block; */
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.content-wrapper {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 30px 50px;
  background-color: #dce9f7;
  gap: 20px;
  border-radius: 16px;
}

.left-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  background: #dce9f7;
}

.illustration-img {
  max-width: 700px;
  width: 100%;
  height: auto;
}

.login-card {
  flex: 1;
  background-color: #f5faff;
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.welcome-text {
  font-size: 32px;
  font-weight: 700;
}

.blue {
  color: #0071f2;
}

.login-subtitle {
  font-size: 20px;
  color: #333;
  margin: 15px 0 5px 0;
  font-weight: bold;
}

.login-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.login-button {
  background-color: #1f2f98;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-button:hover {
  background-color: #132170;
}

.role-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #e2efff, #d6e7f6);
  padding: 40px 20px;
  border-radius: 16px;
}

.role-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.role-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.role-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 200px;
  height: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.role-card:hover {
  transform: translateY(-5px);
}

.role-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.role-card p {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

.dashboard-wrapper {
  flex: 1;
  background: linear-gradient(to bottom right, #e2efff, #d6e7f6);
  padding: 60px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: center;
}

.dashboard-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.dashboard-subtitle {
  font-size: 20px;
  margin: 10px 0 40px;
  color: #111;
  font-weight: 400;
}

.dashboard-cards {
  display: flex;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  gap: 40px;
  justify-content: center;
  /* Align items from the start */
  overflow-x: auto;
  /* Allow horizontal scrolling */
  width: 100%;
  /* Take full width of parent */
  padding: 10px;
  /* Space for scrollbar */
}


.dashboard-card {
  background: white;
  padding: 30px;
  width: 200px;
  height: 220px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.dashboard-card p {
  font-weight: 600;
  font-size: 20px;
}

.purpose-wrapper {
  flex: 1;
  background: linear-gradient(to bottom right, #e2efff, #d6e7f6);
  padding: 40px 30px 80px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.purpose-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1100px;
}

.purpose-card {
  background: white;
  border-radius: 16px;
  padding: 25px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}

.purpose-card:hover {
  transform: translateY(-6px);
}

.purpose-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.purpose-card p {
  font-size: 16px;
  color: #111;
  line-height: 1.3;
}

.form-wrapper {
  flex: 1;
  padding: 40px 60px;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #e2efff, #d6e7f6);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: overlay;
}

.form-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
}

.purpose-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 1100px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: white;
}

textarea {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  height: 100px;
  width: 100%;
  resize: none;
}

.submit-btn {
  align-self: center;
  background-color: #0071f2;
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.submit-btn:hover {
  background-color: #0058c7;
}

.edit-btn {
  background-color: #f59e0b !important;
  color: white !important;
}
.edit-btn:hover {
  background-color: #d97706 !important;
}

.sendback-btn {
  background-color: #f2da00 !important;
  color: white !important;
}
.sendback-btn:hover {
  background-color: #f2c700 !important;
}

.button-container{
    display: inline-block;
    align-self: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.required {
  color: red;
}

.full-width {
  width: 100%;
}

textarea,
input,
select {
  font-size: 14px;
}

input[readonly] {
  background-color: #e6e6e6;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background-color: white;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.modal-box button {
  margin-top: 20px;
  background-color: #0071f2;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.table-wrapper {
  flex: 1;
  padding: 40px;
  background: linear-gradient(to bottom right, #e2efff, #d6e7f6);
  border-radius: 16px;
  overflow-x: auto;
}

.table-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #dce9f7;
  border-radius: 10px;
  overflow: hidden;
}

th {
  background-color: #0546a0;
  color: white;
  text-align: left;
  padding: 12px;
  font-size: 14px;
  max-width: 300px;
}

td {
  padding: 12px;
  border-top: 1px solid #eee;
  font-size: 14px;
  max-width: 300px;
}

.approved {
  color: green;
  font-weight: bold;
}

.rejected {
  color: red;
  font-weight: bold;
}

/* Hover effect for table rows */
table tbody tr:hover {
  background-color: #9bc0f7;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


input[readonly],
textarea[readonly] {
  background-color: #d9d9d9;
  color: #111;
  font-weight: 500;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 1100px;
}


.project-form .form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-form .form-group label {
  font-weight: 500;
  margin-bottom: 6px;
}

.project-form .form-group input,
.project-form .form-group select,
.project-form .form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
}

.project-form .form-group textarea {
  resize: vertical;
}

.project-form .full-width {
  width: 100%;
}

.project-form .button-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.submit-btn {
  background-color: #0066ff;
  color: white;
  padding: 10px 40px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.submit-btn:hover {
  background-color: #004ecc;
}

/* Confirmation Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  min-width: 300px;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 30px;
  font-size: 16px;
  background-color: #0066ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.back-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  /* background-color: #002b5c; */
  /* color: white; */
  font-size: 24px;
  /* border: none; */
  /* border-radius: 50%; */
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  /* box-shadow: 0px 4px 10px rgba(0,0,0,0.3); */
  z-index: 1000;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 1100px;
}


.button-group1 {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #2563eb;
  /* Tailwind blue-600 */
}

.btn-primary:hover {
  background-color: #1d4ed8;
  /* Tailwind blue-700 */
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #dc2626;
  /* Tailwind red-600 */
}

.btn-secondary:hover {
  background-color: #b91c1c;
  /* Tailwind red-700 */
  transform: translateY(-1px);
}

input[type=checkbox] {
  transform: scale(1.5);
}

/* Fullscreen loading screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Loader spinner */
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.excel-btn {
  display: inline-flex;
  align-items: center;
  background-color: #217346;
  /* Excel green */
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
  margin-bottom: 10px;
  float: right;
}

.excel-btn:hover {
  background-color: #1b5e3c;
  color: white;
  text-decoration: none;
  scale: 1.05;
}