/* Main Styles for CryptoX Exchange - Elegant Premium Blue Theme */

/* Mobile Responsive Base Styles */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    
}

:root {
    --primary-gradient: linear-gradient(135deg, #1a2980, #26d0ce); /* Deep blue to teal gradient */
    --secondary-gradient: linear-gradient(135deg, #141e30, #243b55); /* Navy to royal blue gradient */
    --accent-gradient: linear-gradient(135deg, #2c3e50, #4ca1af); /* Dark blue to sea blue gradient */
    --primary-color: #1a2980; /* Deep blue base color */
    --secondary-color: #26d0ce; /* Teal accent color */
    --accent-color: #4ca1af; /* Sea blue accent */
    --accent-color-2: #2c3e50; /* Dark blue accent */
    --accent-color-3: #243b55; /* Royal blue accent */
    --danger-color: #E53935; /* Refined red for negative values/alerts */
    --dark-color: #0c1219; /* Rich dark background */
    --light-color: #E0E6ED; /* Soft light text color */
    --text-color: #E0E6ED; /* Soft light text color */
    --text-muted: #8796A5; /* Muted text color */
    --border-color: rgba(30, 40, 58, 0.8); /* Elegant borders */
    --background-color: #0c1219; /* Rich dark background */
    --card-background: #151f2e; /* Premium card background */
    --glass-effect: rgba(30, 40, 58, 0.5); /* Subtle glass effect */
    --gradient-1: linear-gradient(135deg, #1a2980, #26d0ce); /* Deep blue to teal gradient */
    --gradient-2: linear-gradient(135deg, #141e30, #243b55); /* Navy to royal blue gradient */
    --gradient-3: linear-gradient(135deg, #2c3e50, #4ca1af); /* Dark blue to sea blue gradient */
    --positive-color: #00BFA5; /* Refined green for positive values */
    --negative-color: #E53935; /* Refined red for negative values */
}

/* Gradient Button Styles */
.gradient-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.3);
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.gradient-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 41, 128, 0.4);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--card-background), var(--card-background)) padding-box,
                var(--primary-gradient) border-box;
    border-radius: 4px;
}

.gradient-card {
    background: linear-gradient(135deg, rgba(110, 69, 226, 0.1), rgba(136, 211, 206, 0.1));
    border: 1px solid rgba(110, 69, 226, 0.3);
    border-radius: 4px;
    padding: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--light-color); /* Ensure all text is visible against dark backgrounds */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--background-color);
    /* Remove textured background for cleaner look */
}

#page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content-wrap {
    flex: 1 0 auto;
}

body {
    min-height: 100vh;
    background-color: var(--background-color);
}

.container {
    flex: 1 0 auto;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}

/* Header Styles */
header {
    background: var(--dark-color);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--light-color);
    text-decoration: none;
    z-index: 101; /* Keep logo above mobile menu */
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

