/* Custom styles for Exploraton Webhook Receiver */

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Card hover effects */
.card {
    border: 1px solid var(--bs-border-color);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Status badges */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--bs-secondary);
    font-size: 0.875rem;
}

.table-hover tbody tr:hover {
    background-color: var(--bs-dark);
}

/* Code blocks */
pre {
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

pre code {
    color: var(--bs-gray-100);
}

/* Form styling */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button improvements */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Copy button animation */
.btn-success {
    animation: pulse 0.5s ease-in-out;
}

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

/* Statistics cards */
.card.bg-primary,
.card.bg-success,
.card.bg-danger,
.card.bg-info {
    border: none;
    color: white;
}

.card.bg-primary .card-body i,
.card.bg-success .card-body i,
.card.bg-danger .card-body i,
.card.bg-info .card-body i {
    opacity: 0.8;
}

/* Empty state */
.text-center.py-5 i {
    opacity: 0.5;
}

/* Configuration status indicators */
.fas.fa-check-circle {
    color: var(--bs-success) !important;
}

.fas.fa-times-circle {
    color: var(--bs-danger) !important;
}

/* Webhook URL input group */
.input-group .form-control {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* JSON code styling */
pre.bg-dark {
    background-color: var(--bs-gray-900) !important;
    border: 1px solid var(--bs-border-color);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-800);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}
