/* Integração do painel com o tema Cuba. A estrutura vem do CSS original. */
.brand-lockup { display: inline-flex; align-items: center; max-width: 185px; }
.brand-lockup img { display: block; width: auto; max-width: 185px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }
.logo-icon-wrapper img, .sidebar-links .back-btn img { width: 32px; height: 32px; }
.panel-page-title { padding: 28px 0; }
.panel-page-title h1 { font-size: 24px !important; font-weight: 500; }
.welcome-note h6 { margin: 0; font-size: 15px; }
.welcome-note span { color: #777; font-size: 12px; }
.header-action { color: #2f2f3b; display: inline-flex; }
.header-action svg { width: 20px; height: 20px; }
.topbar-fire { width: 20px; height: 20px; object-fit: contain; margin-right: 8px; }
.notification-slider h6 { white-space: nowrap; }
.topbar-brand-text,.topbar-separator{flex:0 0 auto;font-size:14px}.topbar-separator{margin:0 6px;color:#777}.topbar-marquee{position:relative;overflow:hidden;white-space:nowrap;max-width:520px;min-width:0;flex:1}.topbar-marquee-track{display:block;min-width:0}.topbar-notice{display:none;overflow:hidden;color:#777;font-size:14px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;animation:topbarNoticeIn .45s ease both}.topbar-notice.is-active{display:block}.topbar-notice a{color:inherit;text-decoration:none}.topbar-notice a:hover{color:var(--theme-deafult)}@keyframes topbarNoticeIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.page-header .nav-menus .mode,
.page-header .nav-menus .notification-box,
.page-header .nav-menus .header-action { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.page-header .nav-menus .mode svg,
.page-header .nav-menus .notification-box svg,
.page-header .nav-menus .header-action svg { width: 19px; height: 19px; margin: 0; }
.profile-media img { width: 35px; height: 35px; object-fit: cover; border-radius: 10px; }
.page-wrapper .page-header .header-wrapper .nav-right.right-header .profile-media .media-body span { font-family: Rubik, sans-serif; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.page-wrapper .page-header .header-wrapper .nav-right.right-header .profile-media .media-body p { font-family: Rubik, sans-serif; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown { width: 160px; padding: 0 10px; }
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li { padding: 10px !important; }
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li a { display: flex; align-items: center; color: #2f2f3b; font-family: Rubik, sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; text-decoration: none; }
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li span { font-family: Rubik, sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li svg { width: 16px; height: 16px; margin-right: 10px; flex: 0 0 16px; }
.card.card-lg .card-body { padding: 24px; }
.btn-white { background: #fff; border: 1px solid #e6edef; color: #2f2f3b; }
.btn-white:hover { background: #f7f7fb; }
.app-action-buttons { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.app-action-buttons .btn { min-width: 76px; height: 34px; padding: 6px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; font-size: 13px; }
.app-action-buttons .btn i { font-size: 14px; line-height: 1; }
.app-action-buttons .btn-transparent { min-width: 68px; color: #2f2f3b; background: transparent; border-color: transparent; }
.app-action-buttons .btn-transparent:hover { color: var(--theme-deafult); background: rgba(115, 102, 255, .08); }
.btn > svg { width: 16px; height: 16px; vertical-align: -3px; }
.apps-table .badge { background: var(--theme-deafult) !important; color: #fff !important; }
.copy-code-badge { border: 0; cursor: pointer; font: inherit; line-height: 1; transition: background-color .2s ease, transform .2s ease; }
.copy-code-badge:hover { background: var(--theme-secondary) !important; transform: translateY(-1px); }
.copy-code-badge:focus-visible { outline: 2px solid rgba(115, 102, 255, .35); outline-offset: 2px; }
.copy-code-badge.is-copied { background: #54ba4a !important; }
.copy-direct-link { border: 0; margin-left: 5px; cursor: pointer; }
.copy-direct-link.is-copied { background: #54ba4a !important; }
.downloader-code-badge { display:inline-flex;align-items:center;gap:7px;border:0;border-radius:6px;padding:7px 11px;background:#f48120;color:#fff;font-weight:700;cursor:pointer; }
.downloader-code-badge:hover { background:#dc6e12;color:#fff; }
.downloader-code-badge i { font-size:14px; }
.mb-6 { margin-bottom: 1.5rem !important; }
.g-6 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.p-6 { padding: 1.5rem !important; }
.gap-6 { gap: 1.5rem !important; }
.text-secondary { color: #777 !important; }
.metric-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.35rem; }
.app-icon-preview { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: #f4f4f4; }
.app-icon-lg { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; background: #f4f4f4; }
.empty-state { border: 1px dashed #d8dbe5; border-radius: 10px; padding: 32px; text-align: center; }
.file-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border: 1px solid #e3e6ed; border-radius: 999px; color: #777; font-size: .8125rem; }
.app-hero { background: linear-gradient(110deg, rgba(115,102,255,.12), rgba(84,186,185,.14)); border-radius: 15px; }
.upload-progress-wrap { display: none; }
.upload-progress-wrap.is-visible { display: block; }
.auth-project-logo { display: inline-flex; align-items: center; justify-content: center; width: min(240px, 100%); min-height: 54px; }
.auth-project-logo img { display: block; width: auto; height: auto; max-width: 240px; max-height: 72px; object-fit: contain; }
.registration-main { width: 520px !important; }
.registration-main .form-check-input { width: 1rem; height: 1rem; margin-top: .2rem; }
.registration-main .form-check-label { font-size: 14px; }
.error-wrapper .error-brand { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.error-wrapper .error-brand img { display: block; width: auto; height: auto; max-width: 220px; max-height: 64px; object-fit: contain; }
.login-shell { min-height: 100vh; background-color: #f7f7fb; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #2f2f3b; font-size: 23px; font-weight: 600; }
.auth-brand img { width: 42px; height: 42px; }
.auth-card { max-width: 470px; margin: auto; border-radius: 10px; box-shadow: 0 0 37px rgba(8, 21, 66, .05); }
.auth-card .card-body { padding: 40px; }
.branding-card { height: calc(100% - 25px); }
.branding-preview { min-height: 130px; padding: 20px; border: 1px dashed #d8dbe5; border-radius: 8px; background: #f7f8f9; display: flex; align-items: center; justify-content: center; }
.branding-preview img { display: block; max-width: 240px; max-height: 90px; object-fit: contain; }
.login-main .alert { margin-bottom: 20px; }
.panel-flash-stack { position: fixed; top: 86px; right: 24px; z-index: 1085; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.panel-flash { pointer-events: auto; border: 0; border-radius: 8px; box-shadow: 0 8px 30px rgba(47,47,59,.18); margin-bottom: 10px; padding: 14px 42px 14px 16px; display: flex; align-items: center; gap: 10px; }
.panel-flash > svg { width: 19px; height: 19px; flex: 0 0 19px; }
.panel-flash > span { line-height: 20px; }
.panel-flash .btn-close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); margin: 0; padding: 8px; }
.login-main .form-group { margin-bottom: 18px; }
.login-main .form-group.mb-0 { margin-bottom: 0; }
.login-main .link { float: right; }
.table > :not(caption) > * > * { padding: .85rem .75rem; }
.widget-1 { background-image: none !important; position: relative; overflow: hidden; }
.widget-1::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 55%, rgba(115, 102, 255, .045)); }
.widget-1 .card-body { position: relative; z-index: 1; }

body.dark-only { background-color: #1d1e26; color: rgba(255,255,255,.8); }
body.dark-only .brand-lockup,
body.dark-only .header-action,
body.dark-only .auth-brand,
body.dark-only .auth-project-logo { color: #fff; }
body.dark-only .widget-1 { background-color: #262932 !important; background-image: none !important; }
body.dark-only .sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link svg.stroke-icon { stroke: rgba(255,255,255,.72) !important; }
body.dark-only .sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link svg.fill-icon { fill: rgba(255,255,255,.72) !important; }
body.dark-only .sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link.active svg.stroke-icon { stroke: var(--theme-deafult) !important; }
body.dark-only .sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link.active svg.fill-icon { fill: var(--theme-deafult) !important; }
body.dark-only .sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link span { color: rgba(255,255,255,.72) !important; }
body.dark-only .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li a { color: rgba(255,255,255,.75); }
body.dark-only .panel-flash { box-shadow: 0 8px 30px rgba(0,0,0,.35); }

@media (max-width: 575.98px) {
  .panel-flash-stack { top: 76px; right: 16px; left: 16px; width: auto; }
  .registration-main { width: 100% !important; }
}
body.dark-only .widget-1::after { background: linear-gradient(135deg, transparent 55%, rgba(115, 102, 255, .11)); }
body.dark-only .widget-1 .widget-content h4,
body.dark-only .widget-1 .widget-content span,
body.dark-only .panel-page-title h1 { color: rgba(255,255,255,.86); }
body.dark-only .btn-white { background: #262932; border-color: #374558; color: rgba(255,255,255,.8); }
body.dark-only .btn-white:hover { background: #1d1e26; }
body.dark-only .app-action-buttons .btn-transparent { color: rgba(255,255,255,.8); }
body.dark-only .app-action-buttons .btn-transparent:hover { background: rgba(115,102,255,.15); color: #fff; }
body.dark-only .empty-state,
body.dark-only .file-chip { border-color: #374558; color: rgba(255,255,255,.65); }
body.dark-only .app-icon-preview,
body.dark-only .app-icon-lg { background: #1d1e26; color: rgba(255,255,255,.8); }
body.dark-only .login-shell { background-color: #1d1e26; }
body.dark-only .auth-card,
body.dark-only .login-card .login-main { background-color: #262932; }
body.dark-only .branding-preview { background: #1d1e26; border-color: #374558; }
body.dark-only .login-main .theme-form input { background-color: #1d1e26; border-color: #374558; color: rgba(255,255,255,.8); }
body.dark-only .page-header .nav-menus .mode:hover,
body.dark-only .page-header .nav-menus .notification-box:hover,
body.dark-only .page-header .nav-menus .header-action:hover { background: #1d1e26; }

@media (max-width: 991.98px) {
  .welcome-note { display: none; }
  .panel-page-title { padding: 20px 0; }
}
