/* =====================================================================
   NUMERA ADMIN THEME
   Mystical numerology-flavored skin on top of the Minia admin template.
   All original Minia classes are preserved; this file only re-styles
   colors, typography, and a handful of custom components.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --numero-deep: #1a0b2e;
    --numero-purple: #3d1e6d;
    --numero-purple-2: #2a1052;
    --numero-purple-soft: #4c2a83;
    --numero-gold: #d4af37;
    --numero-gold-light: #f2d675;
    --numero-mist: #b8a9d9;
    --numero-bg: #f7f4fc;
    --numero-card: #ffffff;
    --numero-border: #e7defa;
    --numero-text: #2a1052;
    --numero-text-muted: #8a7ba0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--numero-bg) !important;
    color: var(--numero-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
}

/* ---------------------------------------------------------------------
   Original custom.css rules (preserved)
   --------------------------------------------------------------------- */
.form-select option, table th, table td, .form-check-label, .form-label, input::placeholder, #sidebar-menu li, .page-title-box h4, .page-title-right ol li, footer, label{
    text-transform: capitalize;
}

#MessageError,#successMessage, #errorMessage{
    position: absolute !important;
    margin-top: 30px !important;
    z-index: 99999 !important;
    right: 10px !important;
    box-shadow: -3px 10px 10px 0px rgba(0,0,0,0.3) !important;
}

.drop-image img {
    max-width: 200px;
    max-height: 200px;
    display: none;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    object-fit: fill;
    border-radius: 10px;
}

.drop-image .remove-btn {
    display: none;
    margin-top: 0px;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

/* =====================================================================
   SIDEBAR — dark cosmic purple/gold
   ===================================================================== */
.vertical-menu {
    background: linear-gradient(180deg, var(--numero-deep) 0%, #150822 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.navbar-brand-box {
    background: linear-gradient(180deg, var(--numero-deep) 0%, #150822 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

#sidebar-menu ul li a {
    color: var(--numero-mist) !important;
    font-weight: 400;
    transition: all 0.2s ease;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li a:focus {
    color: var(--numero-gold-light) !important;
    background: rgba(212, 175, 55, 0.08);
}

#sidebar-menu ul li a i {
    color: var(--numero-gold);
    opacity: 0.85;
}

#sidebar-menu ul li.mm-active > a,
#sidebar-menu ul li.mm-active > a i {
    color: var(--numero-gold-light) !important;
    background: rgba(212, 175, 55, 0.12);
}

#sidebar-menu .menu-title {
    color: rgba(184, 169, 217, 0.55) !important;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-size: 0.72rem;
}

/* thin gold divider glow under logo */
.navbar-brand-box::after {
    content: "";
    display: block;
    height: 1px;
    margin: 0 20px;
    background: linear-gradient(90deg, transparent, var(--numero-gold), transparent);
    opacity: 0.4;
}

/* =====================================================================
   TOPBAR
   ===================================================================== */
#page-topbar {
    background: var(--numero-card);
    border-bottom: 1px solid var(--numero-border);
    box-shadow: 0 2px 10px rgba(61, 30, 109, 0.06);
}

.header-item {
    color: var(--numero-purple-2);
}

.header-item:hover {
    color: var(--numero-purple);
    background: rgba(212, 175, 55, 0.08);
}

.app-search .form-control {
    background: var(--numero-bg);
    border: 1px solid var(--numero-border);
}

.app-search .btn {
    background: var(--numero-purple);
    border-color: var(--numero-purple);
    border-radius: 0 20px 20px 0;
}

.bg-light-subtle {
    background: var(--numero-bg) !important;
}

.numero-avatar-ring {
    border: 2px solid var(--numero-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* =====================================================================
   PAGE TITLE / BREADCRUMB
   ===================================================================== */
.page-title-box h4 {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--numero-purple);
}

.breadcrumb-item.active {
    color: var(--numero-text-muted);
}

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.card-body {
    color: var(--numero-text);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--numero-purple) 0%, var(--numero-deep) 100%);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(61, 30, 109, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--numero-deep) 0%, var(--numero-purple) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: #efe9fb;
    border: 1px solid var(--numero-border);
    color: var(--numero-purple-2);
    border-radius: 10px;
}

.btn-secondary:hover {
    background: #e3d9f7;
    color: var(--numero-purple-2);
}

.btn-link {
    color: var(--numero-purple);
}

/* =====================================================================
   FORM CONTROLS
   ===================================================================== */
.form-control,
.form-select {
    border: 1px solid var(--numero-border);
    border-radius: 20px;
    background: #fdfcff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--numero-purple);
    box-shadow: 0 0 0 0.2rem rgba(61, 30, 109, 0.12);
}

.form-label {
    color: var(--numero-purple-2);
    font-weight: 500;
}

.numero-text-muted-small {
    text-transform: none;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--numero-text-muted);
}

/* =====================================================================
   TABLES
   ===================================================================== */
table th {
    color: var(--numero-purple-2);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.82rem;
    background: var(--numero-bg);
}

table td {
    color: var(--numero-text);
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    background: rgba(212, 175, 55, 0.06);
}

/* Users table avatar */
.numero-table-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--numero-gold);
}

.numero-table-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--numero-bg);
    border: 2px solid var(--numero-border);
    color: var(--numero-text-muted);
    font-size: 1.1rem;
}

/* Status switch (users table + forms) */
.form-check-input:checked {
    background-color: var(--numero-purple);
    border-color: var(--numero-purple);
}

