:root {
    --branco: #fff;
    --primary-color: #7323a9;
    --dark-color: #121212;
    --text-color: #e0e0e0;
    --secondary-color: #333333;
    --accent-color: #fd18f0;
    --header-height: 3rem;
    --nav-width: 68px;
    --z-fixed: 100;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
}

body {
    transition: .5s;
}

.roxo {
    color: var(--primary-color);
}

.bgDegrade {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

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

/*BOTÕES*/
.btn-roxo {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--branco);
    font-weight: 600;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
}

.btn-roxo:hover,
.btn-roxo:focus,
.btn-roxo:active {
    background-color: var(--accent-color);
    color: var(--branco) !important;
}

.btn-roxo:disabled {
    color: var(--text-color);
}

/*LOGIN*/

.container-login {
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.logo-login {
    width: 150px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.form button {
    align-self: flex-end;
}

.flex-column>label {
    color: #151717;
    font-weight: 600;
}

.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    transition: 0.2s ease-in-out;
    gap: .2rem;
}

.inputForm i {
    color: var(--primary-color);
}

.input {
    border-radius: 10px;
    border: none;
    width: 85%;
    height: 100%;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 1.5px solid var(--primary-color);
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.flex-row>div>label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.esqueci-minha-senha {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.button-submit {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.button-submit:hover {
    background-color: #252727;
}

.p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

/* NAVBAR */
.header {
    width: 100vw;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: var(--z-fixed);
    transition: .5s
}

.header_toggle {
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header_login {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.header_login img {
    width: 40px;
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--primary-color);
    color: var(--branco);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed);
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem;
    text-decoration: none;
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--branco)
}

.nav_logo-name {
    color: var(--branco);
    font-weight: 700
}

.nav_link {
    position: relative;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    transition: .3s;
    text-decoration: none;
}

.nav_link:hover {
    color: var(--branco)
}

.nav_icon {
    font-size: 1.25rem
}

.show-navbar {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem);
}

.active {
    color: var(--branco)
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_login {
        width: 40px;
        height: 40px
    }

    .header_login img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .show-navbar {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 160px);
    }
}

/* PAINEL INICIO */
.containerCardRelatorio {

    position: relative;
    border: 1px solid var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    border-radius: 15px;
    padding: 1rem;
    overflow: hidden;
}

.containerCardRelatorio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.containerCardRelatorio span {
    font-size: 1.5rem;
    font-weight: 700;
}

.containerCardRelatorio p {
    margin: 0;
}

.iconeRelatorio {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: var(--branco);
    font-size: 1.5rem;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
}

.instagram-link {
    color: #E4405F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.instagram-link:hover {
    color: #C13584;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* GERENCIAMENTO AGENDAMENTO */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.barbeiro-filter-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.barbeiro-filter-item.active .barbeiro-filter-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

.barbeiro-filter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barbeiro-filter-avatar.all-filter {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--branco);
    font-size: 24px;
}

.barbeiros-filter-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    overflow-x: auto;
    padding: .8rem 0;
}

.barbeiro-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--text-color);
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
}

.barbeiro-filter-item:hover {
    background-color: rgba(106, 13, 173, 0.1);
    border-color: rgba(106, 13, 173, 0.3);
    transform: translateY(-2px);
}

.barbeiro-filter-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.barbeiro-filter-item.active::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.barbeiro-filter-name {
    font-size: 12px;
    color: var(--dark-color);
    text-align: center;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barbeiro-filter-item.active .barbeiro-filter-name {
    color: var(--primary-color);
    font-weight: 600;
}

.loading-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    padding: 20px;
}

.loading-filter i {
    color: var(--primary-color);
    font-size: 18px;
}

.loading-filter span {
    font-size: 14px;
    color: #aaa;
}

.empty-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    padding: 20px;
    font-size: 14px;
}

.empty-filter i {
    font-size: 18px;
}

.fc-col-header-cell-cushion {
    color: var(--primary-color);
    text-decoration: none;
}

