:root {
    --primary-color: #ff9900;
    --secondary-color: #ffcc00;
    --text-dark: #222;
    --text-medium: #888;
    --background-light: #f9f9f9;
    --background-white: #fff;
    --shadow-elevation-1: 0 2px 6px rgba(0,0,0,0.1);
    --shadow-elevation-2: 0 -3px 10px rgba(0,0,0,0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--background-light);
    color: var(--text-dark);
    padding-bottom: 70px; /* bottom nav space */
}

.top-header {
    background: var(--secondary-color);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-elevation-1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.ai-label {
    color: #ff0000;
    font-weight: 700;
    margin-right: 5px;
}

.search-box input {
    width: 98%;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 15px;
}
 
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffc107;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 9999;
}

.bottom-nav .tab-item {
    text-align: center;
    flex: 1;
}

.bottom-nav .tab-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: color 0.3s;
}

.bottom-nav .tab-item a .icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav .tab-item a:hover,
.bottom-nav .tab-item a.active {
    color: #007bff; /* Active color */
}

/* Market Overview */
.merview {color: red; margin-left: 0; margin-top: 18px;}
.market-overview {display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 15px; padding: 20px; margin-top: -14px;}
.overview-card {background: white; border-radius: 12px; padding: 20px; box-shadow: 0 3px 8px rgba(0,0,0,0.08);}
.overview-card p {margin:0; color:#777;}
.overview-card h2 {margin-top:8px; font-size:24px;}

/* Top Crypto Header */
.top-crypto-header {display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; flex-wrap:wrap;}
.view-switcher {display:flex; gap:10px; padding: 33px 30px;}
.btn-view {background:transparent; border:none; font-size:18px; cursor:pointer; padding:6px 10px; border-radius:8px; transition: all 0.2s;}
.btn-view.active {color:#ff9900; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.1);}
@media (max-width:480px) {.top-crypto-header {flex-direction:column; align-items:flex-start; gap:10px;}}

/* Crypto Grid / List */
.crypto-section {padding:20px; background-color:#f8f9fa;}
.crypto-grid {display:grid; grid-template-columns:repeat(3,1fr); gap:20px; transition: all 0.3s ease;}
.crypto-grid.list {display:flex; flex-direction:column;}
.crypto-card {background-color:#fff; border-radius:12px; padding:15px; box-shadow:0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;}
.crypto-card:hover {transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,0.12);}
.card-header {display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.coin-info {display:flex; align-items:center; gap:10px;}
.coin-info img {width:36px; height:36px;}
.coin-name {font-weight:700; font-size:16px;}
.coin-fullname {font-size:12px; color:#6c757d;}
.badge {padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700;}
.text-success {background-color:#e6f4ea; color:#28a745;}
.price-label {font-size:12px; color:#6c757d; margin-bottom:2px;}
.coin-price {font-weight:700; font-size:18px; margin-bottom:10px;}
.mini-chart {width:100%; height:50px; background:linear-gradient(to top,#cce5ff 30%,#fff 30%); border-radius:6px;}

/* Responsive */
@media (max-width:992px) {.crypto-grid {grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px) {.crypto-grid {grid-template-columns:1fr;}}
.fw-bold.mb-0 {
	margin-left: 20px;
	font-size: 20px;
}
/* FOOTER */
.card-footer {
    display: flex;
    justify-content: space-between;
}

.card-footer span {
    font-weight: 600;
}



 

/* --- Header Section (Yellow Bar) --- */
.order-header {
    background-color: #ffc107; /* Yellow background */
    width: 100%;
    padding: 15px 0; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Deep, soft shadow */
    display: flex;
    align-items: center;
    position: relative; /* লোগো পজিশন করার জন্য */
    border-bottom: 3px solid #f7a000; /* Darker yellow accent line */
}

/* --- ✅ Logo (IMG) Styling --- */
.logo-img {
    width: 45px; 
    height: 45px;
    object-fit: cover;  
    border-radius: 50%; /* ইমেজটিকে গোলাকার রাখার জন্য */
    
    /* Positioning (হেডারের বাম দিকে বসানোর জন্য) */
    position: absolute;
    left: 25px; 
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); /* লোগোর চারপাশে সাদা রিং */
}
/* --- ⬆️ Logo Styling End --- */

.order-header-title {
    color: #333;
    font-size: 2em; /* টাইটেল আরও বড় */
    font-weight: 600; 
    margin: 0;
    padding-left: 90px; /* লোগো ও টাইটেলের মাঝে পর্যাপ্ত জায়গা */
}

/* --- Main Container for Order Cards --- */
.order-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    padding: 40px 20px;
    width: 100%; 
    max-width: 1200px; 
}

/* General Card Styling */
.order-card {
    background-color: #ffffff;
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    padding: 25px;
    flex: 1; 
    min-height: 450px; 
    transition: transform 0.3s ease; 
}

.order-card:hover {
    transform: translateY(-3px); 
}

.order-card h3 {
    font-size: 1.6em;
    color: #2c3e50; 
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee; 
}

/* --- Active Orders Styling --- */
.active-orders-card h3 {
    border-bottom: none; 
}

.no-active-orders {
    text-align: center;
    padding: 80px 0;
    color: #95a5a6; 
}

.hourglass-icon {
    font-size: 5em; 
    color: #ecf0f1; 
    margin-bottom: 15px;
    display: block; /* ডিসপ্লে ব্লক নিশ্চিত করা হলো */
}

/* --- Closed Orders Styling --- */
.closed-order-item {
    border: 2px solid #d4edda; 
    background-color: #f8fcf9; 
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.closed-order-item:hover {
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.1);
}

.order-details-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.buy-info {
    font-size: 1.2em;
    font-weight: 700;
    color: #28a745; 
    background-color: #e6ffed;
    padding: 5px 10px;
    border-radius: 5px;
}

.amount-info {
    text-align: right;
}

.amount-label {
    display: block;
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
}

.amount-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #34495e; 
}

.asset-name {
    font-size: 1.8em;
    font-weight: 800;
    color: #2c3e50;
    margin-top: 0; 
    margin-bottom: 20px;
}

.order-details-bottom {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-top: 1px dashed #ecf0f1;
    padding-top: 15px;
}

.detail-group {
    font-size: 0.95em;
    margin-right: 15px;
    flex-basis: 30%; 
}

.detail-label {
    display: block;
    color: #7f8c8d;
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: #34495e;
}

.profit-up {
    color: #28a745; 
    font-size: 1.2em;
}

.completed-info {
    font-size: 0.8em;
    color: #b3c0c5;
    margin-top: 15px;
    border-top: 1px solid #f0f2f5;
    padding-top: 8px;
    text-align: right;
}


 .market-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    font-family: "Poppins", sans-serif; 
}

.order-box, .chart-box, .stats-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.market-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.crypto-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f9ff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.crypto-selected img {
    width: 28px;
    margin-right: 6px;
}

.leverage-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.lev-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.lev-btn.active {
    background: #007bff;
    color: #fff;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    background: #fff8d7;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.calc-box {
    background: #f2f7ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.buy-up {
    flex: 1;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
}

.buy-down {
    flex: 1;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
}

.stats-box {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
}

.stats-box .stat {
    text-align: center;
}
