/* ============================================================
   GUAXINIM.CSS — versão modernizada
   - Escala de raios de borda consistente (--radius-*)
   - Sombras suaves e em camadas, no lugar de sombras duras/diretas
   - Transições nos hovers para sensação mais fluida
   - Cores de destaque centralizadas em variáveis (--brand)
   ============================================================ */

:root {
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 10px 25px rgba(16, 24, 40, 0.12);
    --shadow-hover: 0 14px 30px rgba(16, 24, 40, 0.16);

    --pulseSize: 15px;
    --green: rgba(0, 231, 0, 0.65);
    --red: rgba(245, 50, 50, 0.65);
    --transparentBlue: rgba(95, 139, 250, 0);

    --brand: #32BDEA;
    --brand-soft: rgba(50, 189, 234, .18);
}

.table-hovered tbody tr:hover {
    background-color: rgba(255, 0, 0, 0.06);
    transition: background-color .2s ease;
}

/* ---------- CUSTOM FILE INPUT ---------- */
.custom-file {
    display: inline-block;
    margin-bottom: 0;
}

.custom-file,
.custom-file-input {
    position: relative;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
}

.custom-file-input {
    z-index: 2;
    margin: 0;
    opacity: 0;
}

.custom-file-input:focus~.custom-file-label {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem var(--brand-soft);
}

.custom-file-input:disabled~.custom-file-label,
.custom-file-input[disabled]~.custom-file-label {
    background-color: #eef1f5;
}

.custom-file-input:lang(en)~.custom-file-label:after {
    content: "Browse";
}

.custom-file-input~.custom-file-label[data-browse]:after {
    content: attr(data-browse);
}

.custom-file-label {
    left: 0;
    z-index: 1;
    height: calc(1.5em + .75rem + 2px);
    font-weight: 400;
    background-color: #fff;
    border: 1px solid #e1e5eb;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.custom-file-label,
.custom-file-label:after {
    position: absolute;
    top: 0;
    right: 0;
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
}

.custom-file-label:after {
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + .75rem);
    content: "Browse";
    background-color: #eef1f5;
    border-left: inherit;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- LOGIN ---------- */
.login {
    background-image: url("../images/bg_login.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.form-group {
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.form-horizontal .control-label {
    margin-bottom: 0;
    padding-top: 7px;
    color: #676E8A;
}

.btn-collapse:hover {
    cursor: pointer;
}

/* ---------- SELECT2 ---------- */
.select2-container--bootstrap .select2-selection--single {
    height: 45px;
    line-height: 45px;
    background: #ffffff;
    border: 1px solid #DCDFE8;
    font-size: 14px;
    color: #676E8A;
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 1px 24px 6px 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.select2-container--bootstrap .select2-selection--single:hover {
    border-color: var(--brand);
}

.select2-container--bootstrap.select2-container--focus .select2-selection--single {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem var(--brand-soft);
}

.select2-container--bootstrap .select2-selection--multiple {
    min-height: 45px;
    padding: 0;
    border-radius: var(--radius-sm);
    height: auto;
}

.load-info-user:hover {
    cursor: pointer;
}

.alert-secondary {
    color: #FFF;
    background-color: #FF7E41;
    border-color: #FF7E41;
    border-radius: var(--radius-sm);
}

.brighttheme-icon-notice {
    background-color: #2e2e00;
    color: #ffffa2;
    margin-top: 7px;
    border-radius: var(--radius-sm);
}

.brighttheme-icon-success {
    background-color: #104300;
    color: #aff29a;
    margin-top: 7px;
    border-radius: var(--radius-sm);
}

.brighttheme-icon-error {
    position: relative;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid #2e0400;
    font-size: 0;
    line-height: 0;
    color: #ffaba2;
    margin-top: 7px;
}

.brighttheme.ui-pnotify-container {
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.tox-tinymce {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}

span.link:hover {
    cursor: pointer;
    color: var(--brand);
}

/* ---------- NOTIFICATION DOTS ---------- */
.notification-dot,
.notification-dottarefas {
    position: absolute;
    right: 10px;
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 126, 65, 1);
    box-shadow: 0 0 0 0 rgba(255, 126, 65, 1);
    animation: pulsedot 2s infinite;
}

.notification-dot {
    bottom: 15px;
}

.notification-dottarefas {
    bottom: 5px;
}

@keyframes pulsedot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 126, 65, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 126, 65, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 126, 65, 0);
    }
}

.process-fav {
    position: absolute;
    top: 10px;
    right: 10px;
}

.process-fav:hover {
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s ease;
}

.bootstrap-select .dropdown-toggle .filter-option {
    position: static;
    top: 0;
    left: 0;
    float: left;
    height: 100%;
    width: 100%;
    text-align: left;
    overflow: hidden;
    flex: 0 1 auto;
    margin-bottom: 15px;
}

/* ---------- TABS ---------- */
.tab-content {
    width: 100%;
    border: 1px solid #e5e8ee;
    margin-top: -16px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: #fff;
}

.tab-pane {
    padding: 20px;
}

.nav-tabs .nav-link {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: background-color .2s ease, color .2s ease;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--brand);
    background-color: var(--brand);
    color: #FFF;
    box-shadow: var(--shadow-sm);
}

