/* --- Wrapper (Matches Stopwatch Theme) --- */
#di-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #111827; /* Gray 900 */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151; /* Gray 700 */
    color: white;
    gap: 20px;
}

/* --- Grid Layout --- */
.di-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.di-card {
    background-color: #1f2937; /* Gray 800 */
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.di-card.full-width {
    grid-column: 1 / -1;
}

/* --- Card Content --- */
.di-card-header {
    font-size: 0.8rem;
    color: #fbbf24; /* Amber */
    border-bottom: 2px solid #374151;
    padding-bottom: 8px;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.di-icon {
    font-size: 1rem;
}

.di-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 1px dashed #374151;
}

.di-item:last-child {
    border-bottom: none;
}

.di-item-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Press Start 2P', monospace, sans-serif;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #374151;
}

.di-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
}

.di-val {
    color: #d1d5db;
    font-weight: bold;
    text-align: right;
}

.di-val.loading {
    color: #f59e0b;
    animation: pulse 1.5s infinite;
}

.di-val.success {
    color: #10b981;
}

.di-val.error {
    color: #ef4444;
}

.di-val-block {
    font-size: 0.8rem;
    color: #6b7280;
    word-break: break-all;
    background: #111;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #374151;
}

/* --- Refresh Button --- */
.di-btn {
    width: 100%;
    background-color: #3b82f6; /* Blue */
    color: #1e3a8a;
    border: none;
    border-bottom: 4px solid #2563eb;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s;
    text-transform: uppercase;
    font-weight: bold;
}

.di-btn:active {
    transform: translateY(4px);
    border-bottom: none;
    margin-bottom: 4px;
}

.di-btn:hover {
    filter: brightness(1.1);
}

/* --- Animations --- */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .di-grid {
        grid-template-columns: 1fr;
    }
}