.logo span {
    color: var(--secondary-color);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Navigation Active Tab Styling */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-nav ul li.active a {
    color: var(--secondary-color);
}

.main-nav ul li.active a::after,
.main-nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101; /* Keep button above mobile menu */
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Hamburger Animation */
.mobile-menu-open .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-open .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav ul li {
    margin-left: 20px;
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Auth buttons styling */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* User menu styling */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-menu-toggle:hover {
    background-color: rgba(201, 27, 27, 0.05);
}

.user-menu-toggle img {
    margin-right: 8px;
}

.user-menu-toggle .mobile-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.user-menu.active .mobile-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-width: 180px;
    display: none;
    z-index: 100;
}

.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown ul {
    display: block;
    padding: 10px 0;
}

.user-dropdown ul li {
    margin: 0;
}

.user-dropdown ul li a {
    padding: 8px 15px;
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown ul li a:hover {
    background-color: rgba(0,0,0,0.05);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-menu-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* margin-right: 8px; */
    margin-top: 10px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    width: 200px;
    display: none;
    z-index: 10;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown ul {
    display: block;
    padding: 10px 0;
}

.user-dropdown ul li {
    margin: 0;
}

.user-dropdown ul li a {
    display: block;
    padding: 8px 20px;
}

.user-dropdown ul li a:hover {
    background-color: rgba(26, 45, 94, 0.5);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.25);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a2980, #1a2980);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 41, 128, 0.4);
}

.btn-secondary {
    background-color: rgba(30, 40, 58, 0.4);
    color: var(--secondary-color);
    border: 1px solid rgba(38, 208, 206, 0.3);
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
 
    border-radius: 6px;
    padding: 10px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(30, 40, 58, 0.6), rgba(30, 40, 58, 0.8));
    color: var(--secondary-color);
    border: 1px solid rgba(38, 208, 206, 0.5);
    box-shadow: 0 6px 18px rgba(38, 208, 206, 0.25), 0 0 0 1px rgba(38, 208, 206, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--dark-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--gradient-1);
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid var(--glass-effect);
    box-shadow: 0 8px 32px 0 rgba(147, 112, 219, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.1); /* Enhanced shadow with purple glow */
    border-radius: 16px; /* Softer corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    padding: 25px;
}

.feature-card:hover {
    transform: translateY(-8px); /* Subtle lift on hover */
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--light-color);
    font-weight: 700; /* Bolder for impact */
    letter-spacing: -0.02em; /* Tighten spacing for elegance */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

/* Market Overview */
.market-overview {
    background: var(--gradient-1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(147, 112, 219, 0.2), 0 0 0 1px rgba(255, 215, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid var(--glass-effect);
    position: relative;
    overflow: hidden;
}

.market-overview h2 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.table-responsive, .crypto-table {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

.positive {
    color: var(--secondary-color);
}

.negative {
    color: var(--danger-color);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-effect);
    color: var(--light-color);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 10px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    min-height: calc(100vh - 200px);
}

.dashboard-sidebar {
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.9), rgba(26, 45, 94, 0.7));
    border: 1px solid var(--glass-effect);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar ul li {
    margin-bottom: 10px;
}

.dashboard-sidebar ul li a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--light-color);
    transition: all 0.3s;
}

.dashboard-sidebar ul li a:hover, .dashboard-sidebar ul li a.active {
    background-color: rgba(240, 185, 11, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    box-shadow: none;
}

.dashboard-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    height: fit-content;
    min-height: 100%;
}

/* Wallet Section */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wallet-card {
    background: var(--gradient-2);
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid var(--glass-effect);
    box-shadow: 0 8px 32px 0 rgba(0, 191, 255, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.15); /* Enhanced shadow with blue glow */
    border-radius: 16px; /* Softer corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    padding: 25px;
}

.wallet-card:hover {
    transform: translateY(-8px); /* Subtle lift on hover */
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.wallet-card:hover::before {
    left: 100%;
}

.wallet-card h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700; /* Bolder for impact */
    letter-spacing: -0.02em; /* Tighten spacing for elegance */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

.wallet-balance {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

#wallet-info {
    margin-top: 25px;
    background: rgba(26, 45, 94, 0.3);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#wallet-info p {
    margin: 0 0 15px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

#wallet-address {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#qrcode {
    background: rgba(26, 45, 94, 0.8);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    border: 1px solid var(--secondary-color);
}

#copy-button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#copy-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wallet-action-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-action-card:hover {
    transform: translateY(-5px);
}

.wallet-action-card h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* Cards and Panels */
.dashboard-content, .form-container, .market-overview, .order-book, .order-form, .chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    color: var(--light-color);
}

.dashboard-sidebar {
    background: rgba(30, 30, 30, 0.7); /* Darkened for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar ul li a {
    color: var(--light-color);
}

.dashboard-sidebar ul li a:hover, .dashboard-sidebar ul li a.active {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Tables */
table th {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    flex-shrink: 0;
    background: var(--dark-color);
    width: 100%;
}

.site-footer {
    background: linear-gradient(to top, var(--dark-color), rgba(10, 14, 23, 0.9));
    border-top: 1px solid var(--secondary-color);
    color: var(--light-color);
    padding: 50px 0 20px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.footer-column h3 {
    color: var(--secondary-color);
}

.footer-column ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Responsive */
/* @media (max-width: 510px) {
    .dashboard-grid, .trading-grid {
        grid-template-columns: 1fr;
       
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .dashboard-sidebar{
        flex-direction: row;
        
    }
} */

/* Responsive Layout Enhancements */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-sidebar {
    flex: 1 1 200px;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.9), rgba(26, 45, 94, 0.7));
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-effect);
}

