:root {
    --bg-color: #ffffff;
    --glass-surface: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary-neon: #d946ef;
    --secondary-neon: #39ff14;
    --text-color: #000000;
    /* Solid Black Text */
    --text-muted: rgba(0, 0, 0, 0.6);
    --font-family: 'Outfit', sans-serif;
    --border-radius: 24px;
    --spacing: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* Diffuse Neon Background on White */
    background:
        radial-gradient(circle at 10% 20%, rgba(217, 70, 239, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.15) 0%, transparent 40%),
        #ffffff;
    background-attachment: fixed;
}


/* Glassmorphism Cards - Smooth Light Glass */
.menu-card,
.result-card,
.summary-card,
.stat-box,
input[type="text"],
.report-item {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    color: #000;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-top: 10px;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
    /* Set to Black */
}

.nav-btn {
    background: #e0e0e0;
    /* Solid light grey */
    border: none;
    color: #000000 !important;
    /* Force Black */
    width: 44px;
    /* Slightly larger */
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    /* Larger arrow */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.nav-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none !important;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.menu-card {
    padding: 35px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout for modern look */
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

/* Neon glow on hover/active */
.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-neon), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.menu-card:active {
    transform: scale(0.98);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-card:active::before {
    opacity: 0.1;
}

.menu-card .icon-placeholder {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix menu card text */
.menu-card span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Fix input text */
input[type="text"] {
    color: var(--text-color);
    padding: 20px;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Fix primary button text */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-neon), #a855f7);
    color: #fff;
    /* Keep white for primary button (purple bg) */
    border: none;
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(217, 70, 239, 0.4);
}

.action-btn {
    background: linear-gradient(135deg, var(--secondary-neon), #22c55e);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results */
.result-card {
    padding: 30px;
    margin-top: 20px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-ok {
    background: rgba(57, 255, 20, 0.2);
    color: var(--secondary-neon);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.status-bad {
    background: rgba(255, 50, 50, 0.2);
    color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.2);
}

.data-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: rgba(0, 0, 0, 0.6);
    /* Readable Grey */
    font-size: 0.9rem;
}

.data-row strong {
    font-size: 1.1rem;
    color: #000;
    /* Distinct Black */
}

/* Report */
.summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    /* Slightly darker inside */
    padding: 15px;
    border: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.list-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Hide Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.list-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: rgba(0, 0, 0, 0.05);
    /* Visible grey bg */
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    /* Black text */
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.filter-chip.active {
    background: var(--primary-neon);
    color: #fff;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
}

.report-item {
    margin-bottom: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left-width: 4px;
    border-left-style: solid;
}

.report-item.status-pendiente {
    border-left-color: #ff4d4d;
}

.report-item.status-al_dia {
    border-left-color: var(--secondary-neon);
}

.report-item.status-vence_este_mes {
    border-left-color: #ffd700;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
}