@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-BlackIta.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-BoldIta.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-BookIta.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-LightIta.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-MediumIta.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-ThinIta.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-Ultra.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-UltraIta.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-XLLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham-XLLightIta.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-BoldItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-DemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-DemiBoldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-ExtraBlack.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-ExtraBlackIta.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Optima';
    src: url('/fonts/Optima-Roman.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --background-color: #e9e9e9;
    --primary-color: #172228;
    --primary-color-hover: #31414b;
    --primary-color-rgb: 23, 34, 40;
    --text-color: #000;
    --background-color-card: #fff;
    --text-color-button: #fff;
    --background-color-progress: #adb5bd;
    --background-color-option-hover: #eee;
    --border-color-option: #ddd;
    --switch-width: 45px; 
    --switch-height: 22.5px; 
    --switch-thumb-size: 18px;
    --switch-bg-on: var(--primary-color);
    --switch-bg-off: #adb5bd;
    --switch-thumb-color: #fff;
}

body.dark-theme {
    --background-color: #172228;
    --primary-color: #d8b8a1;
    --primary-color-hover: #e6ccba;
    --primary-color-rgb: 230, 204, 186;
    --text-color: #e0e0e0;
    --background-color-card: #31414b;
    --text-color-button: #000;
    --background-color-progress: #6c757d;
    --background-color-option-hover: #172228;
    --switch-bg-on: var(--primary-color);
    --border-color-option: #6c757d;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Optima';
}

.modal-content {
    background-color: var(--background-color);
}

.card {
    border: none;
    border-radius: 10px;
    background-color: var(--background-color-card);
}

.card-body {
    padding: 4rem 7rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gotham';
    color: var(--text-color);
}

p, label, span {
    color: var(--text-color);
}

.progress {    
    border-radius: 10px;
    height: 15px;
    background-color: var(--background-color-progress);
}

.progress-bar {
    transition: width 1s ease-in-out;
    width: 0%;
    background-color: var(--primary-color);
}

.spinner-color {
    opacity: 1;
    color: var(--primary-color);
}

.form-control,
.form-select {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color-option);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--primary-color-hover);
    box-shadow: 0 0 0 .25rem rgba(var(--primary-color-rgb), .50);
}

option {
    color: #000;
}

.form-check-input[type=checkbox] {
    border-color: #adb5bd;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-floating>.form-control-plaintext~label, 
.form-floating>.form-control:focus~label, 
.form-floating>.form-control:not(:placeholder-shown)~label, 
.form-floating>.form-select~label {
    color: var(--text-color);
    opacity: 0.9;
}

.form-floating>.form-control-plaintext~label::after, 
.form-floating>.form-control:focus~label::after, 
.form-floating>.form-control:not(:placeholder-shown)~label::after, 
.form-floating>.form-select~label::after {
    background-color: transparent;
}

.btn {
    padding: 0.55rem 1.2rem;
}

.btn-small {
    padding: 0.3rem 0.7rem;
}

.btn.btn-barber-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-button);
}

.btn.btn-barber-primary:hover, 
.btn.btn-barber-primary:focus, 
.btn.btn-barber-primary:active {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--text-color-button);
}

.preview-image {
    display: none; 
    max-width: 150px; 
    max-height: 150px; 
    margin-top: 20px;
}

.options-list {
    margin: 0 auto;
    border: 1px solid var(--border-color-option);
    border-radius: 5px;
    /*max-height: 276px;*/
    overflow-y: auto;
    padding: 0;
}
  
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color-option);
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
}
  
.option-item:last-child {
    border-bottom: none;
}
  
.option-item:hover {
    background-color: var(--background-color-option-hover);
}
  
.option-item input[type="radio"] {
    margin-left: auto;
    cursor: pointer;
}  
  
.option-item span {
    font-size: 16px;
    flex-grow: 1;
}
  
.option-item input[type="radio"] {
    pointer-events: none;
}

.option-grid {
    margin: 0 auto;
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
}

.option-item-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color-option);
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
}

.option-item-grid:hover {
    background-color: var(--background-color-option-hover);
}

.option-item-grid span {
    font-size: 16px;
    flex-grow: 1;
}

.option-item-grid input[type="radio"] {
    pointer-events: none;
}

@media (max-width: 900px) {
    .option-item-grid {
        width: 100%;
    }

    .card-body {
        padding: 2rem 1rem;
    }
}

::-webkit-scrollbar-track {
    background-color: var(--border-color-option);
    border-radius: 5px;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    border-radius: 5px;
    background-color: var(--border-color-option);
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--primary-color);
}


