/* Custom styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Animate validation result icons */
.fa-check-circle, .fa-times-circle {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Security badge */
.security-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    z-index: 10;
}

/* Custom card hover effect */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer styles */
.footer {
    margin-top: 3rem;
}

/* Protocol badges */
.protocol-badge {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Animation for validation process */
.validating-animation {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

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

/* Interactive validation styles */
.protocol-stages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stage {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.stage-icon {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    margin-right: 0.5rem;
}

.stage.waiting {
    opacity: 0.7;
    color: var(--bs-secondary);
}

.stage.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-weight: bold;
}

.stage.completed {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

.stage.failed {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
}

/* Protocol card transitions */
.protocol-card {
    transition: all 0.3s ease;
}

/* Badge animations */
.badge {
    transition: all 0.3s ease;
}

/* Timer styling */
#timer {
    font-family: monospace;
    font-size: 1rem;
}

/* Custom field styles */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom alert styles */
.alert {
    border-left-width: 4px;
}

.alert-success {
    border-left-color: var(--bs-success);
}

.alert-danger {
    border-left-color: var(--bs-danger);
}

.alert-warning {
    border-left-color: var(--bs-warning);
}

.alert-info {
    border-left-color: var(--bs-info);
}