* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #00c851 0%, #00a843 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.main-card {
    background: white;
    border-radius: 15px;
    border: 3px solid #00c851;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Logo Section */
.logo-section {
    margin-bottom: 40px;
    text-align: center;
}

.main-logo {
    max-width: 200px; /* Ajuste conforme necessário */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Users Icon Container */
.users-icon-container {
    margin-bottom: 20px;
    text-align: center;
}

.users-icon-img {
    width: 50px; /* Ajuste o tamanho conforme necessário */
    height: auto;
}

/* Main Title */
.main-title {
    margin-bottom: 30px;
}

.main-title h1 {
    background: #00c851;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
}

/* Search Section */
.search-section {
    background: #00c851;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.search-section h2 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#indicationCodeInput {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333;
}

#indicationCodeInput:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}


#cpfInput {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333;
}

#cpfInput::placeholder {
    color: #999;
}

#cpfInput:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}


#searchIndicationBtn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#searchIndicationBtn:hover {
    background: #218838;
}

#searchIndicationBtn:active {
    transform: translateY(1px);
}



#searchBtn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#searchBtn:hover {
    background: #218838;
}

#searchBtn:active {
    transform: translateY(1px);
}

/* Result Section */
.result-section {
    background: #f8f9fa;
    border: 2px solid #00c851;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-content h3 {
    color: #00c851;
    margin-bottom: 15px;
    font-size: 20px;
}

.client-info {
    text-align: left;
}

.client-info p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.client-info strong {
    color: #00c851;
}

#indicationCode {
    background: #00c851;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-family: monospace;
    font-size: 18px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00c851;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

.loading p {
    color: #00c851;
    font-weight: bold;
}

/* Error Section */
.error-section {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.error-section p {
    color: #721c24;
    font-weight: bold;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-card {
        padding: 20px;
        margin: 10px;
    }
    
    .main-logo {
        max-width: 150px; /* Ajuste para telas menores */
    }
    
    .search-form {
        flex-direction: column;
    }
    
    #cpfInput {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    #searchBtn {
        width: 100%;
    }
    
    .main-title h1 {
        font-size: 20px;
    }
    
    .search-section h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 15px;
    }
    
    .main-logo {
        max-width: 120px; /* Ajuste para telas muito pequenas */
    }
    
    .main-title h1 {
        font-size: 18px;
        padding: 8px 15px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .search-section h2 {
        font-size: 16px;
    }
}


