:root {
  --sidebar-bg-color: #334155;
  --sidebar-link-hover-color: #1E293B;
  --contant-bg-color: #f8f9fa;
}

/***************Flex column********************/
input:disabled,
textarea:disabled,
select:disabled,
button:disabled,
input[readonly],
textarea[readonly],
select[readonly],
button[readonly] {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  border: 1px solid #ccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.ys-service-wrapper {
  margin: 0px auto;
  width: 100%;
  max-width: 1140px;
}

.ys-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
  box-sizing: border-box;
}

[class*="ys-col-"] {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 768px) {
  .ys-col-1 {
    width: 8.3333%;
  }

  .ys-col-2 {
    width: 16.6667%;
  }

  .ys-col-3 {
    width: 25%;
  }

  .ys-col-4 {
    width: 33.3333%;
  }

  .ys-col-5 {
    width: 41.6667%;
  }

  .ys-col-6 {
    width: 50%;
  }

  .ys-col-7 {
    width: 58.3333%;
  }

  .ys-col-8 {
    width: 66.6667%;
  }

  .ys-col-9 {
    width: 75%;
  }

  .ys-col-10 {
    width: 83.3333%;
  }

  .ys-col-11 {
    width: 91.6667%;
  }

  .ys-col-12 {
    width: 100%;
  }
}

.ys-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.help-text {
  display: block;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6b7280;
  max-width: 48rem;
  word-break: break-word;
  margin-top: 0;
}

/**************Error & Success MSG****************/
.ys-flash,
.ys-alert {
  position: relative;
  transition: opacity 0.4s ease;
}

.ys-message-content {
  background: #fff;
  padding: 10px;
  /* border-radius: 10px; */
  text-align: left;
  width: -webkit-fill-available;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  display: block;
  margin: 10px 0;
  font-family: ui-monospace;
}

.success .ys-message-content {
  border-left: 5px solid #28a745;
}

.error .ys-message-content {
  border-left: 5px solid #dc3545;
}

.ys-flash .ys-flash-close {
  padding: 0;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: red;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.ys-flash .ys-flash-close:hover {
  opacity: 1;
}

.ys-flash.fade-out {
  opacity: 0;
}

.ys-link {
  display: inline-block;
  background-color: #0073e6;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ys-link:last-child {
  margin-bottom: 0;
}

/************* Input *********************/
body .ys-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.2s ease-in-out;
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

body .ys-btn-danger{
  background-color: red;
}

body .ys-input {
  display: block;
  /* ensures full-width and new line */
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  margin-bottom: 16px;
  /* spacing below each input */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

/* Focus state */
body .ys-input:focus {
  border-color: #0073aa;
  /* WP blue */
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}

/* File input tweaks */
body .ys-input[type="file"] {
  padding: 6px;
}

/* Submit button */
body .ys-submit {
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.2s ease-in-out;
}

body .ys-submit:hover {
  color: #fff;
}

body .ys-submit:hover {
  background: #005f8d;
}

/* Label styling */
body .ys-form label {
  font-weight: 600;
  display: block;
  font-size: 14px;
}

.ys-password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.ys-toggle-password {
  position: absolute;
  top: 38%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #666;
  font-size: 18px;
}

.ys-toggle-password:hover{
  background-color: inherit;
}

/**************Dashboard****************/
.fud-dashboard {
  display: flex;
  min-height: 80vh;
  font-family: sans-serif;
  margin: 1em auto;
  width: 100%;
  min-width: 1140px;
}

.fud-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--sidebar-bg-color);
  color: #fff;
  /* padding: 20px; */
}

.fud-sidebar h3 {
  margin-bottom: 20px;
}

.fud-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body .fud-sidebar li {
  border-bottom: 1px solid;
}

body .fud-sidebar li a.active {
  background: var(--sidebar-link-hover-color);
}

body .fud-sidebar a {
  color: #fff;
  display: block;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 15px;
}

.fud-sidebar a:hover {
  /* color: #ffd700; */
  background: var(--sidebar-link-hover-color);
}

.fud-content {
  flex: 1;
  padding: 30px;
  padding-top: 15px;
  background: var(--contant-bg-color);
}

.dash-action {
  background: var(--sidebar-bg-color);
  text-align: center;
  padding: 15px 10px;
}

.dash-action a {
  text-decoration: none !important;
  color: #fff;
}

.dash-action a:hover {
  color: #fff;
}