@media (max-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }

    #caracteristicas-resumo {
        font-size: 1rem;
    }

    .btn-100 {
        width: 100%;
    }
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.image-overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 40px;
    font-size: 42px;
    color: white;
    cursor: pointer;
}

.img-hover-zoom  {
	opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
    cursor: pointer;
}

.img-hover-zoom:hover  {
	opacity: .8;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    width: 20px; 
    height: 20px;
    margin-top: -6px;
}
  
.form-range::-moz-range-thumb {
    background: var(--primary-color);
    width: 20px; 
    height: 20px;
    margin-top: -6px;
}
  
.form-range::-ms-thumb {
    background: var(--primary-color);
    width: 20px; 
    height: 20px;
    margin-top: -6px;
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--primary-color-hover);
}

.form-range::-webkit-slider-thumb,
.custom-range:focus::-webkit-slider-thumb, 
.custom-range:focus::-moz-range-thumb,
.custom-range:focus::-ms-thumb {
    box-shadow: var(--primary-color-hover);
}

.me-30 {
    margin-right: 30px;
}

.bg-barber-primary {
    opacity: 1;
    background-color: var(--primary-color);
    color: var(--text-color-button)
}

.icon-close {
    cursor: pointer;
}

.icon-close::before {
    font-weight: bold !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: var(--switch-width);
    height: var(--switch-height);
    background-color: var(--switch-bg-off);
    border-radius: var(--switch-height);
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}

.switch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: var(--switch-thumb-size);
    height: var(--switch-thumb-size);
    background-color: var(--switch-thumb-color);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease-in-out;
}

.switch input {
    display: none;
}

.switch input:checked + .switch {
    background-color: var(--switch-bg-on);
}

.switch input:checked + .switch::before {
    left: calc(100% - 3px - var(--switch-thumb-size));
}
    
.loading {
    position: relative;
    width: 150px;
    height: 150px;
    background: #e0e0e0;
    overflow: hidden;
    display: none;
}
  
.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150px;
    height: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading-animation 1.5s infinite;
}
  
@keyframes loading-animation {
    0% {
        left: -150%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 150%;
    }
}

input:-webkit-autofill + label {
    -webkit-text-fill-color: black !important;
}

.image-selected-pdf {
    border: 2px solid #468bf1;
    box-shadow: #468bf1 0px 5px 15px;
}

.modal-backdrop + .modal-backdrop {
    z-index: 1052;
  }

  #modal-image-pdf  {
    z-index: 1051;
  }

  #modal-loading  {
    z-index: 1053;
  }

/* Estilo para os containers de upload */
.upload-container {
    margin-bottom: 1.5rem;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--bs-border-color);
    border-radius: 8px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bs-body-bg);
    margin-bottom: 1rem;
}

.upload-label:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--bs-primary);
}

.upload-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.preview-image {
    max-height: 200px;
    width: auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
} 

/* Estilos para o container de preview e botão de remoção */
.preview-container {
    position: relative;
    display: inline-block;
}

.preview-image {
    max-height: 200px;
    width: auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
} 

/* Estilos para o container de upload */
.upload-container {
    margin-bottom: 1.5rem;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color-option);
    border-radius: 8px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--background-color-card);
    margin-bottom: 1rem;
}

.upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.upload-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Estilos para o container de preview e botão de remoção */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-remove-image {
    display: none;
    margin-top: 5px;
    opacity: 1;
    font-size: 14px;
}

.preview-image {
    max-height: 200px;
    width: auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: var(--background-color-card);
}

.preview-image:hover {
    transform: scale(1.02);
}

/* Ajuste para o modo escuro */
body.dark-theme .upload-label {
    border-color: var(--border-color-option);
    background-color: var(--background-color-card);
}

body.dark-theme .upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

body.dark-theme .btn-outline-danger {
    color: #f8d7da;
    border-color: #f8d7da;
}

body.dark-theme .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* HEIC Loading Spinner */
.heic-loading {
    position: relative !important;
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 8px !important;
    min-height: 200px !important;
    width: 100% !important;
    display: block !important;
}

.heic-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: heic-spin 1s linear infinite;
    z-index: 10;
}

.heic-loading::after {
    content: 'Carregado...';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

@keyframes heic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark theme support for HEIC loading */
body.dark-theme .heic-loading {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

body.dark-theme .heic-loading::before {
    border-color: #4a5568;
    border-top-color: #3182ce;
}

body.dark-theme .heic-loading::after {
    color: #a0aec0;
} 