/*!
* Version: 1.2.0
* Template: Example Project
* Author: iqonic.design
* Design and Developed by: iqonic.design
* NOTE: This file contains the styling for Template.
*
*/
:focus {
  outline: none;
}

.sign-bg {
  position: absolute;
  left: 0;
  top: 0;
}
.sign-bg.sign-bg-right {
  left: auto;
  right: 0;
}

.gradient-main {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.login-bottom {
  margin-top: -12.5rem;
}

@media (min-width: 1400px) {
  .auth-card {
    padding: 0 6.25rem;
  }
}
@media (max-width: 575.98px) {
  .login-header {
    height: 12.5rem !important;
  }
  .login-bottom {
    margin-top: -6.25rem;
  }
}
.card .iq-dashed-border {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px dashed #ced4da;
}
.card .card-body .grid-flow-col {
  grid-auto-flow: column;
}
.card .card-body .iq-icon-box-2 {
  height: 36px;
  width: 36px;
  min-width: 36px;
  line-height: 36px;
  background: #F5F6FA;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
}
.card .card-body .iq-media-group-1 .iq-media-1 {
  margin-left: -1.25rem;
  position: relative;
  z-index: 0;
}
.card .card-body .iq-media-group-1 .iq-media-1:hover {
  z-index: 9;
}
.card .card-body .iq-media-group-1 .iq-media-1 img {
  border: 2px solid #eee;
}
.card .card-body .iq-media-group-1 .iq-media-1:first-child {
  margin-left: 0;
}
.card .card-body .iq-media-group-1 .iq-media.border {
  border: 2px solid #eee;
}
.card .card-body .iq-media-1 {
  display: inline-flex;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 0.25rem;
}
.card .card-body .iq-media-1:hover {
  text-decoration: none;
}

.pricing .table thead tr {
  background-color: unset;
}
.pricing .table th {
  border-top: none;
  border-bottom: 1px solid #eee;
}
.pricing .table td {
  border-top: none !important;
}
.pricing .table tr {
  border-bottom: 1px solid #eee;
}

.prc-box {
  background: rgb(215.6, 221.4, 250.4);
  padding: 15px;
  position: relative;
  border-radius: 0.5rem;
  cursor: pointer;
}

.type {
  position: absolute;
  background: #008efa;
  padding: 9px 25px;
  color: #fff;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
}
.type:before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  right: -15px;
  top: 0px;
  border-left: 15px solid rgb(11.6, 17.4, 46.4);
  border-top: 15px solid transparent;
}
.type:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  left: -15px;
  top: 0px;
  border-right: 15px solid rgb(11.6, 17.4, 46.4);
  border-top: 15px solid transparent;
}

.prc-box.active {
  background: #008efa;
}
.prc-box.active .h3 {
  color: #fff;
}
.prc-box.active .type {
  background: rgb(215.6, 221.4, 250.4);
  color: #212529;
}
.prc-box.active .type:before {
  border-left: 16px solid rgb(11.6, 17.4, 46.4);
  right: -16px;
}
.prc-box.active .type:after {
  border-right: 16px solid rgb(11.6, 17.4, 46.4);
  left: -16px;
}

.prc-wrap {
  border-bottom: none !important;
}

.child-cell.active {
  color: #008efa;
  stroke: #008efa;
}

.line-around {
  border-bottom: 1px solid #eee;
  line-height: 0.1em;
  margin: 10px 0 20px;
}
.line-around .line-around-1 {
  text-transform: uppercase;
  background: #fff;
  padding: 0 10px 0 0;
}

.iq-single-card {
  border-radius: 0 0.5rem 0.5rem 0;
}

@media (max-width: 767.98px) {
  .iq-single-card {
    border-radius: 0 0 0.5rem 0.5rem;
  }
}
.iq-star-inserted .iq-star-inserted-1.col {
  padding-right: unset;
}
.iq-star-inserted .iq-star-inserted-2 {
  z-index: 2;
}
.iq-star-inserted .iq-star-inserted-2.col {
  padding: unset;
}
.iq-star-inserted .iq-star-inserted-2.col .card {
  height: 100%;
}
.iq-star-inserted .iq-star-inserted-3.col {
  padding-left: unset;
}

@media (max-width: 991.98px) {
  .iq-star-inserted .card.my-5 {
    margin: unset !important;
    margin-bottom: 2rem !important;
  }
  .iq-star-inserted .iq-star-inserted-1.col {
    padding-right: calc(var(--bs-gutter-x) / 2);
  }
  .iq-star-inserted .iq-star-inserted-2.col {
    padding-right: calc(var(--bs-gutter-x) / 2);
    padding-left: calc(var(--bs-gutter-x) / 2);
  }
  .iq-star-inserted .iq-star-inserted-2.col .card {
    height: unset;
    margin-bottom: 2rem !important;
  }
  .iq-star-inserted .iq-star-inserted-3.col {
    padding-left: calc(var(--bs-gutter-x) / 2);
  }
}
.body-class-1 {
  scroll-behavior: smooth;
}

