/* Custom styles for Virtual Coffee Machine */

.drink-option.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.sugar-option.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Status indicators */
.status-online {
    background-color: #dcfce7;
    color: #166534;
}

.status-offline {
    background-color: #f3f4f6;
    color: #374151;
}

.status-busy {
    background-color: #fef3c7;
    color: #92400e;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Log entries */
.log-entry {
    margin-bottom: 4px;
    padding: 2px 0;
}

.log-time {
    color: #6b7280;
    font-weight: 500;
}

.log-info {
    color: #1f2937;
}

.log-success {
    color: #059669;
    font-weight: 500;
}

.log-warning {
    color: #d97706;
    font-weight: 500;
}

.log-error {
    color: #dc2626;
    font-weight: 500;
}

/* Token display */
.token-display {
    font-family: monospace;
    font-size: 0.75rem;
    background-color: #f3f4f6;
    padding: 2px 4px;
    border-radius: 4px;
    word-break: break-all;
}

/* Order display */
.order-pending {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

/* Failure simulation buttons */
#simulateNoWater:hover,
#simulateNoCup:hover {
    background-color: #dc2626;
}

#simulateHeatingDelay:hover {
    background-color: #d97706;
}

/* Failure state indicators */
#failureStates {
    transition: all 0.3s ease;
}

.failure-state {
    transition: all 0.3s ease;
}

.failure-state.hidden {
    display: none;
}

/* Random failure button */
#toggleRandomFailure {
    transition: all 0.3s ease;
}

/* Water heating status */
#waterHeatingStatus {
    transition: all 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .failure-simulation {
        grid-template-columns: 1fr;
    }
} 