:root {
    --primary-color: #08009c;
    --primary-dark: #06005c;
    --primary-light: #3368fc;
    --secondary-color: #3368fc;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #0354bd 0%, #001faa 100%);
    --gradient-secondary: linear-gradient(135deg, #93d1fb 0%, #57e3f5 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}



.resultado-container {
    padding: 2rem 0;
}

.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .page-title i {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 2rem;
    }

.page-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .page-subtitle i {
        font-size: 1.25rem;
    }

.modern-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

    .modern-card:hover {
        box-shadow: var(--shadow-lg);
    }

.modern-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .modern-card-header i {
        font-size: 1.5rem;
    }

.header-primary {
    background: var(--gradient-primary);
}

.header-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.header-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-light) 100%);
}

.header-dark {
    background: linear-gradient(135deg, #64748b 0%, var(--dark-color) 100%);
}

.modern-card-body {
    padding: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

    .info-item:last-child {
        margin-bottom: 0;
    }

.info-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

.info-value-large {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.info-value-money {
    font-size: 1.125rem;
    color: var(--success-color);
    font-weight: 700;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.modern-btn {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .modern-btn:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.btn-danger-modern {
    background: linear-gradient(135deg, #ef4444 0%, var(--danger-color) 100%);
    color: white;
}

    .btn-danger-modern:hover {
        background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
        color: white;
    }

.btn-secondary-modern {
    background: var(--dark-color);
    color: white;
    border: 2px solid #e2e8f0;
}

    .btn-secondary-modern:hover {
        background: var(--light-color);
        border-color: #cbd5e1;
        color: var(--dark-color);
    }

.btn-success-modern {
    background: linear-gradient(135deg, #10b981 0%, var(--success-color) 100%);
    color: white;
}

    .btn-success-modern:hover {
        background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
        color: white;
    }

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.timeline-modern {
    position: relative;
    padding: 1rem 0;
}

.timeline-item-modern {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date-badge {
  /*  background: var(--gradient-primary);*/
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    min-width: 140px;
}

    .timeline-date-badge i {
        display: block;
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .timeline-date-badge .date {
        font-size: 1rem;
        display: block;
    }

    .timeline-date-badge .time {
        font-size: 0.875rem;
        opacity: 0.9;
    }

.timeline-content-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .timeline-content-modern:hover {
        box-shadow: var(--shadow-md);
    }

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .timeline-title i {
        color: var(--primary-color);
        font-size: 1.25rem;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.status-badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}
.status-badge-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
}
.status-badge-warning {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    color: #92400e;
}
.status-badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}
.status-badge-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}
.status-badge-primary {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}
.status-badge-dark {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}



.alert-modern {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
    box-shadow: var(--shadow-sm);
}

    .alert-modern i {
        margin-right: 0.5rem;
    }

.alert-warning-modern {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-light-modern {
    background: var(--light-color);
    color: var(--dark-color);
    border-left: 4px solid #94a3b8;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}
.alert-success-modern {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}
.alert-primary-modern {
    background: linear-gradient(135deg, #bbf7d0 0%, #81e6d9 100%);
    color: #16a34a;
    border-left: 4px solid var(--success-color);
}

.alert-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-content-modern {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.modal-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, var(--danger-color) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border: none;
}

    .modal-header-danger h5 {
        margin: 0;
        font-weight: 600;
    }

    .modal-header-danger .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

        .modal-header-danger .btn-close:hover {
            opacity: 1;
        }

.modal-header-success {
    background: linear-gradient(135deg, #10b981 0%, var(--success-color) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border: none;
}

    .modal-header-success h5 {
        margin: 0;
        font-weight: 600;
    }

    .modal-header-success .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

        .modal-header-success .btn-close:hover {
            opacity: 1;
        }

.modal-header-primary {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border: none;
}

    .modal-header-primary h5 {
        margin: 0;
        font-weight: 600;
    }

    .modal-header-primary .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

        .modal-header-primary .btn-close:hover {
            opacity: 1;
        }

.devolucao-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #fecaca;
}

.devolucao-card-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #f87171;
}

.devolucao-card-body {
    padding: 1.25rem;
    background: #fef2f2;
}

.devolucao-texto {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.pagamento-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #d1fae5;
}

.pagamento-card-header {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #4ade80;
}

.pagamento-card-body {
    padding: 1.25rem;
    background: #ecfccb;
}

.pagamento-texto {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.registrado-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #eab308;
}

.registrado-card-header {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #fbbf24;
}

.registrado-card-body {
    padding: 1.25rem;
    background: #fef3c7;
}

.registrado-texto {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--dark-color);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .timeline-date-badge {
        width: 100%;
        margin-bottom: 1rem;
    }

    .modern-btn {
        width: 100%;
        justify-content: center;
    }
}





.hero-section {
    color: #2c3e50;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #34495e;
}

    .hero-title i {
        color: #667eea;
        font-size: 1.8rem;
    }

.hero-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Improved info cards with glass morphism */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

    .info-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
        background: white;
    }

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.info-card h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
}

/* Redesigned tabs to be larger and more prominent */
.search-tabs {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: none;
}

    .search-tabs .nav-tabs {
        border: none;
        display: flex;
        gap: 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px 20px 0 0;
        padding: 12px 12px 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .search-tabs .nav-item {
        flex: 1;
    }

    .search-tabs .nav-link {
        border: none;
        background: transparent;
        color: #666;
        font-weight: 600;
        font-size: 1rem;
        padding: 16px 24px;
        border-radius: 12px 12px 0 0;
        transition: all 0.3s ease;
        text-align: center;
        width: 100%;
    }

.nav-tabs .nav-link i {
    transition: transform 0.3s ease;
    font-size: 1.3rem;
}

.nav-tabs .nav-link:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.nav-tabs .nav-link.new-feature::after {
    content: 'NOVIDADE';
    position: absolute;
    top: -12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.6);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(238, 90, 111, 0.6);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(238, 90, 111, 0.8);
    }
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
    transform: translateY(-4px);
    box-shadow: 0 -8px 24px rgba(102, 126, 234, 0.25);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -8px 32px rgba(102, 126, 234, 0.3);
    border-bottom: 4px solid #667eea;
    transform: translateY(0);
}

    .nav-tabs .nav-link.active i {
        color: #667eea;
    }

/* Enhanced card with better shadows and borders */
.card-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 16px;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

    .btn-gradient:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
        color: white;
    }

    .btn-gradient:active {
        transform: translateY(-1px);
    }

.form-control-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    font-size: 16px;
}

    .form-control-modern:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
        outline: none;
    }

.protocol-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

    .protocol-card:hover {
        border-color: #667eea;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
        transform: translateX(10px);
    }

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.1rem 1.5rem;
}

.badge {
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
}

#quickSearchInput {
    transition: all 0.3s ease;
}

    #quickSearchInput:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    }

.input-group-text {
    background-color: white;
    border-radius: 12px 0 0 12px;
}

#protocolCount {
    font-size: 0.85rem;
    vertical-align: middle;
}

.form-label {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 8px;
}

/* Added bottom support section styling */
.support-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

    .support-section p {
        margin: 0;
        color: #555;
        font-size: 15px;
    }

    .support-section strong {
        color: #667eea;
    }}