.protocolo-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 83px);
    background-image: url("../image/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

.protocolo-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    width: 100%;
    max-width: 800px;
}

.protocolo-title {
    font-size: 2.2rem;
    color: #173366;
    margin-bottom: 8px;
    font-weight: 600;
}

.protocolo-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.search-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-form {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.search-label {
    font-size: 0.95rem;
    color: #173366;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #5BC659;
    box-shadow: 0 0 0 3px rgba(23, 51, 102, 0.1);
}

.search-button {
    width: 100%;
    padding: 12px 20px;
    background: #173366;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    background: #0f2347;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-button .material-icons {
    font-size: 20px;
}

.result-section {
    width: 100%;
    max-width: 800px;
}

.chamado-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card-header {
    background: #173366;
    color: white;
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-aprovado {
    background: #d4edda;
    color: #155724;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-rejeitado {
    background: #f8d7da;
    color: #721c24;
}

.card-body {
    padding: 25px;
}

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

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

.info-label {
    font-size: 0.85rem;
    color: #236baa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 400;
    line-height: 1.4;
}

.protocolo-destaque {
    color: #173366;
    font-weight: bold;
    font-size: 1.2em;
}

.descricao-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.descricao-content {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #173366;
    line-height: 1.6;
    color: #495057;
}

.no-result {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.no-result h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.no-result p {
    font-size: 1rem;
    margin: 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message .material-icons {
    font-size: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message .material-icons {
    font-size: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .protocolo-container {
        padding: 20px 15px;
    }

    .protocolo-title {
        font-size: 1.8rem;
    }

    .search-form {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-body {
        padding: 20px;
    }

    .card-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .descricao-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .protocolo-title {
        font-size: 1.6rem;
    }

    .search-form {
        padding: 15px;
    }

    .card-body {
        padding: 15px;
    }

    .info-grid {
        gap: 12px;
    }
}

/* Animações */
.chamado-card {
    animation: slideIn 0.3s ease-out;
}

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

.search-button:active {
    transform: translateY(0);
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .search-button {
    background: #6c757d;
}

.loading .search-button::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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