/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Screen Management */
.screen {
    min-height: 100vh;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin:0 auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-group label i {
    color: #667eea;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

#loginError {
    background: #fff6f6;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 16px 0 0 0;
    text-align: center;
    font-size: 0.97rem;
    min-height: 20px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.04);
    display: none;
    transition: all 0.2s;
}
#loginError[style*="display: block"] {
    display: block;
}

/* Dashboard */
#dashboard {
    min-height: 100vh;
    background: #f5f7fa;
}

.navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.nav-brand i {
    color: #667eea;
    font-size: 1.5rem;
}

.nav-admin {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-info i {
    font-size: 1rem;
}

.admin-info strong {
    font-weight: 600;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.status-icon.running {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.status-icon.balance {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.queue {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.status-icon.processed {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.status-icon.pending {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
}

.status-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-card {
    border-left: 4px solid #25d366;
}

.whatsapp-card:hover {
    border-left-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.15);
}
.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-content h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-content h3 i {
    font-size: 0.8rem;
    color: #667eea;
}

.status-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.balance-refresh-btn, .pending-refresh-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
}

.pending-refresh-btn {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.balance-refresh-btn:hover, .pending-refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.balance-refresh-btn:active, .pending-refresh-btn:active {
    transform: translateY(0);
}

.balance-refresh-btn i, .pending-refresh-btn i {
    font-size: 0.75rem;
}

.whatsapp-share-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
}

.whatsapp-share-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #128c7e 0%, #0d7268 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-share-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-share-btn:active {
    transform: translateY(0);
}

.whatsapp-share-btn i {
    font-size: 0.9rem;
}

/* Control Panel */
.control-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.panel-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-header h2 {
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i {
    color: #667eea;
}

.control-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.start-btn {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.stop-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.refresh-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

.danger-btn {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
}

.danger-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 112, 85, 0.3);
}

.warning-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.warning-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.config-btn {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
}

.config-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 155, 254, 0.3);
}

.refresh-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.3);
}

.trigger-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
}

.trigger-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 203, 110, 0.3);
}

.small-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.small-btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.small-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.small-btn.danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

.small-btn.active {
    background: #667eea;
    color: white;
}

/* Info Panel */
.info-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: #667eea;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.info-value {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.info-refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.info-refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.info-refresh-btn:active {
    transform: scale(1);
}

.info-refresh-btn i {
    font-size: 0.6rem;
}

/* Logs Panel */
.logs-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.logs-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.logs-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 150px;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.logs-controls .small-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: auto;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logs-controls .small-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logs-controls .small-btn i {
    margin-right: 4px;
}

.logs-container {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    border: 1px solid #333;
}

.logs-content {
    color: #00ff00;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.logs-content::-webkit-scrollbar {
    width: 8px;
}

