/* Universal Remote Codes Frontend Styles - Minimalist Design */

.universal-remote-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.universal-remote-container h3 {
    margin: 0 0 32px 0;
    color: #1a1a1a;
    text-align: left;
    border: none;
    padding: 0;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.universal-form-group {
    margin-bottom: 24px;
}

.universal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #4a4a4a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.universal-form-group select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 16px;
    background-color: transparent;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 20px;
    padding-right: 30px;
    transition: border-color 0.2s ease;
}

.universal-form-group select:disabled {
    background-color: transparent;
    color: #999;
    cursor: not-allowed;
    border-bottom-color: #f0f0f0;
}

.universal-form-group select:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}

.codes-result {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.codes-result h4 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.code-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    min-height: 44px;
}

.code-item:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.code-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.code-item.copied {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
    transform: scale(1.02);
}

.universal-instructions {
    background: transparent;
    padding: 0;
    border: none;
    margin: 24px 0 0 0;
    font-style: normal;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.copy-instruction {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 16px 0 0 0;
    font-weight: 300;
}

.copy-feedback {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    z-index: 9999;
    font-weight: 300;
    font-size: 14px;
    box-shadow: none;
    border: none;
}

.error {
    color: #d32f2f;
    font-weight: 300;
    text-align: center;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 14px;
}

/* Multiple containers support */
.universal-remote-container + .universal-remote-container {
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .universal-remote-container {
        margin: 20px 16px;
        padding: 0;
    }
    
    .universal-remote-container h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .codes-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .code-item {
        padding: 10px 6px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .copy-feedback {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        text-align: center;
    }
}

/* Loading animation */
.loading {
    text-align: center;
    color: #999;
    font-weight: 300;
    font-size: 14px;
}

.loading:after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Focus states for accessibility */
.universal-form-group select:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.code-item:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

