/* ================================
   UPD Frontend Dashboard (Optimized)
================================== */

.upd-dashboard,
.upd-frontend-wrap {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ===== Global Form Fields ===== */
.upd-dashboard input,
.upd-dashboard select,
.upd-dashboard textarea,
.upd-frontend-wrap input,
.upd-frontend-wrap select,
.upd-frontend-wrap textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.upd-dashboard textarea,
.upd-frontend-wrap textarea {
  min-height: 80px;
  resize: vertical;
}

form.upd-user-search {
    display: flex;
    gap: 30px;
}

/* ===== Buttons ===== */
.upd-dashboard button,
.upd-main-btn,
.upd-actions button {
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: #3F51B5;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.upd-dashboard button:hover,
.upd-main-btn:hover,
.upd-actions button:hover {
  opacity: 0.92;
}

.upd-actions button.upd-danger {
  background: #d63638;
}

div#solar-customer-wrap .header {
    text-align: CENTER;
    padding: 20px;
    font-size: 40px;
}


/* ================================
   FRONTEND TABS (New / List)
================================== */
.upd-front-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.upd-front-tab-btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.upd-front-tab-btn.active {
  background: #2271b1;
  color: #fff;
  border: none;
}

.upd-front-tab-content {
  display: none;
}

.upd-front-tab-content.active {
  display: block;
}

/* ================================
   NEW BOOKING UI (Card Grid)
================================== */
.upd-page-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.upd-page-head p {
  margin: 6px 0 18px 0;
  color: #666;
  font-size: 14px;
}

.upd-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.upd-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  flex: 1;
  min-width: 300px;
}

.upd-card-full {
  flex-basis: 100%;
}

.upd-card-title {
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 15px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
}

/* Form Rows */
.upd-row {
  margin-bottom: 12px;
}

.upd-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.upd-row-2col {
  display: flex;
  gap: 12px;
}

.upd-row-2col > div {
  flex: 1;
}

/* Upload grid */
.upd-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.upd-upload-item {
  flex: 1;
  min-width: 220px;
  border: 1px dashed #ddd;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
}

.upd-upload-item input[type="file"] {
     width: 80%;
    margin: 8px 2px;
}

/* Footer */
.upd-form-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================================
   Booking List Cards
================================== */
.upd-user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.upd-user-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  flex: 1;
  min-width: 280px;
  max-width: 380px;
}

.upd-user-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 800;
}

.upd-mini {
  font-size: 13px;
  color: #444;
  margin: 6px 0;
}

.upd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ================================
   Upload Progress Bar
================================== */
#updUploadStatus {
  width: 100%;
}

.upd-upload-text {
  font-weight: 700;
  margin-bottom: 6px;
}

.upd-progress-bg {
  width: 100%;
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.upd-progress-bar {
  width: 0%;
  height: 10px;
  background: #2271b1;
  transition: width 0.2s ease;
}

.upd-upload-percent {
  margin-top: 6px;
  font-size: 13px;
  color: #444;
}

/* ================================
   MODAL (Frontend)
================================== */
.upd-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  padding: 20px;
}

.upd-modal-box {
  background: #fff;
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.upd-modal-close {
position: absolute;
    right: 20px;
    top: 6px;
    background: #d63638;
    color: #fff;
    border: none;
    padding: 2px 6px;
    border-radius: 5px;
    cursor: pointer;
    width: 8%;
    height: 28px;
}

/* ================================
   Modal Tabs (Details / Docs)
================================== */
.upd-tab-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.upd-tab-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #f7f7f7;
  font-weight: 700;
}

.upd-tab-btn.active {
  background: #2271b1;
  color: #fff;
  border: none;
}

.upd-tab-content {
  display: none;
}

.upd-tab-content.active {
  display: block;
}

