/* ──────────────────────────────────────────────────────────────────────────
   Dehasoft Modern Integration — arayüz iyileştirmeleri
   ────────────────────────────────────────────────────────────────────────── */

.mi-main-content {
    padding: 1rem;
}

@media (min-width: 960px) {
    .mi-main-content {
        padding: 1.25rem 1.5rem;
    }
}

/* ── Yan menü başlığı ─────────────────────────────────────────────────── */
.mi-nav-header {
    padding: 0.9rem 1rem 0.75rem;
}

.mi-nav-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #005BAC 0%, #0A84C8 100%);
    color: #fff;
    flex-shrink: 0;
}

.mi-nav-footer img.sidebar-logo {
    max-width: 120px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.mi-nav-footer img.sidebar-logo:hover {
    opacity: 1;
}

/* ── Yetenek rozetleri ────────────────────────────────────────────────── */
.mi-capability-chip {
    font-size: 0.68rem !important;
    height: 21px !important;
}

/* ── Sağlayıcı kartı ──────────────────────────────────────────────────── */
.mi-provider-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mi-provider-card:hover {
    border-color: var(--mud-palette-primary);
}

.mi-provider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.mi-provider-icon-erp {
    background: rgba(0, 91, 172, 0.12);
    color: #005BAC;
}

.mi-provider-icon-ecom {
    background: rgba(56, 142, 60, 0.12);
    color: #388E3C;
}

.mi-provider-icon-hibrit {
    background: rgba(245, 124, 0, 0.12);
    color: #F57C00;
}

/* Koyu temada ikon zeminleri biraz daha görünür olsun. */
.mud-theme-dark .mi-provider-icon-erp {
    background: rgba(77, 168, 232, 0.18);
    color: #4DA8E8;
}

.mud-theme-dark .mi-provider-icon-ecom {
    background: rgba(102, 187, 106, 0.18);
    color: #66BB6A;
}

.mud-theme-dark .mi-provider-icon-hibrit {
    background: rgba(255, 167, 38, 0.18);
    color: #FFA726;
}

/* ── Giriş ekranı ─────────────────────────────────────────────────────── */
.login-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 91, 172, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 169, 206, 0.10) 0%, transparent 45%);
}

.mud-theme-dark .login-page {
    background:
        radial-gradient(circle at 15% 20%, rgba(77, 168, 232, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(56, 194, 245, 0.10) 0%, transparent 45%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
}

.login-clock {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.55;
}

.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: linear-gradient(135deg, #005BAC 0%, #0A84C8 100%);
    color: #fff;
}

/* ── Kullanıcı kartı ──────────────────────────────────────────────────── */
.mi-user-card {
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 91, 172, 0.05);
}

.mud-theme-dark .mi-user-card {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Boş durum ────────────────────────────────────────────────────────── */
.mi-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    text-align: center;
    opacity: 0.7;
}

/* ── Tekrar deneme çubuğu ─────────────────────────────────────────────── */
.mi-retry-bar {
    border-left: 3px solid var(--mud-palette-warning) !important;
    background: rgba(245, 124, 0, 0.05);
}

.mud-theme-dark .mi-retry-bar {
    background: rgba(255, 167, 38, 0.08);
}

/* ── Log satırları ────────────────────────────────────────────────────── */
.mi-log-satiri {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.mi-log-satiri:last-child {
    border-bottom: none;
}

.mi-log-satiri:hover {
    background: rgba(0, 0, 0, 0.02);
}

.mud-theme-dark .mi-log-satiri:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mi-log-hata {
    background: rgba(211, 47, 47, 0.04);
}

.mud-theme-dark .mi-log-hata {
    background: rgba(244, 67, 54, 0.07);
}

/* ── Kod / JSON blokları ──────────────────────────────────────────────── */
.mi-kod-bloku {
    font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
    font-size: 0.76rem;
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    white-space: pre;
    max-height: 420px;
    overflow: auto;
}

.mud-theme-dark .mi-kod-bloku {
    background: rgba(0, 0, 0, 0.35);
}

/* Tıklanabilir tablo satırları */
.cursor-pointer {
    cursor: pointer;
}

/* ── Tek satırlık kod/yol gösterimi ───────────────────────────────────── */
.mi-mono {
    font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

/* Geniş içerik yatay taşmasın, kendi içinde kaysın. */
.mi-scroll-x {
    overflow-x: auto;
    max-width: 100%;
}
