:root {
    --primary-color: #00d4ff;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --warning-color: #ffaa00;
    --dark-bg: #0f0f1e;
    --card-bg: #1e1e3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0099cc);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(45deg, #0099cc, var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #00cc66);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #cc0044);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 51, 102, 0.1) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-10px) translateY(-10px); }
}

/* Price Ticker */
.price-ticker {
    background: rgba(30, 30, 58, 0.8);
    padding: 15px 0;
    margin: 30px 0;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
}

.scrolling-ticker {
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.price-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.price-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.crypto-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.price-change.positive {
    color: var(--success-color);
}

.price-change.negative {
    color: var(--danger-color);
}

/* Feature Cards */
.feature-card {
    background: rgba(30, 30, 58, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: rgba(30, 30, 58, 0.9);
    border-radius: 15px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.dashboard-content {
    background: rgba(30, 30, 58, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-left: 20px;
    backdrop-filter: blur(10px);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 51, 102, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-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: all 0.5s ease;
}

.stats-card:hover::before {
    left: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

/* Trading Pairs */
.trading-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.trading-pair:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

/* Transaction Rows */
.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.transaction-row:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

/* Form Styles */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group-text {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
}

/* Table Styles */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 212, 255, 0.05);
    --bs-table-hover-bg: rgba(0, 212, 255, 0.1);
}

.table th {
    border-color: rgba(0, 212, 255, 0.3);
    font-weight: 600;
}

.table td {
    border-color: rgba(0, 212, 255, 0.2);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Status Styles */
.status-pending {
    color: var(--warning-color);
}

.status-approved {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

/* Animation Classes */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .price-item {
        margin: 0 15px;
        min-width: 150px;
    }
    
    .dashboard-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .trading-pair {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .transaction-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* Text Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0099cc;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    margin-top: 50px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

footer a {
    color: #888;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Progress Bar Styles */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: all 0.5s ease;
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: #ffffff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

/* Utility Classes */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.border-glow {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.bg-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 51, 102, 0.1) 100%);
}

/* Print Styles */
@media print {
    .navbar, .btn, .modal { display: none !important; }
    body { background: white !important; color: black !important; }
    .feature-card { border: 1px solid #ccc !important; background: white !important; }
}