/**
 * SSANet - Estilos Segunda Via de Boleto
 */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.main-content {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form .input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.search-form .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.cliente-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.cliente-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cliente-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.faturas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fatura-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.fatura-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.fatura-card.pendente {
    border-left-color: #f59e0b;
}

.fatura-card.atrasado {
    border-left-color: #dc2626;
}

.fatura-info {
    flex: 1;
    min-width: 200px;
}

.fatura-info h4 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.fatura-info .meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fatura-info .meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fatura-valor {
    text-align: center;
    min-width: 120px;
}

.fatura-valor .valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.fatura-valor .status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #fef3c7;
    color: #d97706;
}

.status-atrasado {
    background: #fee2e2;
    color: #dc2626;
}

.fatura-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-pagar {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pagar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp {
    padding: 0.75rem 1rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.no-faturas {
    text-align: center;
    padding: 3rem;
}

.no-faturas i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.no-faturas h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-faturas p {
    color: #6b7280;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.page-footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

.page-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
        justify-content: center;
    }
    
    .fatura-card {
        flex-direction: column;
        text-align: center;
    }
    
    .fatura-info .meta {
        justify-content: center;
    }
    
    .fatura-actions {
        width: 100%;
        justify-content: center;
    }
}
