.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-title i {
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}


.search-section {
    padding: 40px 0;
    background-color: #f8fafc;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}

.input-group .btn {
    padding: 12px 20px;
    white-space: nowrap;
}


.results-section {
    padding: 40px 0;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}


.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}




.error-state {
    text-align: center;
    padding: 60px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 15px;
}

.error-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.error-state h3 {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-state p {
    color: #7f1d1d;
    font-size: 1.1rem;
}


.success-state {
    display: grid;
    gap: 30px;
}


.chamado-info,
.cliente-info {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

.chamado-info h3,
.cliente-info h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.info-item .value {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}


.garantia-status {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    overflow: hidden;
}

.garantia-card {
    padding: 30px;
}

.garantia-card.ativa {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #10b981;
}

.garantia-card.vencida {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-left: 5px solid #dc2626;
}

.garantia-card.inativa {
    background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
    border-left: 5px solid #0ea5e9;
}

.garantia-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.garantia-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.garantia-card.ativa .garantia-icon {
    background: #10b981;
    color: #fff;
}

.garantia-card.vencida .garantia-icon {
    background: #dc2626;
    color: #fff;
}

.garantia-card.inativa .garantia-icon {
    background: #0ea5e9;
    color: #fff;
}

.garantia-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.garantia-card.ativa .garantia-title h3 {
    color: #065f46;
}

.garantia-card.vencida .garantia-title h3 {
    color: #991b1b;
}

.garantia-card.inativa .garantia-title h3 {
    color: #0c4a6e;
}

.garantia-title p {
    font-size: 1rem;
    opacity: 0.8;
}

.garantia-details {
    margin-bottom: 25px;
}

.dias-restantes {
    text-align: center;
    margin-bottom: 20px;
}

.dias-restantes .dias {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #065f46;
    line-height: 1;
}

.dias-restantes .label {
    font-size: 1rem;
    color: #047857;
    font-weight: 500;
}

.garantia-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgb(255 255 255 / 70%);
    border-radius: 8px;
}

.date-item .label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.date-item .value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.vencimento-info {
    text-align: center;
    padding: 20px;
    background: rgb(255 255 255 / 70%);
    border-radius: 8px;
}

.vencimento-info p {
    font-size: 1.1rem;
    color: #991b1b;
    margin: 0;
}

.garantia-actions {
    text-align: center;
}

.garantia-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 25px;
}

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

.modal-body label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .garantia-dates {
        grid-template-columns: 1fr;
    }
    
    .garantia-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}


@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-state > * {
    animation: fade-in 0.5s ease-out;
}

.success-state > *:nth-child(2) {
    animation-delay: 0.1s;
}

.success-state > *:nth-child(3) {
    animation-delay: 0.2s;
}
