/* X-UI Panel Styles */
body {
    background-color: #f5f6fa;
    font-family: 'Tahoma', 'Vazir', sans-serif;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.stats-card {
    border-radius: 15px;
    transition: all 0.3s;
}

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

.log-viewer {
    font-family: 'Consolas', 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}

.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
}

code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

pre {
    direction: ltr;
    text-align: left;
}

.footer {
    border-top: 1px solid #dee2e6;
}

.table th {
    font-weight: 600;
}

/* RTL fixes */
.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 15px;
    }
}
