/* Atd Custom Design System - Premium Dark Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070714;
    --bg-card: rgba(14, 14, 36, 0.65);
    --bg-card-hover: rgba(22, 22, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.15);
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --primary-magenta: #f093fb;
    --primary-pink: #f5576c;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --grad-magenta-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --grad-dark-card: linear-gradient(145deg, rgba(14, 14, 36, 0.9) 0%, rgba(8, 8, 20, 0.9) 100%);
    --grad-glow: linear-gradient(90deg, #00f2fe, #f093fb, #00f2fe);
    --bg-navbar: rgba(7, 7, 20, 0.75);
    --nav-text-shadow: 0 0 10px rgba(255,255,255,0.4);
    --input-bg: #0d0d1e;
}

html[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 242, 254, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --grad-dark-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    --bg-navbar: rgba(248, 250, 252, 0.85);
    --nav-text-shadow: none;
    --input-bg: #f1f5f9;
}

/* Light mode overrides for element colors & readabilities */
html[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .text-white-50 {
    color: var(--text-secondary) !important;
    opacity: 0.85;
}

html[data-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}

html[data-theme="light"] .text-gradient-cyan {
    background: linear-gradient(135deg, #008f9a 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .text-gradient-magenta {
    background: linear-gradient(135deg, #b91c1c 0%, #be185d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .btn-close-white {
    filter: none !important;
}

/* Light mode table & badge styling */
html[data-theme="light"] .table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.02) !important;
    --bs-table-border-color: rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .badge.bg-dark {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Light mode modal overrides */
html[data-theme="light"] .modal-content {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-footer {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light mode sidebar link actions overrides */
html[data-theme="light"] .sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .sidebar-link.active {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.03) 100%) !important;
    color: #008f9a !important;
    border-left: 3px solid #00f2fe !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.05);
    transform: translateY(-4px);
}

/* Gradients and Text Accents */
.text-gradient-cyan {
    background: var(--grad-cyan-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-magenta {
    background: var(--grad-magenta-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-cyan {
    background: var(--grad-cyan-blue);
}

.bg-gradient-magenta {
    background: var(--grad-magenta-pink);
}

/* Glow Elements */
.glow-accent {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-cyan {
    background-color: var(--primary-cyan);
}

.glow-magenta {
    background-color: var(--primary-magenta);
}

/* Navigation bar styling */
.custom-navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.custom-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--text-primary) !important;
    text-shadow: var(--nav-text-shadow);
}

/* Light mode dynamic form controls override */
html[data-theme="light"] input.form-control,
html[data-theme="light"] select.form-select,
html[data-theme="light"] textarea.form-control {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] input.form-control::placeholder {
    color: var(--text-muted) !important;
}

html[data-theme="light"] .input-group-text {
    background-color: var(--input-bg) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

/* Buttons */
.btn-cyan-gradient {
    background: var(--grad-cyan-blue);
    color: #070714;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-cyan-gradient:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5), 0 0 15px rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
    color: #070714;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-2px);
}

/* Crypto Ticker Bar */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 50px;
    background-color: rgba(4, 4, 12, 0.9);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker-slide 35s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.ticker-item img {
    margin-right: 8px;
}

.ticker-item .positive {
    color: #48bb78;
    margin-left: 6px;
}

.ticker-item .negative {
    color: #f56565;
    margin-left: 6px;
}

@keyframes ticker-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Animated Floating Widgets (similar to guide image) */
.hero-widget {
    background: rgba(14, 14, 36, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    position: absolute;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
}

.hero-widget img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.hero-widget:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.widget-bitcoin {
    top: 22%;
    right: 38%;
    animation: float-y 5s ease-in-out infinite alternate;
}

.widget-ethereum {
    top: 38%;
    right: 12%;
    animation: float-y 6s ease-in-out infinite alternate 1s;
}

.widget-uniswap {
    bottom: 25%;
    right: 30%;
    animation: float-y 5.5s ease-in-out infinite alternate 0.5s;
}

.widget-connector-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.widget-connector-line {
    position: absolute;
    background: linear-gradient(180deg, var(--primary-cyan), rgba(0, 242, 254, 0.05));
    width: 1px;
    transform-origin: top center;
}

@keyframes float-y {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-15px);
    }
}

/* Features icons glow background */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    opacity: 0.12;
    z-index: -1;
}

.feature-icon-wrapper.cyan-glow i {
    color: var(--primary-cyan);
    font-size: 1.5rem;
}
.feature-icon-wrapper.cyan-glow::after {
    background-color: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-cyan);
}

.feature-icon-wrapper.magenta-glow i {
    color: var(--primary-magenta);
    font-size: 1.5rem;
}
.feature-icon-wrapper.magenta-glow::after {
    background-color: var(--primary-magenta);
    box-shadow: 0 0 20px var(--primary-magenta);
}

/* Investment pricing plan cards */
.plan-card {
    border-top: 4px solid transparent !important;
}

.plan-card.plan-bronze {
    border-top-color: var(--primary-cyan) !important;
}

.plan-card.plan-silver {
    border-top-color: var(--primary-blue) !important;
}

.plan-card.plan-gold {
    border-top-color: var(--primary-magenta) !important;
}

.plan-card .price {
    font-size: 2.2rem;
    font-weight: 800;
}

/* Dashboard Sidebar Styling */
.dashboard-container {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background: rgba(10, 10, 26, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0.75rem;
    margin: 0;
    flex-grow: 1;
}

.sidebar-item {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.03) 100%);
    border-left: 3px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.dashboard-content {
    flex-grow: 1;
    background-color: var(--bg-dark);
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

/* Custom table styling */
.custom-table {
    color: var(--text-primary) !important;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem !important;
}

.custom-table td {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem !important;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .widget-bitcoin, .widget-ethereum, .widget-uniswap {
        display: none !important;
    }
}
