/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --lighter-blue: #93c5fd;
    --lightest-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --background: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --shadow: rgba(30, 64, 175, 0.1);
    --shadow-lg: rgba(30, 64, 175, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.search-card,
.status-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

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

.logo-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

h1 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form */
.search-form {
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--lightest-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-back:hover {
    background: var(--lighter-blue);
    transform: translateX(-3px);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Client Info */
.client-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 16px;
    padding: 30px;
    color: var(--white);
    margin-bottom: 40px;
}

.client-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

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

.client-detail-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.client-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Timeline */
.timeline-section {
    margin-bottom: 40px;
}

.timeline-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, var(--lighter-blue), var(--lightest-blue));
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--lighter-blue);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item.completed::before {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-item.current {
    background: var(--lightest-blue);
    padding: 25px;
    margin-left: -25px;
    padding-left: 50px;
    border-radius: 12px;
    animation: highlight 1.5s ease-in-out infinite;
}

@keyframes highlight {
    0%, 100% {
        background: var(--lightest-blue);
    }
    50% {
        background: rgba(147, 197, 253, 0.5);
    }
}

.timeline-item.current::before {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
    }
}

.timeline-item.pending::before {
    background: var(--white);
    border-color: #cbd5e1;
}

.timeline-item.pending .timeline-content {
    opacity: 0.6;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.timeline-item.current .timeline-content h3 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.timeline-item.completed .timeline-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.timeline-item.current .timeline-badge {
    background: var(--secondary-blue);
    color: var(--white);
}

.timeline-item.pending .timeline-badge {
    background: #f1f5f9;
    color: var(--text-light);
}

/* Details Section */
.details-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
}

.details-section h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .search-card,
    .status-card {
        padding: 25px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .client-info {
        padding: 20px;
    }

    .client-info h2 {
        font-size: 1.4rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item.current {
        padding-left: 40px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .client-details {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .search-card,
    .status-card {
        padding: 20px;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
