/* ############## ADMIN EDIT FORM ###############*/
.wrap .form-section {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  /* background: red; */
}

.wrap .form-section h2 {
  font-size: 1.25em;
  margin-top: 0;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 5px;
}

/* Field rows */
.wrap .form-field,
.wrap .field-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  /* background-color: yellowgreen; */
}

.wrap .form-field label,
.wrap .field-group label {
  width: 160px;
  font-weight: 600;
  margin-right: 10px;
  line-height: 1.5;
}

.wrap .form-field input[type="text"],
.wrap .field-group input[type="text"],
.wrap .form-field select,
.wrap .field-group select,
.wrap .form-field textarea,
.wrap .field-group textarea {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

/* File‐download link */
.wrap .file-download a {
  display: inline-block;
  padding: 6px 10px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}

.wrap .file-download a:hover {
  background: #f1f1f1;
}

/* Buttons */
.button-success {
  background: #46b450;
  border-color: #46b450;
  color: #fff;
}

.button-success:hover,
.button-success:focus {
  background: #159f40;
  border-color: #159f40;
  color: #fff;
}

.button-danger {
  background: #dc3232;
  border-color: #dc3232;
  color: #fff;
}

.button-danger:hover,
.button-danger:focus {
  background: #b82b2b;
  border-color: #b82b2b;
  color: #fff;
}

/* Tighten up the submit section */
.wrap .submit {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* ###### DASHBOARD FRONT-END ####### */
.aseef-dashboard {
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  max-width: 100%;
}

.aseef-dashboard h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

/* Summary Cards */
.aseef-dashboard .summary-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.aseef-dashboard .summary-card {
  flex: 1;
  min-width: 200px;
  background-color: #f4f6f8;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-card.total {
  background-color: #f0f0f0;
}

.summary-card.pending {
  background-color: #fff3cd;
}

.summary-card.approved {
  background-color: #d4edda;
}

.summary-card p:first-child {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.summary-card p:last-child {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

/* Table */

.table th {
  background: #f4f5f7;
  border-bottom: solid 1px #dfe1e6;
  text-align: center;
  border-right: none;
  /*border-top: solid 1px #DFE1E6;*/
}
table {
  border: none;
  border-radius: 10px;
}

.table-container {
  border-radius: 8px;
}

.table td,
th {
  padding: 10px;
  border-bottom: solid 1px #dfe1e6;
  text-align: center;
  border-right: none;
  color: #6b778c;
  white-space: nowrap;
}
.aseef-dashboard .table-container {
  overflow-x: auto;
}

/*.aseef-dashboard table {*/
/*    width: 100%;*/
/*    border-collapse: collapse;*/
/*    border: 1px solid #ccc;*/
/*    background-color: #fff;*/
/*    font-size: 14px;*/
/*}*/

/*.aseef-dashboard th,*/
/*.aseef-dashboard td {*/
/*    padding: 12px 14px;*/
/*    border: 1px solid #ddd;*/
/*    text-align: left;*/
/*    white-space: nowrap;*/
/*}*/

/*.aseef-dashboard thead {*/
/*    background-color: #e9ecef;*/
/*    color: #333;*/
/*    font-weight: bold;*/
/*}*/

/*.aseef-dashboard tbody tr:nth-child(even) {*/
/*    background-color: #f9f9f9;*/
/*}*/

/*.aseef-dashboard tbody tr:hover {*/
/*    background-color: #eef2f7;*/
/*}*/

/*.aseef-dashboard a {*/
/*    color: #0073aa;*/
/*    text-decoration: underline;*/
/*}*/

/*.aseef-dashboard a:hover {*/
/*    color: #005f8d;*/
/*}*/

/* Main Form Container */
.aseef-custom-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

input:invalid {
  /*border-color: #e74c3c;*/
}

.hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #666;
}

/* Messages */
.aseef-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.aseef-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.aseef-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Button */
button[type="submit"] {
  max-width: max-content;
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #0056b3;
}

/* body {
    background-color: red;
} */

.heading-User-form-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heading-User-form-details h2 {
  color: #3c3c3c;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.flex {
  display: flex;
}

.aseef-form-wrapper {
  margin: 30px;
}

/* Modified grid for the first section */
.first-section-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

/* Keep the original grid for professional details */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
  gap: 16px;
}

.grid h3 {
  display: block;
  grid-area: 2 / 1 / span 2 / span 3;
}

.form-actions {
  margin-top: 20px;
}

.details-heading {
  color: #3c3c3c;
  leading-trim: both;
  text-edge: cap;
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.6px;
  margin: 20px 0 0 0;
  padding: 20px 0 0 0;
  border-top: solid 1px #dfe1e6;
}

.form-field label {
  color: var(--neutral-light-n-200, #6b778c);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.64px;
}

.form-field input {
  border-radius: 8px;
  background: #f4f5f7;
  border: none;
}

.cancel {
  color: #5e6c84;
  padding: 0.75rem 1.5rem;
  background: #dfe1e6;
  border-radius: 8px;
}

/* Grid position classes for first 8 items */
.pos-3 {
  grid-column: span 2 / span 2;
}

.pos-4 {
  grid-column-start: 5;
}

.pos-5 {
  grid-column: span 2 / span 2;
  grid-row-start: 2;
}

.pos-6 {
  grid-column-start: 3;
  grid-row-start: 2;
}

.pos-7 {
  grid-column-start: 4;
  grid-row-start: 2;
}

.pos-8 {
  grid-column-start: 5;
  grid-row-start: 2;
}

.document {
  border-radius: 8px;
  background: #f4f5f7;
  width: 100%;
  padding: 7px 20px;
  cursor: pointer;
}

.document:hover {
  background: #dee5f3;
}

.document a {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Professional Details Grid Layout */
.professional-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.prof-pos-1 {
  grid-column: span 2 / span 2;
}

.prof-pos-2 {
  grid-column: span 2 / span 2;
  grid-column-start: 3;
}

.prof-pos-3 {
  grid-column: span 2 / span 2;
  grid-column-start: 5;
}

.prof-pos-4 {
  grid-column: span 2 / span 2;
  grid-row-start: 2;
}

.prof-pos-5 {
  grid-column: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 2;
}

.prof-pos-6 {
  grid-column: span 2 / span 2;
  grid-column-start: 5;
  grid-row-start: 2;
}

.prof-pos-7 {
  grid-column: span 4 / span 4;
  grid-row: span 1 / span 1;
  grid-row-start: 3;
}

/*----------------------------*/

.form-section.parent {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

/* Grid positioning classes */
.div1 {
  grid-column: span 4 / span 4;
}

.div2 {
  grid-column: span 4 / span 4;
  grid-column-start: 5;
}

.div3 {
  grid-column: span 4 / span 4;
  grid-column-start: 9;
}

.div4 {
  grid-column: span 2 / span 2;
  grid-row-start: 2;
}

.div5 {
  grid-column: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 2;
}

.div6 {
  grid-column: span 4 / span 4;
  grid-column-start: 5;
  grid-row-start: 2;
}

.div7 {
  grid-column: span 4 / span 4;
  grid-column-start: 9;
  grid-row-start: 2;
}

.div8 {
  grid-column: span 4 / span 4;
  grid-row-start: 3;
}

.div9 {
  grid-column: span 4 / span 4;
  grid-column-start: 5;
  grid-row-start: 3;
}

.div10 {
  grid-column: span 4 / span 4;
  grid-column-start: 9;
  grid-row-start: 3;
}

.div11 {
  grid-column: span 3 / span 3;
  grid-row-start: 4;
}

.div12 {
  grid-column: span 3 / span 3;
  grid-column-start: 4;
  grid-row-start: 4;
}

.div13 {
  grid-column: span 3 / span 3;
  grid-column-start: 7;
  grid-row-start: 4;
}

.div14 {
  grid-column: span 3 / span 3;
  grid-column-start: 10;
  grid-row-start: 4;
}

/*-----------------------------------------------------------------------------------------------*/

/*POPUP*/
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

/* Enhanced popup styling */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 9999;
  width: 400px;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.popup-title {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 22px;
  font-weight: 600;
}

.popup-message {
  margin: 0 0 25px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

/* Button styling class */
.btn {
  max-width: max-content;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 0 8px;
}

.btn-primary {
  max-width: max-content;
  background-color: #056bd2;
  color: white;
}

.btn-primary:hover {
  background-color: #0452a0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 107, 210, 0.2);
}

.btn-secondary {
  max-width: max-content;
  background-color: #f2f2f2;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-container {
  display: flex;
  justify-content: center;
}

.margin {
  margin: 20px;
}

/* Add this CSS to your stylesheet or in a <style> tag in your HTML */
button[type="submit"].btn.btn-primary,
button[type="submit"].btn.btn-secondary {
  /* Reset any existing styles that might be interfering */
  all: unset;
  box-sizing: border-box;
  max-width: max-content;
  /* New button base styles */
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  margin: 0 8px;
}

/* Primary button specific styles */
button[type="submit"].btn.btn-primary {
  background-color: #056bd2 !important;
  color: white !important;
}

button[type="submit"].btn.btn-primary:hover {
  background-color: #0452a0 !important;
  border-color: #0452a0 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 107, 210, 0.2);
}

/* Secondary button specific styles */
button[type="submit"].btn.btn-secondary {
  background-color: #f2f2f2 !important;
  color: #333 !important;
}

button[type="submit"].btn.btn-secondary:hover {
  background-color: #e0e0e0 !important;
  border-color: #d0d0d0 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
