:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --text-color: #2b2d42;
    --light-bg: #f8f9fa;
    --success-color: #4cc9f0;
    --error-color: #f72525;
    --warning-color: #f8961e;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo img {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.description {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
    color: #5a5a5a;
    line-height: 1.7;
}

.search-form {
    margin: 2rem 0;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: var(--light-bg);
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
    background-color: white;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--light-bg);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-out forwards;
}

.result h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#result-content {
    display: grid;
    gap: 1rem;
}

#result-content div {
    padding: 1.2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#result-content div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.loading {
    text-align: center;
    display: none;
    margin: 2rem 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.spinner {
    border: 3px solid rgba(67, 97, 238, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

.error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

/* Status Styles */
.active-status {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left: 4px solid #2ecc71;
}

.inactive-status {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    border-left: 4px solid #e74c3c;
}

.transfer-alert {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 10px 0;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    animation: pulse 1.5s infinite;
}

.transfer-alert i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ffc107;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 1.8rem;
        margin: 1rem auto;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    button {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    input, button {
        padding: 12px;
    }
}