/* ===== Personal Claude - Tema Laranja Dark ===== */

:root {
    --primary-color: #e8722a;
    --primary-rgb: 232, 114, 42;
    --primary01: rgba(232, 114, 42, 0.1);
    --primary02: rgba(232, 114, 42, 0.2);
    --primary03: rgba(232, 114, 42, 0.3);
    --primary05: rgba(232, 114, 42, 0.5);
    --primary08: rgba(232, 114, 42, 0.8);
    --primary-border: rgba(232, 114, 42, 0.3);
}

/* Botoes primarios */
.btn-primary {
    background-color: #e8722a !important;
    border-color: #e8722a !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #d4631f !important;
    border-color: #d4631f !important;
}
.btn-outline-primary {
    color: #e8722a !important;
    border-color: #e8722a !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    background-color: #e8722a !important;
    border-color: #e8722a !important;
    color: #fff !important;
}
.btn-primary-light {
    background-color: rgba(232, 114, 42, 0.1) !important;
    color: #e8722a !important;
}
.btn-primary-light:hover {
    background-color: #e8722a !important;
    color: #fff !important;
}

/* Texto e links */
.text-primary {
    color: #e8722a !important;
}
a.text-primary:hover {
    color: #d4631f !important;
}

/* Badges */
.badge.bg-primary {
    background-color: #e8722a !important;
}
.badge.bg-primary-transparent,
.bg-primary-transparent {
    background-color: rgba(232, 114, 42, 0.1) !important;
    color: #e8722a !important;
}

/* Sidebar ativo */
.side-menu__item.active {
    color: #e8722a !important;
}
.side-menu__item.active .side-menu__icon {
    color: #e8722a !important;
}

/* Progress bars */
.progress-bar {
    background-color: #e8722a !important;
}

/* Forms focus */
.form-control:focus, .form-select:focus {
    border-color: #e8722a !important;
    box-shadow: 0 0 0 0.15rem rgba(232, 114, 42, 0.25) !important;
}

/* Bottom tabs */
.bottom-tab.active {
    color: #e8722a !important;
}

/* Agenda dia atual */
.agenda-day.is-today {
    border-color: #e8722a !important;
}
.agenda-day.is-today .day-header .day-name,
.agenda-day.is-today .day-header .day-date-full {
    color: #e8722a !important;
}

/* Links gerais */
a {
    color: #e8722a;
}

/* Spinner */
.spinner-border.text-primary {
    color: #e8722a !important;
}

/* Header logo */
.header-logo .text-primary {
    color: #e8722a !important;
}

/* Select2 */
.select2-container--bootstrap-5 .select2-selection--single:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #e8722a !important;
    box-shadow: 0 0 0 0.15rem rgba(232, 114, 42, 0.25) !important;
}

/* Avatar */
.avatar.bg-primary-transparent {
    background-color: rgba(232, 114, 42, 0.1) !important;
    color: #e8722a !important;
}

/* Dark mode ajustes */
[data-theme-mode="dark"] .bottom-tabs {
    background: #1a1d21;
    border-top-color: rgba(255,255,255,0.06);
}
[data-theme-mode="dark"] .bottom-menu-panel {
    background: #1a1d21;
}
[data-theme-mode="dark"] .bottom-menu-header {
    background: #1a1d21;
}
[data-theme-mode="dark"] .bottom-menu-item {
    color: #c0c5ce;
}
[data-theme-mode="dark"] .bottom-menu-item:hover {
    background: rgba(255,255,255,0.05);
}
[data-theme-mode="dark"] .btn-add-grupo {
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
}
[data-theme-mode="dark"] .btn-add-grupo:hover {
    border-color: #e8722a;
    color: #e8722a;
}

/* Fix: dropdown toggle - manter icone e texto visiveis ao abrir */
.modo-switch.dropdown-toggle::after {
    margin-left: 4px;
}
.modo-switch.dropdown-toggle,
.modo-switch.dropdown-toggle.show,
.modo-switch.dropdown-toggle i,
.modo-switch.dropdown-toggle.show i {
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    display: inline-flex !important;
}
.header-element .modo-switch.show {
    background: inherit;
    color: inherit;
}

/* Modo switch button */
.modo-switch {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 10px;
    color: var(--default-text-color, #333);
    background: transparent;
}
.modo-switch:hover {
    background: rgba(232, 114, 42, 0.08);
    border-color: #e8722a;
    color: #e8722a;
}
[data-theme-mode="dark"] .modo-switch {
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Notificacao badge */
.header-icon-badge {
    position: absolute;
    top: 12px;
    right: 8px;
    font-size: 9px;
    padding: 2px 5px;
}