.main-img .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.main-img .container h1 {
  margin: 0;
  font-size: 4.375rem;
  color: #fff;
}
.main-img .container h1 span {
  padding: 0.375rem 0.875rem;
  display: inline-block;
}

.bd-heading-1 .bd-example {
  margin-top: 1rem;
}
.bd-heading-1 .bd-example:first-child {
  margin-top: 0rem;
}

.bd-cheatsheet {
  margin-top: -2rem;
}
.bd-cheatsheet section article .card.iq-document-card {
  padding: 1.5rem;
}
.bd-cheatsheet section article .card.iq-document-card .tab-content pre.language-markup {
  margin: unset;
}

.bd-aside.card.iq-document-card {
  padding: 1.5rem;
  margin-top: -2rem;
}

/* Table of contents */
.bd-aside a {
  padding: 0.25rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 0.25rem;
  color: rgba(138, 146, 166, 0.95);
  text-decoration: none;
}
.bd-aside a:hover, .bd-aside a:focus {
  background-color: rgba(58, 87, 232, 0.1);
}
.bd-aside .active {
  font-weight: 600;
  background-color: rgba(58, 87, 232, 0.1);
  color: #008efa;
}
.bd-aside .btn {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: #8A92A6;
  border: 0;
}
.bd-aside .btn .right-icon {
  transition: transform 0.35s ease;
}
.bd-aside .btn:hover, .bd-aside .btn:focus {
  background-color: rgba(58, 87, 232, 0.1);
  color: #008efa;
}
.bd-aside .btn:focus {
  box-shadow: 0 0 0 0.063rem rgba(58, 87, 232, 0.7);
}
.bd-aside .btn[aria-expanded=true] .right-icon {
  transform: rotate(90deg);
}

.scrollspy-example {
  position: relative;
  height: 12.5rem;
  margin-top: 0.5rem;
  overflow: auto;
}

[id=modal] .bd-example .btn,
[id=buttons] .bd-example .btn,
[id=tooltips] .bd-example .btn,
[id=popovers] .bd-example .btn,
[id=dropdowns] .bd-example .btn-group,
[id=dropdowns] .bd-example .dropdown,
[id=dropdowns] .bd-example .dropup,
[id=dropdowns] .bd-example .dropend,
[id=dropdowns] .bd-example .dropstart {
  margin-top: 0.5rem;
}

/* Layout */
@media (min-width: 1200px) {
  .body-class-1 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: auto;
  }
  .bd-aside.sticky-xl-top {
    top: 2rem !important;
  }
  .bd-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    grid-column: 1/span 3;
  }
  .sticky-xl-top {
    z-index: 2;
  }
  .bd-cheatsheet, .bd-cheatsheet section, .bd-cheatsheet article {
    display: grid;
    gap: 2rem;
    grid-template-columns: 3fr 1fr;
    grid-column: span 2/span 2;
    grid-template-rows: auto;
  }
  .bd-aside {
    grid-area: 1/1;
    scroll-margin-top: 4rem;
  }
  .bd-cheatsheet section, .bd-cheatsheet section > .iq-side-content {
    top: 2rem;
    scroll-margin-top: 0;
  }
  .bd-cheatsheet article, .bd-cheatsheet .bd-heading {
    top: calc(7.2rem + 2rem);
    scroll-margin-top: calc(7.8rem + 2rem);
  }
  .bd-cheatsheet .bd-heading {
    z-index: 1;
    order: 2;
  }
  .bd-cheatsheet .bd-heading .card {
    margin-bottom: 0;
  }
  .bd-cheatsheet article .iq-document-card {
    margin-bottom: unset;
  }
  .bd-cheatsheet article .iq-document-card.iq-doc-head {
    margin-top: -6.8rem;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .mobile-offcanvas {
    width: 40% !important;
  }
}
@media (max-width: 767.98px) {
  .main-img .container h1 {
    font-size: 3.125rem;
  }
}
@media (max-width: 1199.98px) {
  .header .container {
    max-width: unset !important;
  }
  aside.mobile-offcanvas {
    margin-top: unset !important;
  }
  aside.mobile-offcanvas .offcanvas-header {
    display: block;
  }
  .body-class-1 {
    padding: unset;
  }
  .body-class-1.container {
    max-width: unset;
  }
  #content .iq-side-content .card {
    margin-top: 1.25rem;
  }
  .mobile-offcanvas {
    visibility: hidden;
    transform: translateX(-100%);
    border-radius: 0;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1200;
    width: 75%;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.8392156863);
    -webkit-backdrop-filter: blur(0.5rem);
            backdrop-filter: blur(0.5rem);
  }
  .mobile-offcanvas.show {
    visibility: visible;
    transform: translateY(0);
  }
  .mobile-offcanvas .container, .mobile-offcanvas .container-fluid {
    display: block;
  }
}
@media (min-width: 1200px) {
  .bd-aside.card.iq-document-card, .bd-cheatsheet {
    margin-top: -3rem;
  }
  aside.mobile-offcanvas .offcanvas-header {
    display: none;
  }
  .bd-cheatsheet section .iq-side-content {
    grid-column-end: 3;
  }
  .bd-cheatsheet section .iq-side-content .card {
    margin-bottom: 0;
  }
}
body.offcanvas-active {
  overflow: hidden;
}

