:root {
    --oneprovider-orange: #ff6b35;
    --oneprovider-blue: #2c5aa0;
    --oneprovider-light-blue: #4a90e2;
    --oneprovider-gray: #f8f9fa;
    --oneprovider-dark-gray: #6c757d;
    --oneprovider-footer: #2c3e50;
    --oneprovider-white: #ffffff;
    --oneprovider-light-orange: #ffede6;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, var(--oneprovider-gray) 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #212529;
    line-height: 1.6;
}

.header-select {
    margin-left: 10px;
}

.card {
    background: var(--oneprovider-white);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--oneprovider-orange), #ff8a5b);
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    color: white;
    padding: 1.5rem;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--oneprovider-orange), #ff8a5b);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, var(--oneprovider-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline-secondary {
    border-color: var(--oneprovider-orange);
    color: var(--oneprovider-orange);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--oneprovider-orange);
    border-color: var(--oneprovider-orange);
    color: white;
    transform: translateY(-1px);
}

.form-control, .form-select {
    background-color: var(--oneprovider-white);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--oneprovider-white);
    border-color: var(--oneprovider-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.15);
    color: #495057;
}

.input-group-text {
    background: linear-gradient(135deg, var(--oneprovider-gray), #ffffff);
    border: 2px solid #e9ecef;
    color: var(--oneprovider-blue);
    font-weight: 600;
    border-radius: 8px 0 0 8px;
}

.text-muted {
    color: var(--oneprovider-dark-gray) !important;
    font-weight: 500;
}

.border-bottom {
    border-color: #e9ecef !important;
    border-width: 2px !important;
}

.oneprovider-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0); /* Makes the logo black */
}

.oneprovider-logo:hover {
    transform: scale(1.05);
}

.bg-dark {
    background: var(--oneprovider-footer) !important;
    border-radius: 8px;
    border: 1px solid #495057;
}

.alert-danger {
    background: linear-gradient(135deg, #fee, #fdd);
    border: 1px solid #ff6b6b;
    color: #d63384;
    border-radius: 8px;
}

.dropdown-menu {
    background-color: var(--oneprovider-white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: var(--oneprovider-light-orange);
    color: var(--oneprovider-orange);
}

/* Header styling */
header {
    background: var(--oneprovider-white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Animation for cards */
.card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern input styling */
.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group .form-control {
    border-left: none;
    border-right: none;
}

.input-group .form-control:first-child {
    border-left: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control:last-child {
    border-right: 2px solid #e9ecef;
    border-radius: 0 8px 8px 0;
}

/* Footer styling */
footer {
    background: var(--oneprovider-white);
    color: var(--oneprovider-dark-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: center;
    font-weight: 500;
}

footer a {
    color: var(--oneprovider-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--oneprovider-blue);
    text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .header-select {
        margin-left: 0;
        margin-top: 10px;
    }
    
    header .row > div {
        margin-bottom: 10px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Modern code styling */
pre, code {
    background: var(--oneprovider-footer);
    color: #e9ecef;
    border-radius: 6px;
    font-family: 'Fira Code', 'SF Mono', Monaco, Inconsolata, monospace;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Enhanced button groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 8px 0 0 8px;
}

.btn-group .btn:last-child {
    border-radius: 0 8px 8px 0;
}

/* Loading animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}