﻿/* ===== Login Page Background ===== */

.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(10,15,25,.85), rgba(10,15,25,.85)), url('/images/trading-bg.jpg') center / cover no-repeat;
}

.login-card {
    width: 420px;
    padding: 40px;
    border-radius: 22px;
    background: rgba(20,25,40,.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
    color: #fff;
    position: relative;
    z-index: 10; /* 🔥 مهم */
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( rgba(8, 12, 22, 0.85), rgba(8, 12, 22, 0.85) ), url('/images/trading-bg.jpg') center / cover no-repeat;
}

/* ===== Login Card ===== */

.login-card.modern {
    width: 420px;
    padding: 42px 38px;
    border-radius: 22px;
    background: rgba(18, 22, 34, 0.82);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.06);
    animation: fadeUp 0.6s ease;
}

/* ===== Header ===== */

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

.logo-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    box-shadow: 0 10px 30px rgba(108,99,255,0.45);
}

    .logo-wrapper img {
        width: 34px;
    }

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 6px 0 4px;
    color: #ffffff;
}

.login-header span {
    font-size: 13px;
    color: #a5adc6;
    letter-spacing: 0.4px;
}

/* ===== Form ===== */

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

.login-input input {
    color: #fff !important;
    font-size: 14px;
}

.mud-input-outlined {
    background-color: rgba(255,255,255,0.04);
    border-radius: 12px;
}

    .mud-input-outlined:hover {
        background-color: rgba(255,255,255,0.06);
    }

/* ===== Button ===== */

.login-btn {
    margin-top: 8px;
    height: 50px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    box-shadow: 0 14px 35px rgba(108,99,255,0.5);
    transition: all 0.25s ease;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 45px rgba(108,99,255,0.65);
    }

/* ===== Animation ===== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.dashboard-card {
    background: linear-gradient(135deg, #1c2238, #111827);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
/*.mud-snackbar-container {
    z-index: 999999 !important;
}
*/

.mud-snackbar-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 2000000 !important;
    pointer-events: none;
}

.mud-snackbar {
    pointer-events: auto;
}

.strategy-popover {
    z-index: 9999 !important;
}

.main-content {
    background-color: #0f172a;
    min-height: 100vh;
    padding: 32px;
    padding-top: 90px; /* 🔥 ده الحل */
}

.strategy-page {
    padding-top: 10px;
    padding-bottom: 60px;
}

.page-title {
    color: #f8fafc;
    font-weight: 700;
}

.page-subtitle {
    color: #94a3b8;
}

.settings-card {
    background: linear-gradient(145deg, #111827, #0b1220);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #1f2937;
}

.strategy-panel {
    background-color: #1e293b !important;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #273549;
}

.kpi-card {
    background: #111827;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #273549;
    text-align: center;
}

.kpi-label {
    color: #94a3b8;
    font-size: 13px;
}

.kpi-value {
    color: #6366f1;
    font-size: 20px;
    font-weight: 700;
}

.trading-dialog .mud-dialog {
    background: #0f172a !important;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
    color: #e5e7eb;
}

.notification-container {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 999999;
}

.notification-box {
    min-width: 280px;
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    animation: fadeIn 0.3s ease;
}

    .notification-box.success {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }

    .notification-box.error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .notification-box.warning {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .notification-box.info {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== GLOBAL DARK TABLE FIX ===== */

.dark-table .mud-table-container {
    background-color: transparent !important;
}

.dark-table table {
    background-color: #0f172a !important;
}

.dark-table thead {
    background-color: #111827 !important;
}

.dark-table tbody tr {
    background-color: #0f172a !important;
}

    .dark-table tbody tr:hover {
        background-color: rgba(99, 102, 241, 0.08) !important;
    }

.dark-table th {
    color: #e5e7eb !important;
}

.dark-table td {
    color: #cbd5e1 !important;
}

.dark-date .mud-input-root {
    background-color: #111827 !important;
}

/* ===== FORCE DARK SURFACE ===== */

.dark-surface {
    background-color: #0f172a !important;
    border: 1px solid rgba(148,163,184,0.12);
}

/* Force MudPaper */
.mud-paper {
    background-color: #0f172a !important;
}

/* Force MudTable container */
.mud-table-container {
    background-color: #0f172a !important;
}

/* Force table background */
.mud-table {
    background-color: #0f172a !important;
}

    /* Header */
    .mud-table thead {
        background-color: #111827 !important;
    }

    /* Rows */
    .mud-table tbody tr {
        background-color: #0f172a !important;
    }

        /* Hover */
        .mud-table tbody tr:hover {
            background-color: rgba(99,102,241,0.08) !important;
        }

/* Remove default white alert background */
.mud-alert {
    background-color: rgba(59,130,246,0.08) !important;
}
.mud-popover {
    z-index: 20000 !important;
}

.mud-select-popover {
    z-index: 20000 !important;
}