.bg-item {
    background-color: aliceblue;
    border-radius: var(--radius-lg);
}

.formdivtitle {
    color: var(--brand);
}

.fancyOpen,
.fancyOpenGOOGLE {
    color: var(--brand);
}

.fancyOpen:hover,
.fancyOpenGOOGLE:hover {
    cursor: pointer;
    color: var(--brand);
    opacity: .85;
}

/* ---------- CUSTOM CHECKBOX ---------- */
.customcheck {
    position: relative;
    padding-left: 35px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

.customcheck input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #d7dae0;
    border-radius: 6px;
    transition: background-color .2s ease;
}

.customcheck:hover input ~ .checkmark {
    background-color: #c4c9d1;
}

.customcheck input:checked ~ .checkmark {
    background-color: var(--brand);
    border-radius: 6px;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.customcheck input:checked ~ .checkmark:after {
    display: block;
}

.customcheck .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

a.list-group-item-danger,
a.list-group-item-success,
a.list-group-item-info {
    color: #fff !important;
    transition: color .2s ease;
}

a.list-group-item-danger:hover,
a.list-group-item-success:hover,
a.list-group-item-info:hover {
    color: #585858 !important;
}

/* ---------- CARDS ---------- */
.card {
    transition: transform .25s ease, box-shadow .25s ease;
    margin: 10px;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.dash-card .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    z-index: 99;
    text-decoration: none;
}

.search-line:hover td,
.search-linedash:hover td {
    cursor: pointer;
    color: rgba(255, 126, 65, 1.0);
    transition: color .2s ease;
}

.sub-card {
    height: 400px;
    overflow-y: auto;
}

.avatar-50 {
    height: 50px;
    width: 50px;
    line-height: 50px;
    min-width: 50px;
    border-radius: 50%;
}

.avatar-70 {
    height: 70px;
    width: 70px;
    line-height: 70px;
    min-width: 70px;
    border-radius: 50%;
}

.wow {
    margin-bottom: 10px;
}

/* ---------- STATUS PULSE (online/offline) ---------- */
.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-green,
.pulse-red {
    width: var(--pulseSize);
    height: var(--pulseSize);
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

.pulse-green {
    background: var(--green);
    box-shadow: 0 0 0 var(--green);
    animation: pulsing-green 2s infinite;
}

.pulse-green:hover {
    --green: rgba(209, 167, 160, .65);
    --transparentBlue: rgba(209, 167, 160, 0);
}

.pulse-red {
    background: var(--red);
    box-shadow: 0 0 0 var(--red);
    animation: pulsing-red 2s infinite;
}

.pulse-red:hover {
    --red: rgba(209, 167, 160, .65);
    --transparentBlue: rgba(209, 167, 160, 0);
}

.pulse-green:active,
.pulse-red:active {
    transform: scale(1);
}

@keyframes pulsing-green {
    from { box-shadow: 0 0 0 0 var(--green); }
    70% { box-shadow: 0 0 0 var(--pulseSize) var(--transparentBlue); }
    to { box-shadow: 0 0 0 0 var(--transparentBlue); }
}

@keyframes pulsing-red {
    from { box-shadow: 0 0 0 0 var(--red); }
    70% { box-shadow: 0 0 0 var(--pulseSize) var(--transparentBlue); }
    to { box-shadow: 0 0 0 0 var(--transparentBlue); }
}
