/* Boxes Cloud - Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --darker-color: #1a1d20;
    --light-color: #f8f9fa;
    --muted-color: #6c757d;
}

/* Body and Layout */
body {
    background: linear-gradient(135deg, #1a1d20 0%, #212529 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), #31d2f2);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--info-color) !important;
    transform: translateY(-1px);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

/* Cryptocurrency Cards */
.crypto-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.crypto-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.crypto-icon {
    transition: transform 0.3s ease;
}

.crypto-card:hover .crypto-icon {
    transform: scale(1.1);
}

.crypto-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0;
}

/* Authentication Styles */
.auth-container {
    background: linear-gradient(135deg, #1a1d20 0%, #212529 100%);
    min-height: 100vh;
}

.auth-brand-section {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    position: relative;
    overflow: hidden;
}

.auth-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/><circle cx="10" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="10" cy="50" r="1"/><circle cx="50" cy="50" r="1"/></g></svg>') repeat;
    z-index: 1;
}

.auth-brand-section > * {
    position: relative;
    z-index: 2;
}

.auth-form-section {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
}

.auth-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    color: #fff !important;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

.auth-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4) !important;
    background: linear-gradient(135deg, #0b5ed7, var(--primary-color)) !important;
}

.auth-form .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-stats .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.auth-stats .stat-item:last-child {
    border-bottom: none;
}

.auth-features .feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Auth page specific body styling */
.auth-container body {
    padding-top: 0 !important;
}

/* Mobile responsive auth */
@media (max-width: 768px) {
    .auth-form-section {
        padding: 2rem !important;
    }
    
    .auth-brand-section {
        padding: 2rem !important;
    }
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.welcome-bonus-alert {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-block;
}

.dashboard-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Professional Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-card-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
}

.stats-content {
    flex: 1;
}

.stats-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stats-change {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Card color variants */
.stats-card-success .stats-icon {
    background: linear-gradient(135deg, #198754, #20c997);
}

.stats-card-primary .stats-icon {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.stats-card-warning .stats-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stats-card-info .stats-icon {
    background: linear-gradient(135deg, #0dcaf0, #20c997);
}

.stats-card-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #198754, #20c997);
}

.stats-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.stats-card-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stats-card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0dcaf0, #20c997);
}

/* Ensure all text is visible */
.text-light-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* General text visibility fixes */
.card-body {
    color: #fff !important;
}

.card-body p, .card-body small, .card-body .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure all text is properly visible */
body {
    color: #fff !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Auth form text visibility */
.auth-form-section .form-label,
.auth-form-section .form-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Support form input visibility */
.support-form input,
.support-form textarea,
.support-form select {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #0d6efd !important;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.auth-form-section h2,
.auth-form-section h3,
.auth-form-section h4 {
    color: #fff !important;
}

/* Card and alert visibility */
.alert {
    color: #fff !important;
}

.card-title, .card-text {
    color: #fff !important;
}

/* Button text visibility */
.btn {
    font-weight: 500;
}

/* Nav text visibility */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Mining Plan Cards */
.mining-plan-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mining-plan-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.6s ease;
}

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

.plan-price {
    margin: 1.5rem 0;
}

.price-currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.price-amount {
    font-weight: 700;
    color: var(--success-color);
}

.price-period {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.feature-icon {
    width: 30px;
    text-align: center;
    margin-right: 1rem;
}

.feature-content {
    flex: 1;
    text-align: left;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(25, 135, 84, 0.1));
    border-radius: 20px;
    padding: 3rem 2rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Wallet Address Cards */
.wallet-address-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(25, 135, 84, 0.1));
    transition: all 0.3s ease;
    border-radius: 12px;
}

.wallet-address-card:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(25, 135, 84, 0.2));
    transform: translateY(-2px);
}

.address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* QR Code Placeholder */
.qr-code-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--muted-color);
    border-radius: 8px;
}

/* Tables */
.table-dark {
    --bs-table-bg: rgba(0, 0, 0, 0.2);
}

.table-dark th {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.1);
}

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

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control.bg-secondary,
.form-select.bg-secondary {
    background-color: rgba(108, 117, 125, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    backdrop-filter: blur(10px);
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

/* Progress bars */
.progress {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.progress-bar {
    border-radius: 10px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(13, 110, 253, 0.5); }
    50% { box-shadow: 0 0 20px rgba(13, 110, 253, 0.8); }
}

.mining-animation {
    animation: float 3s ease-in-out infinite;
}

.mining-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Statistics Cards */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Copy Button Effects */
.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

/* Mining Dashboard Specific */
.mining-progress {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(13, 110, 253, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
}

/* Transaction Type Icons */
.tx-type-deposit { color: var(--success-color); }
.tx-type-withdrawal { color: var(--danger-color); }
.tx-type-mining { color: var(--primary-color); }
.tx-type-purchase { color: var(--warning-color); }

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Support Ticket Status */
.ticket-open { border-left: 4px solid var(--danger-color); }
.ticket-progress { border-left: 4px solid var(--warning-color); }
.ticket-resolved { border-left: 4px solid var(--success-color); }
.ticket-closed { border-left: 4px solid var(--muted-color); }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .feature-badge {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .address-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Dark Theme Enhancements */
.text-light-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-light-75 { color: rgba(255, 255, 255, 0.75) !important; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn { display: none !important; }
    .card { border: 1px solid #ccc !important; }
    body { background: white !important; color: black !important; }
}

/* Focus Indicators for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--light-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