body.uikit .btn-download {
  display: none;
}

.uisheet.screen-darken {
  height: 100%;
  width: 0%;
  z-index: 30;
  position: fixed;
  top: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(33, 37, 41, 0.6);
  transition: opacity 0.2s linear, visibility 0.2s, width 2s ease-in;
}
.uisheet.screen-darken.active {
  z-index: 10;
  transition: opacity 0.3s ease, width 0s;
  opacity: 1;
  width: 100%;
  visibility: visible;
}

#back-to-top {
  display: inline !important;
}
#back-to-top .top {
  bottom: 1.563rem;
  right: 1.563rem;
  z-index: 999;
}

.middle {
  display: inline !important;
}
.middle .mid-menu {
  position: fixed;
  top: 9.375rem;
  left: 0rem;
  z-index: 999;
  text-align: center;
  cursor: pointer;
  background: #008efa;
  color: #fff;
  padding: 0.2rem;
  border-radius: 0 1rem 1rem 0;
}

.top-1 {
  top: 1rem;
}

/* Estilos personalizados para o calendário */

/* Modal de evento */
.modal-lg {
    max-width: 800px;
}

#eventModal .form-label {
    font-weight: 600;
    color: #495057;
}

#eventModal .form-control:focus,
#eventModal .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Seletor de cor */
.form-control-color {
    width: 60px;
    height: 38px;
    border-radius: 6px;
}

/* Checkboxes personalizados */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Seções do modal */
.modal-body .row {
    margin-bottom: 0.5rem;
}

#recurrenceOptions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Botões do modal */
.modal-footer .btn {
    min-width: 100px;
}

/* Toasts */
.toast {
    min-width: 300px;
}

.toast-body {
    font-weight: 500;
}

