/* --- BASE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    background: radial-gradient(circle at top, #0a1428, #030712);
    color: #dbe7ff;
    min-height: 100vh;
}

.app {
    display: flex;
    height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0a132b, #050a18);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.logo {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #3b82f6;
}

.sidebar nav a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 6px;
    color: #b8c4f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s ease;
}

.sidebar nav a:hover {
    background: rgba(59,130,246,0.12);
    color: #ffffff;
}

.sidebar nav .active {
    background: rgba(59,130,246,0.18);
    color: #ffffff;
}

.logout {
    margin-top: auto;
    color: #ff6b6b !important;
}

/* --- MAIN --- */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- TOP BAR --- */
.topbar {
    height: 70px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(8,16,40,0.65);
    backdrop-filter: blur(6px);
}

/* --- CONTENT --- */
.content {
    padding: 26px;
    overflow-y: auto;
}

/* --- CARDS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.card {
    background: linear-gradient(160deg, #0b1a38, #060f22);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.04);
}

/* --- MARKET AREA --- */
.market-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.chart-box,
.market-table {
    background: linear-gradient(160deg, #0b1a38, #060f22);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.04);
    min-height: 500px;
}

/* --- PAGE BOX --- */
.page-box {
    background: linear-gradient(160deg, #0b1a38, #060f22);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.04);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0a132b;
    color: #ffffff;
}

button.primary {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* ======================================================
   TRANSACTION HISTORY (EXCHANGE STYLE)
   ====================================================== */

.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.tx-table th,
.tx-table td {
    padding: 12px 10px;
    font-size: 14px;
}

.tx-table th {
    color: #8ea2ff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tx-table td {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Type badges */
.tx-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.tx-deposit {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.tx-withdraw {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* Status badges */
.tx-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: rgba(34,197,94,0.18);
    color: #22c55e;
}

.status-pending {
    background: rgba(245,158,11,0.18);
    color: #f59e0b;
}

.status-failed {
    background: rgba(239,68,68,0.18);
    color: #ef4444;
}

/* Amounts */
.amount-positive {
    color: #22c55e;
    font-weight: 600;
}

.amount-negative {
    color: #ef4444;
    font-weight: 600;
}

/* 🌐 GLOBAL FLOATING GLOBE */
.floating-globe{
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 999999;
    user-select: none;
}

.lang-menu{
    position: fixed;
    background: #0a132b;
    padding: 10px;
    border-radius: 10px;
    display: none;
    z-index: 999999;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lang-menu button{
    display: block;
    width: 100%;
    background: #111c44;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    text-align: left;
}

.lang-menu button:hover{
    background: #1b2c66;
}
