/* Custom styles for the Stripe Admin Dashboard */

.min-vh-100 {
    min-height: 100vh;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
}

/* Table improvements */

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.8rem;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
}

/* Card enhancements */
.card {
    border: 1px solid var(--bs-gray-700);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--bs-dark);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Responsive table wrapper */
.table-responsive {
    border-radius: 0.375rem;
}

/* Empty state styling */
.text-muted {
    opacity: 0.6;
}

/* Navbar enhancements */
.navbar-brand {
    font-weight: 600;
}

/* Alert improvements */
.alert {
    border: 1px solid var(--bs-gray-700);
    border-radius: 0.5rem;
}

/* Form field styling for better contrast */
.form-control {
    background-color: var(--bs-gray-900);
    border: 1px solid var(--bs-gray-700);
    color: var(--bs-light);
}
.form-control:focus {
    background-color: var(--bs-gray-900);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: var(--bs-light);
}

/* Login form styling */
.card-header h4 {
    margin: 0;
    font-weight: 600;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
}

/* Loading spinner animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Page loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

body.refreshing .progress-overlay {
    display: flex;
}

body.loading .loading-overlay {
    display: flex;
}

/* Colored transaction type dropdowns */
.tx-type-select.bg-warning {
    color: #000;
}
.tx-type-select.bg-primary,
.tx-type-select.bg-success,
.tx-type-select.bg-secondary {
    color: #fff;
}

/* Slightly smaller font for transaction type */
.tx-type-select {
    font-size: 0.63rem;
}
