* {
    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;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

select,
input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

select:focus,
input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select:hover,
input:hover {
    border-color: #b0b0b0;
}

button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#resultado {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: #333;
}

#resultado::-webkit-scrollbar {
    width: 8px;
}

#resultado::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

#resultado::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

#resultado::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.btn-copy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin-top: 10px;
}

.btn-copy:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.4);
}

.loading {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 0;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

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

.info {
    margin-top: 30px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.info p {
    color: #856404;
    font-size: 13px;
    margin: 0;
}

.info strong {
    font-weight: 700;
}

/* Responsivo */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .actions {
        flex-direction: column;
    }
    .btn-copy, .btn-swagger {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Novos estilos */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-copy {
    flex: 1;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin-top: 0;
}

.btn-swagger {
    flex: 1;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    margin-top: 0;
    height: 100%;
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(108, 117, 125, 0.4);
}

i {
    margin-right: 8px;
}