.dashboard-content {
    flex: 3 1 600px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .dashboard-grid {
        flex-direction: column;
    }
    .crypto-table table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }
    .crypto-table table thead {
        display: none;
    }
    .crypto-table table tr {
        display: block;
        margin-bottom: 10px;
        background: var(--card-background);
        padding: 10px;
        border: 1px solid var(--glass-effect);
        border-radius: 6px;
        color: var(--light-color);
    }
    .crypto-table table td {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
    }
    .crypto-table table td::before {
        content: attr(data-label);
        font-weight: bold;
    }
}

.crypto-table table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table table th, .crypto-table table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

.positive {
    color: var(--secondary-color);
}

.negative {
    color: var(--danger-color);
}

/* Trading Section */
.trading-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-container {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
    border: 1px solid var(--glass-effect);
    color: var(--light-color);
}

.order-book {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-effect);
    color: var(--light-color);
}

.order-form {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border: 1px solid var(--glass-effect);
    color: var(--light-color);
}

.order-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.order-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.order-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 10px;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        background: linear-gradient(145deg, var(--dark-color), var(--card-background));
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul li a {
        padding: 15px 0;
        font-size: 16px;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
    }
    
    .auth-buttons a {
        width: 100%;
        text-align: center;
    }
    
    /* User dropdown in mobile */
    .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    .user-dropdown {
        position: static;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        width: 100%;
    }
    
    .user-dropdown ul li a {
        padding-left: 20px;
    }
    
    /* Add overlay when mobile menu is open */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 99;
    }
    
    body.mobile-menu-open .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 510px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .market-overview {
        overflow-x: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
   
    
    /* Footer responsive styles */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Form responsiveness */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
    }
    
    .form-inline {
        flex-direction: column;
    }
}

@media (max-width: 250px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        width: 95%;
        padding: 15px 0;
    }
}

.stat-card {
    background: rgba(40, 40, 40, 0.8); /* Darkened for contrast */
    padding: 20px;
    color: var(--light-color);
    border-radius: 10px;
    text-align: center;
}

