/* Investment Platform - Custom Styles */

/* Purchase Workflow Styling */
.link-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-card.border-success {
    border-color: #198754 !important;
    background-color: #f8f9fa;
}

.modal-xl .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.notification-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.timer-warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.work-progress {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    border-radius: 10px;
    padding: 10px;
    color: white;
    font-weight: bold;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Enhanced Link Cards */
.link-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.link-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.link-card.border-success .card-header {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white !important;
}

.link-card .progress {
    border-radius: 50px;
    overflow: hidden;
    background-color: #e9ecef;
}

.link-card .progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

/* Platform Icon Colors */
.fab.fa-youtube { color: #FF0000 !important; }
.fab.fa-facebook { color: #1877F2 !important; }
.fab.fa-instagram { color: #E4405F !important; }
.fab.fa-twitter { color: #1DA1F2 !important; }
.fab.fa-tiktok { color: #000000 !important; }
.fab.fa-linkedin { color: #0077B5 !important; }
.fab.fa-pinterest { color: #BD081C !important; }
.fab.fa-reddit { color: #FF4500 !important; }
.fab.fa-discord { color: #5865F2 !important; }
.fab.fa-telegram { color: #0088CC !important; }
.fab.fa-github { color: #181717 !important; }
.fab.fa-twitch { color: #9146FF !important; }
.fab.fa-whatsapp { color: #25D366 !important; }

/* Work Interface Enhancements */
.modal-xl .modal-dialog {
    max-width: 1200px;
}

.work-session-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.task-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
}

/* Progress Summary Card */
.progress-summary {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,123,255,0.2);
}

.progress-summary .progress {
    height: 12px;
    border-radius: 50px;
    background-color: rgba(255,255,255,0.2);
}

.progress-summary .progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success State */
.link-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745 !important;
}

.link-completed .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

/* Timer Warning */
.timer-warning {
    color: #dc3545 !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220,53,69,0.5);
}

/* Responsive spacing */
@media (max-width: 768px) {
    .modal-xl .modal-dialog {
        margin: 10px;
        max-width: none;
    }
    
    .link-card {
        margin-bottom: 1.5rem;
    }
}

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    --gradient-info: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

/* Changeable Background Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(108, 117, 125, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0.1" /></linearGradient></defs><rect width="1200" height="800" fill="url(%23grad1)"/><g fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"><path d="M0 200 Q300 100 600 200 T1200 200"/><path d="M0 400 Q300 300 600 400 T1200 400"/><path d="M0 600 Q300 500 600 600 T1200 600"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.auth-body {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(25, 135, 84, 0.1)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(13,110,253,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-attachment: fixed;
}

.dashboard-body {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="radial1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.05" /><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0.05" /></radialGradient></defs><rect width="1200" height="800" fill="url(%23radial1)"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Text Visibility Enhancements */
.text-contrast {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bg-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(13, 110, 253, 0.9) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* Hero Section Styles */
.hero-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

/* Authentication Styles */
.auth-form-container {
    max-width: 450px;
    width: 100%;
    padding: 2rem;
}

.auth-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form .form-control {
    border-radius: 10px;
    border: 2px solid rgba(13, 110, 253, 0.1);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.auth-form .input-group-text {
    border-radius: 10px 0 0 10px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

/* Dashboard Styles */
.welcome-card {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: none;
}

.quick-actions {
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.balance-card {
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.balance-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.user-id-badge {
    font-size: 0.875rem;
}

/* Wallet Styles */
.wallet-summary {
    transition: all 0.3s ease;
}

.wallet-summary:hover {
    transform: scale(1.02);
}

.qr-code-placeholder {
    max-width: 200px;
    margin: 0 auto;
}

/* Investment Plans Table */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.1);
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

/* Investment Cards */
.investment-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.investment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.investment-item {
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
}

.investment-item:hover {
    background: rgba(13, 110, 253, 0.1);
}

/* Step Icons */
.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Process Steps */
.process-step {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.process-step i {
    width: 20px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border: none;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #9333ea, #6d28d9);
    color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.quick-amount {
    transition: all 0.3s ease;
}

.quick-amount:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 4px;
    background: var(--gradient-success);
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background: var(--light-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .auth-body {
        background-attachment: scroll;
    }
    
    .dashboard-body {
        background-attachment: scroll;
    }
    
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .hero-card {
        margin-top: 2rem;
    }
    
    .balance-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .table {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--success-color)) 1;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.4em solid rgba(13, 110, 253, 0.25);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(52, 58, 64, 0.95));
    backdrop-filter: blur(10px);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}