/**
 * InsidePiano — Core: Color Scheme, Titles, Header, Content Layout,
 * Brand Tokens, Footer, Alerts, Responsive
 */

/* ============================================
   COLOR SCHEME
   ============================================ */

:root,
[data-bs-theme=light] {
    --app-main-bg: #161618 !important;
}

:root[data-bs-theme=dark] {
    --app-main-bg: #161618 !important;
    --bs-body-bg: #161618 !important;
}

.app-main {
    background-color: #161618 !important;
}

.app-content-wrapper {
    background-color: #161618 !important;
}

.app-sidebar,
.app-header,
.app-footer {
    background-color: #1F1F21 !important;
}

/* ============================================
   PAGE & SECTION TITLES
   ============================================ */

.page-title,
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-heading-color, #fff);
    margin-bottom: 0.5rem;
}

.page-title h1,
.page-title h2,
.section-title h2,
.section-title h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   HEADER
   ============================================ */

.app-sidebar-toggle {
    width: 44px !important;
    height: 44px !important;
}

.app-sidebar-toggle svg {
    width: 22px !important;
    height: 16px !important;
}

.app-header {
    display: flex !important;
    align-items: center !important;
}

.app-header-content-wrapper {
    min-height: 60px;
    align-items: center !important;
}

/* ============================================
   CONTENT LAYOUT & MODULE CARDS
   ============================================ */

.demo-card {
    background-color: #1F1F21 !important;
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.demo-card-body {
    background: transparent !important;
    flex: 1;
}

.demo-card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.moduletable {
    background-color: #1F1F21 !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.moduletable h3,
.moduletable .card-header,
.module h3 {
    padding: 1.5rem 2rem 1rem 2rem !important;
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.moduletable .card-body,
.moduletable > *:not(h3):not(.card-header),
.module > *:not(h3) {
    padding: 1.5rem 2rem 2rem 2rem !important;
}

.moduletable:not(:has(h3)) > *:first-child,
.module:not(:has(h3)) > *:first-child {
    padding-top: 2rem !important;
}

.content-top .moduletable,
.content-bottom .moduletable,
.content-top .module,
.content-bottom .module {
    background-color: #1F1F21 !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
}

.moduletable > div,
.module > div {
    padding: 2rem !important;
}

.moduletable h3 + div,
.module h3 + div {
    padding-top: 1rem !important;
}

.row.g-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.row.g-4 > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row.g-4.row-cols-xl-4 > *,
.row.g-4.row-cols-md-2 > * {
    flex: 1 1 0 !important;
    min-width: 250px !important;
    max-width: 100% !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .row.g-4.row-cols-xl-4 > * {
        flex: 1 1 calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem) !important;
        min-width: 300px !important;
    }
}

@media (max-width: 767px) {
    .row.g-4 > * {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

.row.g-4 > * {
    display: flex !important;
}

.moduletable,
.module {
    width: 100%;
}

.p-6 {
    padding: 2rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

/* ============================================
   CUSTOM BRAND TOKENS
   ============================================ */

:root {
    --ip-primary: #5F4AFE;
    --ip-accent: #844afe;
    --bs-body-font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.app-footer {
    background-color: #1F1F21;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 767px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: #939397;
    margin: 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a,
.footer-link {
    color: #939397;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.footer-nav .divider {
    color: rgba(147, 147, 151, 0.5);
}

/* Footer menu module (mod_menu renders a <ul>) */
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Bullet separator between items */
.footer-nav ul li + li::before {
    content: '\2022';
    color: rgba(147, 147, 151, 0.5);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION BELL v2 — Badge + Dropdown
   ═══════════════════════════════════════════════════════════════ */

/* Badge (numeric count) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background-color: #e2725b;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #1F1F21;
    pointer-events: none;
    box-sizing: content-box;
}

/* Dropdown container */
.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #1F1F21;
    border: 1px solid #2e2e33;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: hidden;
}
.notification-dropdown.show {
    display: block;
}

/* Dropdown rows */
.notification-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.notification-dropdown-item:hover {
    background-color: rgba(115, 103, 240, 0.15);
    text-decoration: none;
}
.notification-dropdown-item + .notification-dropdown-item {
    border-top: 1px solid #2e2e33;
}

/* Row label */
.notification-dropdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #939397;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.notification-dropdown-item:hover .notification-dropdown-label {
    color: #c8c8cd;
}

/* Row count */
.notification-dropdown-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2725b;
    min-width: 20px;
    text-align: right;
}

/* ============================================
   BREADCRUMB ALIGNMENT
   ============================================ */

/* Remove Bootstrap px-3 left padding so breadcrumb aligns with page title */
.mod-breadcrumbs.breadcrumb {
    padding-left: 0 !important;
}

/* ============================================
   CBSUBS PLANS PAGE — hide "Registrado" card
   ============================================ */
#cbregSubscr .cbregPlan:first-child {
    display: none !important;
}