/* ================================
   Documents Grid (Modal)
================================== */
.upd-doc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.upd-doc-item {
  width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.upd-doc-item b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.upd-doc-preview {
  width: 100%;
  height: 140px;
  border: 1px solid #eee;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fafafa;
}

.is-uploading{
  opacity: 0.6;
  cursor: not-allowed;
  background: #4CAF50 !important;
}

.upd-doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.replace-image {
    margin: 20px 10px;
}
.replace-button{
  display: flex;
    justify-content: center;
}
.upd-doc-actions {
    display: flex;
    gap: 8px;
     flex-wrap: wrap;
  justify-content: center;
}

.upd-doc-actions a {
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.upd-doc-actions a.upd-primary {
  background: #2271b1;
  color: #fff;
  border: none;
}

.upd-small {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* ================================
   Table (if needed)
================================== */
.upd-table {
  width: 100%;
  border-collapse: collapse;
}

.upd-table th,
.upd-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

/* ================================
   Responsive
================================== */
@media (max-width: 600px) {
  .upd-dashboard,
  .upd-frontend-wrap {
    padding: 14px;
  }

  .upd-row-2col {
    flex-direction: column;
  }

  .upd-doc-item {
    width: 100%;
  }
}

/* ================================
   MOBILE RESPONSIVE (Best)
================================== */

@media (max-width: 992px) {

  /* Main container spacing */
  .upd-dashboard,
  .upd-frontend-wrap {
    padding: 16px;
    margin: 12px auto;
  }

  /* Cards full width */
  .upd-card,
  .upd-user-card {
    min-width: 100%;
    max-width: 100%;
  }

  /* Upload items full width */
  .upd-upload-item {
    min-width: 100%;
  }

  /* Docs item full width */
  .upd-doc-item {
    width: 100%;
  }

  /* Tabs wrap */
  .upd-front-tabs,
  .upd-tab-buttons {
    gap: 10px;
  }

  .upd-front-tab-btn,
  .upd-tab-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 600px) {

  /* Title size */
  .upd-page-head h2 {
    font-size: 18px;
  }

  .upd-page-head p {
    font-size: 13px;
  }

  /* Inputs smaller padding */
  .upd-dashboard input,
  .upd-dashboard select,
  .upd-dashboard textarea,
  .upd-frontend-wrap input,
  .upd-frontend-wrap select,
  .upd-frontend-wrap textarea {
    padding: 10px;
    font-size: 13px;
  }

  /* Two column row becomes single */
  .upd-row-2col {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons full width */
  .upd-main-btn,
  .upd-actions button,
  .upd-dashboard button {
    width: 100%;
    justify-content: center;
  }

  /* Booking list actions vertical */
  .upd-actions {
    flex-direction: column;
    gap: 8px;
  }

  /* Modal */
  .upd-modal-bg {
    padding: 12px;
  }

  .upd-modal-box {
    padding: 14px;
    border-radius: 14px;
    max-height: 92vh;
  }

  /* Close button */
  .upd-modal-close {
    width: 100%;
    margin-bottom: 12px;
  }

  /* Document preview height smaller */
  .upd-doc-preview {
    height: 160px;
  }
}

@media (max-width: 420px) {

  /* Very small devices */
  .upd-front-tab-btn,
  .upd-tab-btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  .upd-user-card h3 {
    font-size: 15px;
  }

  .upd-mini {
    font-size: 12px;
  }
}


/** mobile view open new tab **/

.upd-mobile-detail-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}

.upd-back-btn{
  background:#111 !important;
  color:#fff !important;
  border:none;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}


@media(max-width:768px){
  .upd-modal-bg{
    display:none !important;
  }
}

.upd-mobile-detail-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.upd-back-btn{
  background:#111 !important;
  color:#fff !important;
  border:none !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  cursor:pointer;
}

.upd-mobile-subtabs{
  display:flex;
  gap:10px;
  margin: 12px 0 16px 0;
}

.upd-mobile-subtab-btn{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#f7f7f7;
  font-weight:700;
  cursor:pointer;
}

.upd-mobile-subtab-btn.active{
  background:#2271b1;
  color:#fff;
  border:none;
}

.upd-mobile-subtab-content{
  display:none;
}
.upd-mobile-subtab-content.active{
  display:block;
}

/* Replace/Delete Buttons show properly */
.upd-doc-item button{
    width: 50%;
    padding: 6px 5px;
    border-radius: 999pc;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.upd-doc-replace-btn{
    background: #060606;
    color: #fff;
}

.upd-doc-delete-btn{
  background:#d63638;
  color:#fff;
}


/* ================================
   FORM CARD DESIGN (Inside Modal)
================================== */

.upd-flex-wrap{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.upd-card{
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 16px;
  flex: 1;
  min-width: 290px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.upd-card h2{
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 900;
  color: #111;
}

/* Inputs inside modal */
.upd-card input,
.upd-card select,
.upd-card textarea{
    width: 92%;
    padding: 8px 9px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.upd-card textarea{
  min-height: 80px;
  resize: vertical;
}

/** upload file **/

.upd-upload-item{
  width: 100%;
  max-width: 520px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upd-upload-item label{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* File input style */
.upd-upload-item input[type="file"],
.replace-image .upd-doc-replace-file{
    width: 92%;
    padding: 7px;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    transition: 0.2s ease;
}

/* Hover effect */
.upd-upload-item input[type="file"]:hover,
.replace-image .upd-doc-replace-file:hover{
  background: #eef2ff;
  border-color: #6366f1;
}

/* Focus */
.upd-upload-item input[type="file"]:focus,
.replace-image .upd-doc-replace-file:focus{
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

/* Chrome/Edge button */

.replace-image .upd-doc-replace-file::file-selector-button{
  padding: 8px 10px;
  margin-right: 10px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.upd-upload-item input[type="file"]::file-selector-button{
  padding: 10px 14px;
  margin-right: 10px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.upd-upload-item input[type="file"]::file-selector-button:hover{
  opacity: 0.9;
}

/* Firefox support */
.upd-upload-item input[type="file"]::-moz-file-upload-button{
  padding: 10px 14px;
  margin-right: 10px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* Upload file button row */
.upd-file-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.upd-file-btns input[type="file"] {
  flex: 1;
  min-width: 0;
}

/* Hidden camera input */
.upd-hidden-file {
  display: none !important;
}

/* Camera button label */
.upd-camera-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.upd-camera-btn:hover {
  background: #15803d;
}

/* Save button */
#updEditBookingForm button[type="submit"]{
  background: #f4b400 !important;
  color: #111 !important;
  border: none !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  cursor: pointer;
  min-width: 180px;
}

#updEditBookingForm button[type="submit"]:hover{
  opacity: 0.92;
}
/** edit image **/
.doc_img_preview{
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}


.doc_label{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 13px;
}

.no_file{
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-weight: 700;
  color: #6b7280;
}

.doc_open_btn{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/** ligin style **/

.solar-custom-login-wrap {
  max-width: 420px;
  margin: 20px auto;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
      display: flex;
    flex-direction: column;
}

/* Form */
.solar-custom-login-wrap form {
  margin: 0;
}

/* Labels */
.solar-custom-login-wrap label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

/* Inputs */
.solar-custom-login-wrap input[type='text'],
.solar-custom-login-wrap input[type='password'] {
 width: 95%;
  height: 30px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  outline: none;
  font-size: 14px;
  transition: 0.2s ease;
  background: #fff;
}

.solar-custom-login-wrap input[type='text']:focus,
.solar-custom-login-wrap input[type='password']:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}

/* Remember row */
.solar-custom-login-wrap .login-remember {
  margin: 12px 0;
}

.solar-custom-login-wrap .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Submit button */
.solar-custom-login-wrap input[type='submit'] {
    width: 95%;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: #8BC34A !important;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.solar-custom-login-wrap input[type='submit']:hover {
  opacity: 0.92;
}

/* Extra spacing */
.solar-custom-login-wrap p {
  margin: 0 0 14px;
}

/* Mobile */
@media (max-width: 480px) {
  .solar-custom-login-wrap {
    margin: 12px;
    padding: 16px;
  }
}