/* Calendário FullCalendar */
.fc-event {
    border-radius: 4px;
    border: none;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-event:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event-title {
    font-weight: 600;
}

/* Cores por prioridade */
.fc-event.priority-alta {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.fc-event.priority-media {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.fc-event.priority-baixa {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Toolbar do calendário */
.fc-toolbar {
    margin-bottom: 1rem;
}

.fc-toolbar-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #495057;
}

.fc-button-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
}

.fc-button-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.fc-button-primary:not(:disabled):active {
    background-color: #004085;
    border-color: #004085;
}

/* Header do calendário */
.fc-col-header-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Células do calendário */
.fc-daygrid-day {
    transition: background-color 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: #f8f9fa;
}

.fc-day-today {
    background-color: #e3f2fd !important;
}

/* Eventos de dia inteiro */
.fc-event.fc-event-start.fc-event-end {
    margin: 1px 2px;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .fc-button-group {
        display: flex;
        justify-content: center;
    }
    
    .fc-event {
        font-size: 11px;
    }
}

/* Loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .fas {
    animation: spin 1s linear infinite;
}

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

/* Tooltip personalizado */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* Badges para categorias */
.category-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    margin-right: 0.25rem;
}

.category-trabalho { background-color: #6f42c1; color: white; }
.category-pessoal { background-color: #20c997; color: white; }
.category-reuniao { background-color: #fd7e14; color: white; }
.category-compromisso { background-color: #e83e8c; color: white; }
.category-evento { background-color: #6610f2; color: white; }
.category-outro { background-color: #6c757d; color: white; }

/* Animações */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Melhorias no card do calendário */
.calendar-s {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para campos obrigatórios */
.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Grupo de campos relacionados */
.field-group {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid #007bff;
}

.field-group .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Estados de validação */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Fix para backdrop do modal */
.modal-backdrop {
    transition: opacity 0.15s linear;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Garantir que o body não fique com scroll bloqueado */
body.modal-open {
    overflow: hidden !important;
}

/* Fix para quando o modal é fechado */
body:not(.modal-open) {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* =============================================
   ESTILOS PARA TEMA ESCURO - CALENDÁRIO
   ============================================= */

body.dark .calendar-s {
    background: #222738;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Modal do calendário no tema escuro */
body.dark .calendar-modal .modal-content {
    background-color: #222738;
    border-color: #30384f;
    color: #8A92A6;
}

body.dark .calendar-modal .modal-header {
    border-bottom-color: #30384f;
}

body.dark .calendar-modal .modal-footer {
    border-top-color: #30384f;
}

body.dark .calendar-modal .form-control,
body.dark .calendar-modal .form-select {
    background-color: #151824;
    border-color: #30384f;
    color: #8A92A6;
}

body.dark .calendar-modal .form-control:focus,
body.dark .calendar-modal .form-select:focus {
    background-color: #151824;
    border-color: #008efa;
    color: #8A92A6;
    box-shadow: 0 0 0 0.25rem rgba(0, 142, 250, 0.25);
}

body.dark .calendar-modal .form-label {
    color: #8A92A6;
}

body.dark .calendar-modal #recurrenceOptions {
    background-color: #151824;
    border-left-color: #008efa;
}

/* Elementos específicos do FullCalendar no tema escuro */
body.dark .fc {
    background-color: #222738;
    color: #8A92A6;
}

body.dark .fc-toolbar-title {
    color: #8A92A6 !important;
}

body.dark .fc-col-header-cell {
    background-color: #222738 !important;
    color: #8A92A6 !important;
}

body.dark .fc-daygrid-day-number {
    color: #8A92A6;
}

body.dark .fc-daygrid-day:hover {
    background-color: #1a1f2e;
}

body.dark .fc-day-today {
    background-color: rgba(0, 142, 250, 0.1) !important;
}

/* Eventos no tema escuro */
body.dark .fc-event {
    border: none !important;
}

body.dark .fc-event:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Cores de prioridade para tema escuro - mais vibrantes */
body.dark .fc-event.priority-alta {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
}

body.dark .fc-event.priority-media {
    background-color: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #000 !important;
}

body.dark .fc-event.priority-baixa {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
}

/* Popover/tooltip no tema escuro */
body.dark .fc-popover {
    background-color: #222738 !important;
    border-color: #30384f !important;
    color: #8A92A6 !important;
}

body.dark .fc-popover .fc-header {
    background-color: #222738 !important;
    border-color: #30384f !important;
}

/* List view no tema escuro */
body.dark .fc-list-view {
    background-color: #222738;
}

body.dark .fc-list-event:hover {
    background-color: #1a1f2e;
}

body.dark .fc-list-event-title,
body.dark .fc-list-event-time {
    color: #8A92A6;
}

/* Time grid no tema escuro */
body.dark .fc-timegrid-axis {
    color: #8A92A6;
}

body.dark .fc-timegrid-slot {
    border-color: #30384f !important;
}

body.dark .fc-timegrid-slot-minor {
    border-color: rgba(48, 56, 79, 0.5) !important;
}

/* Seleção e highlight no tema escuro */
body.dark .fc-highlight {
    background: rgba(0, 142, 250, 0.3) !important;
}

/* Business hours no tema escuro */
body.dark .fc-nonbusiness {
    background: rgba(138, 146, 166, 0.1) !important;
}

/* Now indicator no tema escuro */
body.dark .fc-now-indicator {
    border-color: #008efa;
}

/* Toasts no tema escuro */
body.dark .toast {
    background-color: #222738;
    border-color: #30384f;
    color: #8A92A6;
}

body.dark .toast.bg-success {
    background-color: #27ae60 !important;
    color: #fff !important;
}

body.dark .toast.bg-danger {
    background-color: #e74c3c !important;
    color: #fff !important;
}

/* Badges no tema escuro */
body.dark .category-trabalho { background-color: #9b59b6; }
body.dark .category-pessoal { background-color: #1abc9c; }
body.dark .category-reuniao { background-color: #e67e22; }
body.dark .category-compromisso { background-color: #e91e63; }
body.dark .category-evento { background-color: #8e44ad; }
body.dark .category-outro { background-color: #95a5a6; }

/* Melhorias responsivas para tema escuro */
@media (max-width: 768px) {
    body.dark .fc-toolbar {
        background-color: #222738;
        border-bottom: 1px solid #30384f;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    body.dark .fc-toolbar-title {
        color: #8A92A6 !important;
    }
}
