/* Dashboard / Command Center Styles for RexaKit Home */

/* --- SYSTEM MONITOR PANEL --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.monitor-panel {
    background: #000;
    border: 4px solid #333;
    padding: 2.5rem;
    /* Increased padding */
    color: #33ff00;
    font-family: 'VT323', monospace;
    position: relative;
    box-shadow: 0 0 15px rgba(51, 255, 0, 0.1);
}

.monitor-header {
    border-bottom: 2px solid #33ff00;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
    font-size: 1.2rem;
}

.monitor-label {
    opacity: 0.8;
}

.monitor-value {
    font-weight: bold;
    text-shadow: 0 0 5px #33ff00;
}

/* Status Lights */
.status-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 5px #333;
    vertical-align: middle;
}

.status-light.active {
    background: #33ff00;
    box-shadow: 0 0 10px #33ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Bar Charts (CSS) */
.stat-bar-container {
    background: #111;
    height: 24px;
    width: 100%;
    border: 2px solid #33ff00;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(45deg,
            #33ff00,
            #33ff00 10px,
            #22aa00 10px,
            #22aa00 20px);
    width: 0%;
    /* Width will be set inline for effect */
    transition: width 1.5s ease-out;
    box-shadow: 0 0 10px #33ff00;
}

/* --- INSTALLED MODULES (TOOLS GRID) --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    color: #000;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.module-card {
    background: #fff;
    border: 4px solid #000;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
    box-shadow: 8px 8px 0 #000;
}

.module-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
    background: #ffffcc;
    background: #ffffcc;
    /* Retro Highlight */
    text-decoration: none;
}

.module-card:hover .module-title,
.module-card:hover .module-desc {
    text-decoration: none;
}

.module-icon-area {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0 #ccc;
    padding: 10px;
}

.module-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.module-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.module-desc {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.module-cta {
    margin-top: auto;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    border: none;
    text-transform: uppercase;
}

.module-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0055;
    border: 2px solid #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    font-family: 'Press Start 2P', cursive;
    transform: rotate(5deg);
    box-shadow: 3px 3px 0 #000;
}

/* --- KNOWLEDGE BASE (SEO CONTENT) --- */
.kb-section {
    background: #fff;
    border: 4px solid #000;
    padding: 3rem;
    margin-bottom: 40px;
    box-shadow: 10px 10px 0 #000;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.kb-article {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border: 2px dashed #ccc;
    transition: border-color 0.2s;
}

.kb-article:hover {
    border-color: #000;
    background: #fafafa;
}

.kb-icon {
    font-size: 2rem;
    background: #000;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #000;
}

.kb-content h3 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.5;
    margin-bottom: 10px;
}

.kb-content p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #333;
    font-family: 'VT323', monospace;
    line-height: 1.4;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kb-grid {
        grid-template-columns: 1fr;
    }

    .kb-article {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .monitor-panel {
        padding: 1.5rem;
    }

    .monitor-header {
        font-size: 1.2rem;
    }
}
