/* Affichage des réponses, messages et URLs */

.success {
    background: rgba(34, 197, 94, 0.25);
    color: #86efac;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(5px);
}

.error {
    background: rgba(220, 38, 38, 0.2);
    color: #fee2e2;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(220, 38, 38, 0.4);
    font-weight: 500;
    animation: errorPulse 1.5s ease-out;
    backdrop-filter: blur(5px);
}

.response {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--secondary-color);
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    max-height: 700px;
    overflow-y: auto;
    line-height: 1.5;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    background: rgba(15, 23, 42, 0.9);
    color: #a5b4fc;
    padding: 10px 15px;
    border-radius: 6px;
    display: block;
    border: 1px solid rgba(99, 102, 241, 0.6);
    font-size: 0.8rem; /* Taille de police réduite */
    flex: 1;
    margin: 0;
    backdrop-filter: blur(5px);
}

/* Conteneur pour l'URL et le bouton de copie */
.endpoint-url-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 10px 0;
}

/* Bouton de copie pour l'URL */
.copy-url-btn {
    background: transparent !important;
    color: #9ca3af;
    border: none !important;
    padding: 0 15px;
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-left: 0;
    opacity: 0.7;
    position: relative;
    box-shadow: none !important;
    transform: none !important;
}

.copy-url-btn:hover {
    background: transparent !important;
    opacity: 1;
    box-shadow: none !important;
    transform: none !important;
}

.copy-url-btn:active {
    background: transparent !important;
    transform: none !important;
}

/* Icône de copie style Flaticon */
.copy-url-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    top: 3px; /* Descendre l'icône de 3px */
}

/* Icône de copie au hover - blanc */
.copy-url-btn:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
    position: relative;
    top: 3px; /* Descendre l'icône de 3px */
}

/* Icône de succès lors de la copie */
.copy-url-btn.copy-success::before {
    background-image: var(--success-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"));
}

/* Styles pour l'affichage proéminent du temps de réponse */
.status-with-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.status-left {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Section droite avec icône flottante et temps de réponse */
.response-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    position: relative;
}

.response-time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* S'assurer que le fond ne déborde pas */
    isolation: isolate;
}

.time-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.time-unit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: lowercase;
}