.logs-content::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.logs-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.logs-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #666;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .control-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-admin {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .admin-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .nav-brand span {
        display: none;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logs-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-search {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-input {
        flex: 1;
        min-width: 0;
    }
    
    .logs-controls .small-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .balance-refresh-btn, .pending-refresh-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .status-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .status-content h3 {
        font-size: 0.85rem;
    }
    
    .status-content p {
        font-size: 1.3rem;
    }
    
    .info-item {
        padding: 15px 20px;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .status-card {
        padding: 20px;
    }
    
    .control-panel,
    .info-panel,
    .logs-panel {
        padding: 20px;
    }
    
    .admin-info {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen:not(.hidden) {
    animation: fadeIn 0.5s ease-out;
}

/* Status Indicators */
.status-running {
    color: #00b894 !important;
}

.status-stopped {
    color: #e74c3c !important;
}

.status-paused {
    color: #fdcb6e !important;
}

/* Log Entry Styling */
.log-entry {
    margin-bottom: 5px;
    padding: 2px 0;
}

.log-entry.job-entry {
    color: #74b9ff;
    font-weight: bold;
}

.log-entry.error {
    color: #e74c3c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal .modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 700px;
    width: 90vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.setting-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.setting-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.info-note {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 12px;
    color: #0c5460;
    font-size: 14px;
}

.rpc-option {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.log-entry.success {
    color: #00b894;
}

.log-entry.info {
    color: #2980ef;
    font-weight: bold;
}

.log-entry.fail {
    color: #e74c3c;
    font-weight: bold;
    background: #ffeaea;
    border-radius: 4px;
    padding: 2px 6px;
}

.log-entry.warning {
    color: #fdcb6e;
    font-weight: bold;
}

/* Notification styles */
.success-message {
    background: #00b894 !important;
    color: white !important;
}

.info-message {
    background: #2980ef !important;
    color: white !important;
}

.fail-message, .error-message {
    background: #e74c3c !important;
    color: white !important;
} 

.info-open-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-open-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6c47a2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.info-open-btn:active {
    transform: translateY(0);
} 

/* Alert Settings Styles */
.alert-settings-form,
.notification-config-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.notification-config-form h4 {
    margin: 20px 0 10px 0;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.notification-config-form h4:first-child {
    margin-top: 0;
}

.setting-group {
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.setting-group input[type="checkbox"] {
    margin-right: 8px;
}

.setting-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.setting-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.setting-input[type="password"] {
    font-family: monospace;
}

#saveAlertSettingsBtn,
#testAlertsBtn,
#saveNotificationConfigBtn,
#testNotificationConfigBtn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
}

#saveAlertSettingsBtn:hover,
#testAlertsBtn:hover,
#saveNotificationConfigBtn:hover,
#testNotificationConfigBtn:hover {
    background: #0056b3;
}

#testAlertsBtn,
#testNotificationConfigBtn {
    background: #28a745;
}

#testAlertsBtn:hover,
#testNotificationConfigBtn:hover {
    background: #1e7e34;
} 

/* Responsive Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-btn.active {
        border-radius: 0;
    }
    
    .setting-actions {
        flex-direction: column;
    }
    
    .panel {
        width: 95vw;
        max-height: 95vh;
    }
    
    .config-section {
        padding: 15px;
    }
}

/* Tab Content Styles */
.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: block;
}

/* Config Section Styles */
.config-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.config-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

/* Setting Label Styles */
.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.setting-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

/* Setting Actions */
.setting-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Panel Backdrop */
.panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.panel-backdrop.active {
    display: block;
}

/* Panel Styles */
.panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: none;
    animation: panelSlideIn 0.3s ease-out;
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.panel.active {
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.panel-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.panel-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.panel-close-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: #fff;
    color: #007bff;
    border-bottom-color: #007bff;
    border-radius: 8px 8px 0 0;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: block;
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
} 

/* Provider Links Styles */
.provider-links {
    margin-bottom: 15px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 4px;
    border: 1px solid #b3d9ff;
}

.provider-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0056b3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    margin: 2px 4px 2px 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #b3d9ff;
    transition: all 0.2s ease;
}

.provider-link:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

.provider-link i {
    font-size: 10px;
}

/* Provider Configuration Styles */
.provider-config {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.provider-config h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.info-note {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    font-size: 12px;
    color: #0056b3;
}

.info-note strong {
    color: #004085;
}

/* Enhanced RPC Modal Styles */
.rpc-tab {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
}

.rpc-tab.active {
    background: #fff;
    border-color: #007bff;
    color: #007bff;
    font-weight: bold;
}

.rpc-tab:hover {
    background: #e9ecef;
}

.rpc-content {
    display: none;
}

.rpc-content.active {
    display: block;
}

.rpc-category {
    margin-bottom: 20px;
}

.rpc-category h4 {
    border-bottom: 2px solid currentColor;
    padding-bottom: 4px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.rpc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.rpc-option {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.rpc-option:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.rpc-option.premium {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffeaa7;
}

.rpc-name {
    font-weight: bold;
    font-size: 12px;
    color: #495057;
}

.rpc-option code {
    font-size: 10px;
    background: #fff;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    word-break: break-all;
    color: #6c757d;
}

.rpc-actions {
    display: flex;
    gap: 4px;
}

.btn-mini {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 24px;
    text-align: center;
}

.btn-mini:hover {
    background: #e9ecef;
}

.btn-mini.copy {
    color: #6c757d;
}

.btn-mini.use {
    color: #007bff;
    border-color: #007bff;
}

.btn-mini.use:hover {
    background: #e3f2fd;
}

#manualRpcInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

#manualRpcInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments for RPC modal */
@media (max-width: 768px) {
    .rpc-option {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .rpc-option code {
        word-break: break-all;
        font-size: 9px;
    }
    
    .rpc-actions {
        justify-content: center;
        margin-top: 4px;
    }
}
