:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sidebar: #1e293b;
    --bg-card: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Dashboard Layout mobile  */
@media (max-width: 800px) {
    .dashboard {
    min-height: 100vh;
}
.witdh-set{
    width: 100%;
    overflow: auto;
}
}


/* Dashboard Layout desktop  */
@media (min-width: 800px) {
    .dashboard {
    display: flex;
    min-height: 100vh;
}
}



.sidebar.collapsed {
    width: 70px;
}





/* Sidebar */
.sidebar {
    width: 280px !important;
    background: var(--bg-sidebar);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
}

.user-profile {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.user-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.user-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-inverse);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-inverse);
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.session-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.session-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--bg-primary);
    padding: 7px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.breadcrumb nav {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-notification {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
}

.user-dropdown {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--bg-secondary);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px var(--shadow);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 1rem 2rem 0rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-icon {
    font-size: 4rem;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

/* Session Details */
.session-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -280px;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.collapsed {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 4px;
    }
    
    .topbar {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .session-details {
        grid-template-columns: 1fr;
    }
}

.otm_ce{
    background-color: #09d94794;
}
.atm_ce{
    background-color: #00e73a;
}
.otm_pe{
    background-color: #ff8e8e;
}
.atm_pe{
    background-color: #ff4242;
}

.otm_ce:hover{
    background-color: #79d67094;
    font-size: 15px !important;
    padding: 4.3px;
}

.atm_ce:hover{
    background-color: #6ef38f;
    font-size: 15px !important;
    padding: 4.3px;
}
.otm_pe:hover{
    background-color: #e4bfbf;
    font-size: 15px !important;
    padding: 4.3px;
}
.atm_pe:hover{
    background-color: #ffa4a4;
    font-size: 15px !important;
    padding: 4.3px;
}

.atm{
    background-color: #2a3133;
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.atm:hover{
    background-color: #535353;
    color: white !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}


.oc-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0px;
    border-radius: 5px;
    justify-content: space-between;
    min-width: 800px;
}

.oc-block {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    border-right: solid 1px #353535;
}

.oc-line {
    width: 2px;
    background: rgb(209, 206, 206);
    margin: 0 20px;
}
.ce { 
    color: #000000;
    font-size: 14px;
    padding: 5px;
    cursor: pointer;
}
.pe { 
    color: #000000; 
    font-size: 14px;
    padding: 5px;
    cursor: pointer;
}

.strike {
    font-weight: 400;
    color: rgb(251 251 251);
    font-size: 13px;
    background-color: #494949;
}


.login-btn {
    background: #10b981;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(16,185,129,0.3);
    transition: 0.3s;
}

.login-btn:hover {
    background: #0e9f6e;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    gap: 15px;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-box {
background: #00d71c52;
    padding: 8px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #117307;
    font-weight: 500;
}
li {
    font-size: 14px;
}
.result-box ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.session-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.session-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.session-message.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.session-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.timer-display {
    display: flex;
    flex-direction: column;
}

.timer-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.timer-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #d1fae5;
    border-radius: 20px;
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.status-indicator.active {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.session-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.session-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.demo-credentials {
    text-align: center;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.session-info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e40af;
}

.session-info-box i {
    font-size: 1.25rem;
}
.nav-item{
    cursor: pointer;
}
.modal-overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Modal content box */
.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  position: relative;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* reuse spinner + result-box styles */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.2);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-box ul {
  padding-left: 20px;
  margin: 0;
}
#indexltp{
    font-size: 15px;
    font-weight: 700;
}



.hed{
margin-left: 26px;
}
.key{
   font-size: 12px;
   margin-left: 10px;
}

.symbol{
    font-size: 14px;
    font-weight: 600;
}
.all-clients {
    display: flex;
    overflow-x: auto;
    padding: 4px 18px 12px 19px;
    gap: 14px;
    width: 100%;
    /* white-space not needed for flex; remove or keep — not required */
    -webkit-overflow-scrolling: touch; /* smooth on mobile */
}

/* make each card keep its width so horizontal scroll appears */
.clint-card{
    /* flex: 0 0 300px;   
    min-width: 300px;    */
    box-sizing: border-box;
    background-color: #e9e9e9;
        margin-top: 7px;
    box-shadow: 0px 0px 8px #808080bd;
    border-radius: 12px;
    padding: 10px;
}

.trade-card{
    margin-bottom: 10px;
    margin-bottom: 10px;
    background-color: #dddddd;
    margin-top: 20px;
    margin-bottom: 23px;
    /* box-shadow: -4px 2px 21px #808080b8; */
    border-radius: 12px;
    padding: 6px 0px 9px 0px;
}
.qty-input{

width: 77px;
    border-radius: 4px 4px 0px 0px;
    border: 1px solid #757575bd;
    /* border-bottom: none; */
    text-align: center;
    font-size: 14px;
    padding: 3px 0px;
    /* font-weight: 700; */
    color: #1a1a1a;
    background: #f1e7c400;
}
.price-input{
width: 65px;
    border-radius: 4px;
    border: 1px solid #757575bd;
    text-align: center;
    font-size: 14px;
    padding: 3px 0px;
    /* font-weight: 700; */
    color: #1a1a1a;
}

.input-outer{
display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-inner{
    display: flex;
    /* background: #c7c7c7; */
    padding: 3px 0px 8px 0px;
    border-bottom: solid 2px #a1a1a1;
}
.input-inner2{
display: flex;
    /* padding: 0px 0px 0px 6px; */
    margin-bottom: -4px;
}
#trade-cantrollar{
    height: calc(100vh - 386px);
    overflow: auto;
    padding: 0px 8px 0px 20px;
    width: 100%;
   
    margin-left: -20px;
}
button{
    cursor: pointer;
    padding: 2px 11px;
}
.margin-left-10{
margin-left: 12px;
}
.margin-left-4{
margin-left: 4px;
}

.clint-main{
        display: flex;
    gap: 10px;
    background: #cbcbcb52;
    color: #000000de;
    padding: 10px;
    border-radius: 5px;
    margin-top: 13px;
    font-size: 13px;
            width: 100%;
        overflow: auto;
}

.clint-info{
    display: flex;
    flex-direction: column;
    background: #ededed;
    box-shadow: 0px 0px 8px gray;
    border-radius: 5px;
    padding: 7px;
}
.se7{
   display: flex;
    padding: 0px 10px 0px 10px;
    justify-content: space-between;

}
.se8{
    display: flex;
    padding: 0px 10px 0px 10px;
    justify-content: space-between;
    gap: 10px;
}
.se8 input{
        width: 71px;
        padding: 2px 8px 2px 2px;
    background: transparent;
    color: #000000de;
    border: solid thin #797373;
       text-align: center;
    border-radius: 4px;
}
.se6{
    background: #bfbfbf;
    padding: 4px;
    border-radius: 5px;
}
.px11{
    font-size: 11px;
}
.px12{
    font-size: 12px;
}
.mg{
        margin: 0px 7px 0px -17px;
}
.pnl-main{
        padding: 4px 16px 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pnl{
    font-weight: 900;
    font-size: 15px;
}
.green{
    color: green;
}
.red{
    color: red;
}
.se5{
    padding: 0px 0px 0px 4px;
    display: flex;
    justify-content: space-between;
}
.mprice{
    margin-left: 36px;
        font-size: 13px;
}
.mqty{
    font-size: 13px;
    margin-left: 11px;
}
.price-input2{
    border: none;
    border-bottom: 1px solid #808080a3;
    border-radius: 0px;
    font-size: 13px;
        padding: 4px 0px;
    background: transparent;
    font-weight: 600;
    color: #000000b8;
}

.disabled-btn{
        filter: blur(1px);
    cursor: not-allowed;
        opacity: 0.6;
}
.mktbtn{
background: #dce5ff5e;
    color: #325dfd;
    border: solid thin #367cfdd9;
    border-radius: 4px;
    font-weight: 600;
    height: max-content;
    width: 100%;
}
.lmtbtn{
    background: #fff2c3bf;
    color: #e78200;
    border: solid thin #c7a500;
    border-radius: 4px;
    font-weight: 600;
    height: max-content;
    width: 100%;
}
.cancelbtn{
    background: #ffd9d9;
    color: #ff4444;
}
.lmtbtn:hover{
background: #ffffff;
}
.mktbtn:hover{
background: #ffffff;
}
.xr1{
        display: flex;
    flex-direction: column;
    align-items: center;
}
.xr2{
width: 100%;
    text-align: center;
    font-size: 13px;
    border-radius: 0px 0px 4px 4px;
    border-top: none !important;
    margin-bottom: 5px;
}
.qtyAvail{
    background: #e9d800b8;
    color: #000000e0;
    border: solid thin gray;
}
.qtyNotAvail{
    background: #f9f39cd1;
    color: #555555;
    border: solid thin gray;
}
.OrderFailed{
    background: #ff9595;
    border: solid thin gray;
}
.xr3{
     display: flex;
    border-bottom: solid thin #808080a3;
    padding: 0px 0px 5px 0px;
    margin-top: -3px;
}
.xr4{
    display: flex;
    /* border-bottom: solid thin gray; */
    padding: 5px 0px 0px 0px;
}
.Lex{
   padding: 2px 17px 2px 16px;
}
.daat{
    background: #494df3;
    padding: 1px 4px;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    font-weight: 600;
}
.exit{
    background: #ffe0e0;
    padding: 3px 26px;
    font-size: 13px;
    color: #ef0000;
    font-weight: 600;
    border: solid thin red;
    border-radius: 10px;
    margin-left: 7px;
    cursor: pointer;
    
}
.exit:hover{
    background: #ffffff;
}
.loader {
    width: 18px;
    height: 18px;
    border: 3px solid #ddd;
    border-bottom: 3px solid #ff0000;
    border-right: 3px solid #ff5353dc;
    border-top: 3px solid #ff7b7bc7;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    cursor: not-allowed;
    
}

.defaltsl{
        width: 66px;
    padding: 2px 2px;
    border-radius: 4px;
    border: solid thin gray;
    background: #ffdadacc;
}
.closeCard{
        float: inline-start;
    background: #ffe4e4;
    color: red;
    height: 33px;
    width: 33px;
    text-align: center;
    border-radius: 50%;
    font-size: 20px;
    border: solid thin red;
    margin: -18px 0px 0px -12px;
    cursor: pointer;
}