* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.result-content:last-child {
    margin-bottom: 0;
}

.result-content strong {
    color: #333;
    min-width: 100px;
}

#uidValue {
    color: #47c74b;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    word-break: break-all;
}

#nameValue, #typeValue, #statusValue {
    color: #555;
    font-size: 1em;
}

.btn-copy {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: #5568d3;
}

.error {
    margin-top: 15px;
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 10px;
    border-left: 4px solid #c62828;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.config-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.config-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.webhook-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.webhook-info label {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.webhook-info input {
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .result-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
