/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
 
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.validationHelp{
    color: crimson;
}

.card{
    margin-top: 20px;
}

#button{
    display:block;
    margin:20px auto;
    padding:10px 30px;
    /*background-color:#eee;*/
    border:solid #ccc 1px;
    cursor: pointer;
}
#overlay{
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height:100%;
    display: none;
    background: rgba(0,0,0,0.6);
}
.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}
@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}
.is-hide{
    display:none;
}





/* rtl css */
/* Uploaded File Display Styles for admin merchants form */
.uploaded-file-display {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.file-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 20px;
  color: #6c757d;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
 
}

.file-name {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
}

.file-actions .btn {
  font-size: 12px;
  padding: 4px 8px;
}

.file-actions .btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.file-actions .btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}

@media (max-width: 768px) {
  .file-details {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
  }
  
  .file-actions {
      width: 100%;
  }
}



.file-preview {
     border: 1px solid #ddd;
     padding: 8px;
     border-radius: 8px;
     text-align: center;
     background: #ffffff;
     height: 120px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     box-shadow: 0 1px 4px rgba(0,0,0,0.1);
     transition: all 0.3s ease;
     position: relative;
     margin-bottom: 10px;
   }
   
   .file-preview:hover {
     transform: translateY(-1px);
     box-shadow: 0 2px 8px rgba(0,0,0,0.15);
     border-color: #007bff;
   }
   
   .file-preview img {
     height: 50px;
     width: 50px;
     object-fit: cover;
     margin-bottom: 5px;
     border-radius: 4px;
   }
   
   .file-icon {
     font-size: 24px;
     color: #ffffff;
     margin-bottom: 5px;
     display: flex;
     align-items: center;
     justify-content: center;
     height: 50px;
     width: 50px;
     border-radius: 4px;
     background: linear-gradient(135deg, #007bff, #0056b3);
     border: none;
     box-shadow: 0 2px 4px rgba(0,123,255,0.3);
   }
   
   /* ألوان مختلفة لأنواع الملفات */
   .file-icon.ti-file-type-pdf {
     background: linear-gradient(135deg, #dc3545, #c82333);
     box-shadow: 0 2px 4px rgba(220,53,69,0.3);
   }
   
   .file-icon.ti-file-type-doc {
     background: linear-gradient(135deg, #28a745, #1e7e34);
     box-shadow: 0 2px 4px rgba(40,167,69,0.3);
   }
   
   .file-icon.ti-file-type-xls {
     background: linear-gradient(135deg, #ffc107, #e0a800);
     box-shadow: 0 2px 4px rgba(255,193,7,0.3);
     color: #212529;
   }
   
   .file-icon.ti-photo {
     background: linear-gradient(135deg, #6f42c1, #5a32a3);
     box-shadow: 0 2px 4px rgba(111,66,193,0.3);
   }
   
   .file-icon.ti-file {
     background: linear-gradient(135deg, #6c757d, #5a6268);
     box-shadow: 0 2px 4px rgba(108,117,125,0.3);
   }
   
   .file-name {
     font-size: 10px;
     word-break: break-word;
     color: #495057;
     font-weight: 500;
     line-height: 1.2;
     margin-bottom: 5px;
     flex: 1;
     display: flex;
     align-items: center;
     justify-content: center;
     max-height: 30px;
     overflow: hidden;
   }
   
   .remove-file-btn {
     position: absolute;
     top: 4px;
     right: 4px;
     width: 20px;
     height: 20px;
     padding: 0;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 10px;
     opacity: 0.8;
     transition: all 0.2s ease;
   }
   
   .remove-file-btn:hover {
     opacity: 1;
     transform: scale(1.1);
   }
   
   .remove-file-btn i {
     font-size: 10px;
   }
   
   /* Responsive adjustments */
   @media (max-width: 768px) {
     .file-preview {
       height: 100px;
       padding: 6px;
     }
     
     .file-icon {
       font-size: 18px;
       height: 40px;
       width: 40px;
     }
     
     .file-preview img {
       max-height: 40px;
       width: 40px;
       object-fit: cover;
     }
     
     .file-name {
       font-size: 9px;
       max-height: 25px;
     }
   }
   
   @media (max-width: 576px) {
     .file-preview {
       height: 90px;
       padding: 5px;
     }
     
     .file-icon {
       font-size: 14px;
       height: 35px;
       width: 35px;
     }
     
     .file-preview img {
       max-height: 35px;
       width: 35px;
       object-fit: cover;
     }
     
     .file-name {
       font-size: 8px;
       max-height: 20px;
     }
     
     .remove-file-btn {
       width: 18px;
       height: 18px;
       top: 3px;
       right: 3px;
     }
   }

/* Contract Section Styles */
.contract-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contract-checkbox-wrapper {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.contract-checkbox-wrapper .form-check {
  display: flex;
  align-items: center;
  margin: 0;
}

.contract-checkbox-wrapper .form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.contract-checkbox-wrapper .form-check-label {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.contract-checkbox-wrapper .form-check-label i {
  color: #007bff;
  font-size: 18px;
}

.contract-upload-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #dee2e6;
  margin-top: 15px;
}

.upload-container {
  width: 100%;
}

.upload-header {
  margin-bottom: 20px;
  text-align: center;
}

.upload-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-title i {
  color: #28a745;
  font-size: 18px;
}

.upload-description {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

/* File Input Wrapper Styles for Contract */
.contract-upload-section .file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.contract-upload-section .file-input-wrapper:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.contract-upload-section .file-input-wrapper input[type="file"] {
  flex: 1;
  padding-right: 140px;
  border: none;
  background: transparent;
}

.contract-upload-section .file-name-display {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 13px;
  color: #6c757d;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contract-upload-section .file-name-display.has-file {
  color: #495057;
  background-color: #e9ecef;
  font-weight: 500;
  border-color: #007bff;
}

/* Animations */
@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
      opacity: 1;
      transform: translateY(0);
  }
  to {
      opacity: 0;
      transform: translateY(-20px);
  }
}


.col-14p {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

/* Ù„Ù„Ø´Ø§Ø´Ø§Øª Ø§Ù„Ù…ØªÙˆØ³Ø·Ø© 768px ÙˆÙ…Ø§ ÙÙˆÙ‚ */
@media (min-width: 768px) {
  .col-14p {
      width: 14.666667%;
      flex: 0 0 14.666667%;
      max-width: 14.666667%;
  }
}

/* End File Display Styles for admin merchants form */