.fc-daygrid-day-number {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.fc-v-event .fc-event-main-frame {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: .5rem;
    width: 100% !important;
    align-items: center;
    justify-content: center;
}

.fc-timegrid-event .fc-event-time {
    font-weight: 700;
}

.fc-timegrid-col-events {
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem !important;
}

.fc .fc-button-primary,
.fc .fc-button-primary:active,
.fc .fc-button-primary:focus {
    background-color: var(--primary-color) !important;
    color: var(--branco) !important;
    border-color: var(--branco) !important;
    box-shadow: none !important;
}

.fc .fc-button-primary:hover {
    background-color: rgba(106, 13, 173, 0.808);
    border-color: var(--branco);
}

.fc .fc-button-primary:disabled {
    background-color: rgba(106, 13, 173, 0.5);
    border-color: var(--branco);
}

/* FUNCIONARIOS */
.cargo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cargo-input-group input {
    flex: 1;
}

.cargo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cargo-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--branco);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cargo-tag .remove-cargo {
    background: none;
    border: none;
    color: var(--branco);
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cargo-tag .remove-cargo:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#searchInput {
    max-width: 350px;
}

.image-upload-container {
    position: relative;
}

.image-upload-label {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-upload {
    aspect-ratio: 16/9;
    max-height: 120px;
}

.avatar-upload {
    aspect-ratio: 1;
    max-height: 120px;
    border-radius: 50%;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-preview {
    border-radius: 50%;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #7323a963;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 8px;
}

.image-upload-label:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 24px;
}

.upload-overlay span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*GALERIA*/
.gallery-card-info {
    padding: .5rem .8rem;
    display: flex;
    justify-content: space-between;
}

.container-foto-galeria {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary-color);
    border-radius: .8rem;
}

.gallery-image {
    border-radius: .8rem .8rem 0 0;
}


.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-description {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    border: 2px dashed #444;
    border-radius: 10px;
    background-color: #fd18f228;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.file-upload-label:hover,
.file-upload-label.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(106, 13, 173, 0.1);
    color: var(--primary-color);
}

.file-upload-label i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

.file-upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.file-upload-info {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
}

#imagePreviewContainer {
    text-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Image Preview */
.image-preview-container {
    margin-top: 20px;
}

.image-preview {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(106, 13, 173, 0.3);
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
}

.remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger-color), #EF5350);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-preview:hover {
    background: linear-gradient(135deg, #EF5350, var(--danger-color));
    transform: scale(1.1);
}

/* PERFIL PROFISSIONAL */
.profile-banner {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 30px #fd18f22c;
}

.profile-name {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item.full-width {
    flex-direction: column;
    gap: 10px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    min-width: 120px;
}

.info-label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
}

.info-value {
    font-size: 14px;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.info-item.full-width .info-value {
    text-align: left;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hours-item:hover {
    background-color: rgba(106, 13, 173, 0.1);
}

.hours-item.closed {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.hours-item .day {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.hours-item .time {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.hours-item.closed .time {
    color: var(--danger-color);
}

@media screen and (max-width: 767px) {

    .containerCardRelatorio {
        justify-content: center;
        align-items: center;
        height: 100%;
        text-align: center;
        gap: .5rem;
    }

    .iconeRelatorio {
        width: 35px;
        height: 35px;
        font-size: .8rem;
    }

    .containerCardRelatorio span {
        font-size: 1.1rem;
    }

    .containerCardRelatorio p {
        font-size: .7rem;
    }

    .fc .fc-toolbar {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .fc-toolbar-title {
        font-size: 1.3rem !important;
    }

    .profile-banner {
        height: 200px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-description {
        font-size: .8rem;
    }

    .profile-basic-info {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: .3rem;
    }

    .info-value {
        text-align: left;
    }

}

@media screen and (max-width: 991px) {

    .profile-basic-info {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: .3rem;
    }

    .info-value {
        text-align: left;
    }

}