.dash-top {
  margin-bottom: 4rem;
}

/*************DT Tables***************/

.dataTables_length,
.dataTables_filter {
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
}

.dataTables_length label,
.dataTables_filter label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

body .dataTables_paginate a.paginate_button {
  border: 1px solid #007bff !important;
  color: #007bff !important;
  padding: 6px 12px;
  margin: 0 2px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;

}

body .dataTables_paginate a.paginate_button:hover:not(.disabled) {
  background-color: #007bff !important;
  color: #fff !important;
}

body .dataTables_paginate a.paginate_button.current {
  background-color: #007bff !important;
  color: #fff !important;
  border: 1px solid #007bff !important;
}

body .dataTables_paginate a.paginate_button.disabled {
  border: 1px solid #ccc !important;
  color: #aaa !important;
  background-color: transparent !important;
}

body .dataTables_wrapper .dataTables_length select {
  min-width: 53px;
}

/*********Loader************/
#cover-spin {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: none;
}

#cover-spin::after {
  content: '';
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: black;
  border-top-color: transparent;
  border-width: 4px;
  border-radius: 50%;
  -webkit-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===== Modal Base ===== */
.ys-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 999;
  overflow-y: auto;
  padding: 1rem;
}

.ys-modal__content {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: ysModalFadeIn 0.3s ease;
  margin: auto;
}

.ys-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ys-modal__close:hover {
  color: #000;
}

.ys-modal__header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.ys-modal__header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.ys-modal form p {
  margin-bottom: 1rem;
}

.ys-modal input,
.ys-modal textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 0;
}

.ys-modal select {
  margin-bottom: 0;
}


@keyframes ysModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*************Login And Register *********************/
.ys_register p,
.ys_register h2 {
  text-align: center;
  margin-top: 10px;
}

.ys_register {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
  margin: 50px auto;
  color: black;
}

body .ys_register .ys-input {
  max-width: 100%;
}

/* === Generic Card Wrapper === */

.ys-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ys-card .card-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.ys-card .status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  text-transform: capitalize;
  background-color: var(--sidebar-bg-color);
}

.ys-card .card-body {
  background: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.ys-card [class*="ys-col-"] {
  margin-bottom: 0.5rem;
}

.ys-card [class*="ys-col-"]:last-of-type {
  margin-bottom: 0;
}

/* === Pagination == */
.ys-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
}



/****************Review & Rattings**********************/
.ys-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 1em;
}

.ys-stars i {
  color: #ccc;
  transition: color 0.2s;
  margin: 0 2px;
}

.ys-stars i.active,
.ys-stars i.hover {
  color: #f5b301;
}

.ys-review-display {
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  text-align: left;
}

.ys-review-display .ys-stars {
  color: #f5b301;
  font-size: 16px;
  margin-bottom: 4px;
}

.ys-review-display .ys-review-text {
  color: #333;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 6px 0;
}


/****************Site CSS**********************/
.page-id-2719 #masthead,
.page-id-2720 #masthead,
.page-id-2721 #masthead {
  position: relative;
}

article.post-2719,
article.post-2720,
article.post-2721 {
  background-color: inherit !important;
  padding: 0em 6.67em !important;
}

article.post-2719 header,
article.post-2720 header,
article.post-2721 header {
  display: none;
}

.ys_register {
  margin: 0px auto;
  padding: 15px 20px;
}

.fud-dashboard {
  margin: 1em auto !important;
}

body .w-100 {
  width: 100%;
}

body .fud-dashboard .button-primary {
  margin: 1em 0;
}


.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.offer-card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-body p {
  font-size: 13px;
  color: #555;
  margin: 4px 0;
}

.button-actions .ys-link.accept {
  background-color: #28a745;
}

.button-actions .ys-link.decline {
  background-color: red;
}

.button-actions .ys-link {
  padding: 8px 10px;
}

.mt-1 {
  margin-top: 1em;
}

.fud-dashboard hr {
  margin: 1.5em 0;
}

/* === Responsive === */
@media only screen and (max-width: 600px) {
  .ys-service-wrapper {
    padding: 0px 20px;
  }

  .ys_register {
    width: 90%;
    margin: auto;
  }

  .ys-card .card-grid {
    grid-template-columns: 1fr;
  }

  .ys-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  article.post-2719,
  article.post-2720,
  article.post-2721 {
    background-color: inherit !important;
    padding: 1em !important;
  }
}