* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f7f9fc;
}


/* Success Modal */
.success-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}

.success-modal-content {
background: #fff;
padding: 20px;
border-radius: 10px;
width: 400px;
text-align: center;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.success-modal-content h2 {
  color:rgb(26, 134, 228);
  font-size: 22px;
}

.success-modal-content h3 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.success-modal-content h1 {
  font-size: 32px;
  color: #333;
  font-family: barabara;
}


.success-modal-content button.blue {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.success-modal-content button.blue:hover {
  background-color: #0056b3;
}

.success-modal-content button.green {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: green;
  color: white;
  cursor: pointer;
}

.success-modal-content button.green:hover {
  background-color: darkgreen;
}

/* Modal Styles */
.custom-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}

/* ford align in one row*/
#successButtons {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center;
    margin-top: 10px;
    width: 100%; 
    box-sizing: border-box; 
}

.custom-modal-content {
background: #fff;
padding: 20px;
border-radius: 10px;
width: 400px;
text-align: center;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-modal-content h2 {
  color:rgb(26, 134, 228);
  font-size: 22px;
}

.custom-modal-content h3 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.custom-modal-content h1 {
  font-size: 32px;
  color: #333;
  font-family: barabara;
}

#categoryMessage {
    display: block;
    text-align: justify;
    margin: 10px;
    padding: 5px;
}


.custom-modal-content button.blue {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.custom-modal-content button.blue:hover {
  background-color: #0056b3;
}

.custom-modal-content button.green {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: green;
  color: white;
  cursor: pointer;
}

.custom-modal-content button.green:hover {
  background-color: darkgreen;
}



@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}
/* Government Modal Styles */
.govt-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}

.govt-modal-content {
background: #fff;
padding: 20px;
border-radius: 10px;
width: 400px;
text-align: center;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.govt-close {
position: absolute;
top: 10px;
right: 15px;
font-size: 25px;
cursor: pointer;
color: #333;
}

.govt-close:hover {
color: red;
}

/* Input Fields */
.govt-input {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #333;
border-radius: 5px;
}

.govt-input-file {
width: 100%;
margin-top: 10px;
}

/* Button */
.govt-button {
background-color: #007BFF;
color: white;
border: none;
padding: 10px;
width: 100%;
cursor: pointer;
border-radius: 5px;
margin-top: 10px;
}

.govt-button:hover {
background-color: #0056b3;
}

.red {
  color: red;
}

button {
  font-size: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f0f4f8;
  cursor: pointer;
  text-align: center;
  margin: 5px;
  transition: all 0.2s;
  display: block; 
  width:100%;
  box-sizing: border-box;
}

/* Grid Layout */
.container {
  display: grid;
  grid-template-columns: 300px 1fr 700px;
  gap: 10px;
  min-height: 100vh;
  padding: 20px;
}

/* Logo */
.category-logo {
  display: block;
  width: 150px; 
  margin: 25px auto 25px; 
}

.title {
    margin: 0 0 50px 0;
    text-align: center;
    color: #333;
}

/* Left Panel */
.category-panel {
  font-size: 12px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 100%;
  transition: all 0.5s ease;
}

/* Animation for moving back to original position */
.category-panel.move-back {
    transition: all 0.5s ease; /* Smooth transition */
    transform: translateY(0); /* Reset any translation */
}

.category-panel h3{
   font-size: 18px;
  color: #333;
  font-weight: bold;
  padding-top: 40px;
  padding-bottom: 20px;
}

/* Fullscreen Centered Panel */
.category-panel.centered {
    position: fixed; /* Fixed position to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(255, 255, 255, 0.9); /* Optional: semi-transparent background */
    z-index: 1000; /* Ensure it appears above other content */
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    padding: 0; /* Remove padding for fullscreen */
    border-radius: 0; /* Remove border radius for fullscreen */
    box-shadow: none; /* Remove shadow for fullscreen */
}



.category-btn {
  position: relative;
  font-size: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f0f4f8;
  cursor: pointer;
  text-align: left;
  margin: 5px 0;
  transition: all 0.2s;
  color: #333;
}

.category-btn.active {
  background: #3498db;
  color: white;
}

/* Tooltip */
.category-btn .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.category-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Form Container */
.form-container {
  font-size: 12px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: #4a5568;
}

input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
}

button[type="submit"] {
  background: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

/* Right Panel - Table */
.data-table {
  font-size: 12px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: fit-content;
  max-height: 90vh;
  overflow-y: auto;
  position: sticky;
  top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #3498db;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.update-btn {
  background-color: #2ecc71;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  color: white;
  cursor: pointer;
}

.delete-btn {
  background-color: #e74c3c;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  color: white;
  cursor: pointer;
}

.submit-all-btn {
  background-color: #27ae60;
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

/* Responsive Fix */
@media (max-width: 1200px) {

  .container {
    grid-template-columns: 1fr;
    
  }
  
  .data-table {
    position: static;
    max-height: none;
  }
}

@media (max-width: 600px) {
  
  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .form-group {
    width: 100%;
  }

  /* Prevent form elements from overflowing */
  input, select, textarea, button {
    max-width: 100%;
    width: 100%;
  }

  /* Adjust padding/margins if needed */
  .container {
    padding: 10px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  width: 30%;
  text-align: center;
}

.close-modal {
  margin-top: 10px;
  background: red;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

/* Government Modal */
.govt-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.govt-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.govt-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: #333;
}

.govt-close:hover {
  color: red;
}

.govt-input {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #333;
  border-radius: 5px;
}

.govt-button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

.govt-button:hover {
  background-color: #0056b3;
}

button:hover {
  background-color: #007BFF;
  color: white;
}

/* ford #e2e8f0*/
/* Style for dropdown */
select {
  appearance: none; /* Removes default styling */
  background-color: white;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 5px;
  color: #333;
  width: 100%;
  
  /* Add space for the custom arrow */
  padding-right: 30px;
  
  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%23333'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Style for date input */
input[type="date"] {
  appearance: none;
  background-color: white;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 5px;
  color: #333;
  th: 100%;
}

@font-face {
    font-family: 'barabara';
    src: url('fonts/barabara.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.barabara {
    font-family: 'Barabara', sans-serif;
    text-align: center;
}

#privatePurpose {
        height: 100px;
    }
    
#defaultButton {
  font-size: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f0f4f8;
  cursor: pointer;
  text-align: center;
  margin: 5px;
  transition: all 0.2s;
  display: block; 
  width:100%;
  box-sizing: border-box;
}

#defaultButton:hover {
  background-color: green;
}