.numero-status-toggle {
    cursor: pointer;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--numero-card);
    border-top: 1px solid var(--numero-border);
    color: var(--numero-text-muted);
}

.footer a {
    color: var(--numero-purple);
}

/* =====================================================================
   NUMBER-OF-THE-DAY WIDGET (dashboard)
   ===================================================================== */
.numero-widget {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: radial-gradient(ellipse at top right, var(--numero-purple) 0%, var(--numero-deep) 75%);
    color: #fff;
    padding: 28px 26px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(26, 11, 46, 0.25);
    margin-bottom: 24px;
}

.numero-widget-orb {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--numero-gold-light), var(--numero-gold) 55%, #a8842a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--numero-deep);
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.5);
    animation: numero-widget-pulse 3.5s ease-in-out infinite;
}

@keyframes numero-widget-pulse {
    0%, 100% { box-shadow: 0 0 26px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 38px rgba(212, 175, 55, 0.75); }
}

.numero-widget-text h5 {
    font-family: 'Cinzel', serif;
    color: var(--numero-gold-light);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.numero-widget-text p {
    color: var(--numero-mist);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 480px;
}

.numero-widget-glyphs {
    position: absolute;
    right: 18px;
    bottom: 10px;
    display: flex;
    gap: 10px;
    opacity: 0.18;
    font-size: 1.4rem;
}

@media (max-width: 575px) {
    .numero-widget {
        flex-direction: column;
        text-align: center;
    }

    .numero-widget-glyphs {
        display: none;
    }
}

/* =====================================================================
   COUPLE COMPATIBILITY REPORT
   ===================================================================== */

.numero-cc-form-card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-cc-form-card h5 {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--numero-border);
}

.numero-cc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

.numero-cc-form-grid .numero-cc-field-full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .numero-cc-form-grid {
        grid-template-columns: 1fr;
    }
}

#numero_generate_btn {
    margin-top: 8px;
}

#numero-report-error {
    display: none;
    border: 1px solid #f3c6c6;
    background: #fdf1f1;
    color: #a33;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

#numero-report-result {
    display: none;
}

.numero-report-section {
    margin-bottom: 34px;
}

.numero-section-title {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--numero-border);
}

.numero-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.numero-three-col {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .numero-two-col,
    .numero-three-col {
        grid-template-columns: 1fr;
    }
}

/* ---- Core numbers card ---- */
.numero-core-card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 20px 22px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-core-name {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--numero-border);
    text-transform: capitalize;
}

.numero-core-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.numero-core-label {
    color: var(--numero-text-muted);
}

.numero-core-value {
    color: var(--numero-purple-2);
    font-weight: 600;
}

/* ---- Lo Shu grid card ---- */
.numero-loshu-card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-loshu-title {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 0.85rem;
    margin-bottom: 14px;
    min-height: 2.4em;
}

.numero-loshu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--numero-purple-2);
    max-width: 220px;
    margin: 0 auto;
}

.numero-loshu-cell {
    border: 1px solid var(--numero-border);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--numero-purple);
    background: var(--numero-bg);
}

.numero-loshu-core {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--numero-text-muted);
    font-weight: 500;
}

/* ---- Recursive tree ---- */
.numero-tree-card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 18px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-tree-title {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.numero-tree-svg-wrap {
    width: 100%;
}

.numero-tree-svg {
    width: 100%;
    height: auto;
    display: block;
}

.numero-tree-node {
    fill: var(--numero-card);
    stroke: var(--numero-purple);
    stroke-width: 2;
}

.numero-tree-value {
    fill: var(--numero-purple-2);
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
    font-family: 'Cinzel', serif;
}

.numero-tree-label {
    fill: var(--numero-text-muted);
    font-size: 9px;
    text-anchor: middle;
    font-family: 'Poppins', sans-serif;
}

.numero-tree-arrow {
    fill: none;
    stroke: var(--numero-mist);
    stroke-width: 1.5;
}

.numero-tree-arrowhead {
    fill: var(--numero-mist);
}

/* ---- Pinnacle & challenge table ---- */
.numero-pinnacle-wrap {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-pinnacle-title {
    font-family: 'Cinzel', serif;
    color: var(--numero-purple-2);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.numero-pinnacle-table {
    margin-bottom: 0;
}

/* =====================================================================
   DYNAMIC NOTES TABLE (Excess/Missing planet notes)
   ===================================================================== */

.numero-dynamic-card {
    border: 1px solid var(--numero-border);
    border-radius: 14px;
    background: var(--numero-card);
    padding: 22px;
    box-shadow: 0 4px 18px rgba(61, 30, 109, 0.06);
}

.numero-dynamic-add-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.numero-dynamic-add-row select {
    flex: 1 1 320px;
}

.numero-dynamic-row {
    display: grid;
    grid-template-columns: 260px 1fr 90px;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--numero-border);
}

.numero-dynamic-row:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .numero-dynamic-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.numero-dynamic-key {
    font-weight: 600;
    color: var(--numero-purple-2);
    font-size: 0.85rem;
}

.numero-dynamic-value {
    color: var(--numero-text);
    font-size: 0.85rem;
    line-height: 1.5;
    text-transform: none;
}

.numero-dynamic-del {
    text-align: right;
}

.numero-dynamic-del-btn {
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.78rem;
}

.numero-dynamic-del-btn:hover {
    background: #d40000;
    color: #fff;
}

.numero-dynamic-empty {
    color: var(--numero-text-muted);
    font-style: italic;
    padding: 10px 0;
}
