/* Root variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --success-color: #16a34a;
    --error-color: #dc2626;
    --background-color: #f0f9ff;
    --button-hover-color: #1d4ed8;
    --button-active-color: #1e40af;
}

/* Base styles */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.device-name {
    font-size: 1.5rem;
    color: #1e40af;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #dbeafe;
    border-radius: 8px;
    display: inline-block;
}

/* Command button styles */
.command-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 2rem auto;
    text-align: center;
}

.command-button:hover {
    background-color: var(--button-hover-color);
}

.command-button:active {
    background-color: var(--button-active-color);
}

.command-button i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Status container styles */
.status-container {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.status-container.success {
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.status-container.error {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
}

.icon-result {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success .icon-result {
    color: var(--success-color);
}

.error .icon-result {
    color: var(--error-color);
}

.result-message {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.result-details {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-details p {
    margin: 0.5rem 0;
}

/* Loading spinner styles */
#loadingSpinner {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    border: 4px solid #dbeafe;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-text {
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 0 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .device-name {
        font-size: 1.25rem;
    }

    .command-button {
        padding: 1rem;
        font-size: 1.25rem;
    }
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.logo {
    max-width: 100px;
    margin: 0 1rem;
}

@media (max-width: 600px) {
    .logo {
        max-width: 80px;
        margin: 0 0.5rem;
    }
}

.language-selector {
    float: right;
}