/* About Section */
.about-section {
    background: linear-gradient(145deg, var(--card-background), rgba(30, 40, 58, 0.7));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(38, 208, 206, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--light-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-section {
    background: linear-gradient(145deg, var(--card-background), rgba(30, 40, 58, 0.7));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(38, 208, 206, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-form-container {
    margin-top: 30px;
}

.about-section h2 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.about-section p {
    color: var(--light-color);
    margin-bottom: 15px;
}

/* Recent Users and Transactions */
.recent-users, .recent-transactions, .pending-withdrawals {
    background: linear-gradient(145deg, var(--card-background), rgba(30, 40, 58, 0.7));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(38, 208, 206, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--light-color);
    overflow-x: auto;
    transition: all 0.3s ease;
}

.recent-users h3, .recent-transactions h3, .pending-withdrawals h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 10px;
}

.recent-users h3::after, .recent-transactions h3::after, .pending-withdrawals h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.recent-users table, .recent-transactions table, .pending-withdrawals table {
    width: 100%;
    border-collapse: collapse;
}

.recent-users table th, .recent-transactions table th, .pending-withdrawals table th {
    background-color: transparent;
    color: var(--light-color);
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.recent-users table td, .recent-transactions table td, .pending-withdrawals table td {
    padding: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light-color);
}

.recent-users table tr:hover, .recent-transactions table tr:hover, .pending-withdrawals table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Enhanced luxurious styles */
h1, h2, h3, .feature-card h3, .wallet-card h3 {
    font-weight: 500;
    letter-spacing: normal;
    color: var(--light-color);
    margin-bottom: 15px;
    text-shadow: none;
}

/* Clean borders */
.card, .wallet-card, .feature-card, .dashboard-content, .market-overview {
    border: 1px solid var(--border-color);
}

/* Add colorful hover effects for links */
a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* Enhanced footer links */
.site-footer a {
    position: relative;
    z-index: 20;
    display: inline-block;
    padding: 5px 0;
}

.site-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.card, .wallet-card, .feature-card, .dashboard-content {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover, .wallet-card:hover, .feature-card:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
    box-shadow: 0 12px 30px rgba(26, 41, 128, 0.2);
    border: 1px solid rgba(38, 208, 206, 0.2);
}

/* Remove shine effect for cleaner look */
.card::before, .wallet-card::before, .feature-card::before, .dashboard-content::before, .market-overview::before {
    display: none;
}

/* Remove hover animation */
.card:hover::before, .wallet-card:hover::before, .feature-card:hover::before, .dashboard-content:hover::before, .market-overview:hover::before {
    display: none;
}

/* Simplified hover effect */
.card:hover, .wallet-card:hover, .feature-card:hover, .dashboard-content:hover, .market-overview:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Remove pulsing animation for cleaner look */
.btn-primary, .wallet-balance, .logo {
    animation: none;
}

/* Table styles with premium blue theme hover */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    table-layout: fixed;
}

table tr:hover {
    background-color: rgba(26, 41, 128, 0.08) !important;
    transition: background-color 0.2s ease;
}

table th {
    background-color: rgba(20, 30, 48, 0.8) !important;
    color: var(--secondary-color) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(38, 208, 206, 0.1);
    font-size: 0.95rem;
}

.crypto-table {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
}

.crypto-table table {
    width: 100%;
}

.crypto-table table tr:hover {
    background-color: rgba(26, 41, 128, 0.08) !important;
}

.crypto-table table th {
    background-color: rgba(20, 30, 48, 0.8) !important;
    color: var(--secondary-color) !important;
}

/* Wallet Card Styles */
.wallet-card {
    background: linear-gradient(145deg, var(--card-background), rgba(30, 40, 58, 0.7));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(38, 208, 206, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wallet-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

.wallet-balance {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wallet-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 12px;
}

.wallet-card .btn {
    font-size: 0.9rem;
    padding: 5px 12px;
}

/* Wallet Detail Page Styles */
.wallet-detail .wallet-card {
    padding: 20px;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.wallet-detail .wallet-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.wallet-detail .wallet-balance {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color-2);
}

.wallet-detail #wallet-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.wallet-detail #wallet-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.wallet-detail #qrcode {
    margin: 15px 0;
}

.wallet-detail #copy-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dashboard Welcome Headings */
.dashboard-content h2 {
    color: var(--accent-color-2);
}

.dashboard-content h3 {
    color: var(--primary-color);
}

/* Agent Dashboard Styles */
.agent-summary p {
    margin-bottom: 10px;
}

.agent-summary .btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.agent-summary .btn-secondary {
    background-color: var(--dark-color);
    color: var(--light-color);
    border: 1px solid var(--border-color);
}

/* Wallet Cards Container */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Utility Classes */
.view-all-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(38, 208, 206, 0.05);
    border: 1px solid rgba(38, 208, 206, 0.1);
    margin-top: 10px;
}

.view-all-link:hover {
    color: var(--secondary-color);
    background-color: rgba(38, 208, 206, 0.1);
    border: 1px solid rgba(38, 208, 206, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.1);
}

.inline-form {
    display: inline;
}

/* Dashboard Welcome Headings */
.dashboard-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 8px;
}

.dashboard-content h3                                                                                                       ::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.agent-content h3 {
    color: var(--secondary-color);
}

.agent-content h3.accent {
    color: var(--secondary-color);
}

/* Table Action Styles */
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.table-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
}

.table-actions .update-form {
    flex: 1;
    min-width: 200px;
}

.table-actions .delete-form {
    flex: 0 0 auto;
}

.table-actions .input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.table-actions .form-control {
    width: 90px;
    min-width: 90px;
    height: 36px;
    padding: 6px 10px;
    font-size: 0.85rem;
    background-color: rgba(30, 40, 58, 0.4);
    border: 1px solid rgba(38, 208, 206, 0.2);
    color: var(--light-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.table-actions .form-control:focus {
    background-color: rgba(30, 40, 58, 0.6);
    border-color: rgba(38, 208, 206, 0.5);
    box-shadow: 0 0 0 2px rgba(38, 208, 206, 0.2);
    outline: none;
}

.table-actions .btn {
    padding: 6px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 90px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-block !important;
    text-align: center;
    margin: 0;
}

.table-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(26, 41, 128, 0.2);
}

.table-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 41, 128, 0.3);
}

.table-actions .btn-danger {
    background-color: var(--danger-color);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

.table-actions .btn-danger:hover {
    background-color: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.3);
}

/* Make sure table columns have appropriate widths */
table th:last-child,
table td:last-child {
    width: 280px;
    min-width: 280px;
}

/* For smaller screens, stack the action buttons */
@media (max-width: 992px) {
    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions form {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .table-actions form button {
        display: block !important;
        width: 100%;
        margin-top: 8px;
    }
    
    table th:last-child,
    table td:last-child {
        width: 200px;
        min-width: 200px;
    }
}

.menupate{
    background-color: red;
}