/* Dashboard Enhancements */
.dashboard-stats-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Currency Rates Styling */
.currency-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.currency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.currency-item .fw-bold {
    font-size: 0.95rem;
}

/* Market Indicators */
.market-indicator {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.market-indicator:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff !important;
}

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

.market-indicator:hover .indicator-icon {
    transform: scale(1.1);
}

/* Investment Timeline */
.investment-timeline {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
}

.timeline-progress .progress {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-progress .progress-bar {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    position: relative;
    overflow: hidden;
}

.timeline-progress .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.timeline-milestone {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--bs-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.milestone-header {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.milestone-details {
    font-size: 0.95rem;
}

.milestone-details > div {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.milestone-details > div:last-child {
    border-bottom: none;
}

/* Performance Metrics */
.performance-metrics .metric-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.performance-metrics .metric-item:last-child {
    border-bottom: none;
}

.performance-metrics .metric-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Chart Containers */
.chart-container {
    position: relative;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.chart-container canvas {
    border-radius: 8px;
}

/* Enhanced Card Styling */
.card.shadow-custom {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card.shadow-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-bottom: 2px solid #f8f9fa;
    font-weight: 600;
}

/* Loading States */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.spinner-border.text-primary {
    color: var(--bs-primary) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .currency-item {
        margin-bottom: 0.75rem;
    }
    
    .market-indicator {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 200px !important;
        padding: 0.75rem;
    }
    
    .timeline-milestone {
        margin-bottom: 1.5rem;
    }
    
    .milestone-details {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .dashboard-stats-card {
        margin-bottom: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .investment-timeline {
        padding: 1rem;
    }
    
    .chart-container {
        height: 180px !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Currency Rate Specific Enhancements */
.currency-item .text-success,
.currency-item .text-danger {
    font-weight: 600;
}

.currency-item small i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Market Indicator Colors */
.market-indicator .text-primary { color: #0d6efd !important; }
.market-indicator .text-success { color: #198754 !important; }
.market-indicator .text-info { color: #0dcaf0 !important; }
.market-indicator .text-warning { color: #ffc107 !important; }

/* Portfolio Chart Enhancements */
#portfolioChart {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

#growthChart {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Enhanced Alert Styling */
.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fab1a0 100%);
    color: #721c24;
}

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

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar for Better UX */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Verification Page Styles */
.verification-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.verification-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(108, 117, 125, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

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

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

.verification-iframe-container {
    position: relative;
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

#verificationFrame {
    border: none;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.verification-badge {
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.verification-badge:hover {
    transform: scale(1.05);
}

.verification-badge.success {
    background: rgba(25, 135, 84, 0.1);
    border: 2px solid rgba(25, 135, 84, 0.3);
}

.verification-badge.failed {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.verification-badge.pending {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.verification-badge.none {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid rgba(108, 117, 125, 0.3);
}

/* Verification Notification Styles */
.alert.shadow-sm {
    border-left: 4px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
}

.alert-warning.shadow-sm {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.9) 0%, rgba(255, 238, 186, 0.9) 100%);
}

.alert-success.shadow-sm {
    border-left-color: #198754;
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(209, 231, 221, 0.9) 100%);
}

.verification-start,
.verification-success,
.verification-failed {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
#verificationLoader {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Verification Steps */
.verification-steps {
    counter-reset: step-counter;
}

.verification-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.verification-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .verification-header {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .verification-page .display-5 {
        font-size: 2rem;
    }
    
    .verification-iframe-container {
        min-height: 500px;
    }
    
    #verificationFrame {
        height: 500px !important;
    }
    
    .verification-badge {
        padding: 1rem;
    }
}

/* Smooth transitions for all verification elements */
.verification-page * {
    transition: all 0.3s ease;
}

/* Enhanced button styles for verification */
.verification-page .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

.verification-page .btn:hover::before {
    left: 100%;
}

/* ===== COOKIE CONSENT SYSTEM ===== */

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
}

.cookie-icon {
    font-size: 2.5rem;
    color: #f39c12;
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-text {
    flex: 1;
    margin: 0 1rem;
}

.cookie-text h6 {
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    margin-bottom: 0;
    color: #ecf0f1;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Cookie Floating Button */
.cookie-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: cookieFloat 3s ease-in-out infinite;
}

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

.cookie-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.4);
}

/* Cookie Modal Enhancements */
.cookie-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.cookie-category h6 i {
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        filter: drop-shadow(0 0 5px currentColor);
    }
    to {
        filter: drop-shadow(0 0 15px currentColor);
    }
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Cookie Toggle Switch */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    background-image: none;
    background-color: #6c757d;
    border: none;
    transition: all 0.3s ease;
}

.form-switch .form-check-input:checked {
    background-color: #198754;
    background-image: none;
    transform: none;
}

.form-switch .form-check-input:disabled {
    background-color: #28a745;
    opacity: 0.7;
}

/* Cookie Button Styles */
.cookie-banner .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.cookie-banner .btn:hover::before {
    left: 100%;
}

.cookie-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
}

.cookie-banner .btn-outline-secondary {
    border-color: #adb5bd;
    color: #adb5bd;
}

.cookie-banner .btn-outline-secondary:hover {
    background-color: #adb5bd;
    color: #2c3e50;
}

.cookie-banner .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.cookie-banner .btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
}

/* Purple class for social media icons */
.text-purple {
    color: #6f42c1 !important;
}

/* Success message styling */
.cookie-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-success-message.show {
    transform: translateX(0);
}

.cookie-success-message i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        margin: 0;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .cookie-category {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        padding: 0 0.5rem;
    }
    
    .cookie-text h6 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Animation for cookie acceptance */
@keyframes cookieAccepted {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.cookie-banner.accepted {
    animation: cookieAccepted 0.5s ease-out forwards;
}

/* Additional Cookie Styles */
.cookie-banner .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

/* Cookie Modal Improvements */
#cookieModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#cookieModal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 15px 15px 0 0;
    border: none;
}

#cookieModal .modal-footer {
    border: none;
    padding: 1.5rem;
}

/* Form Switch Enhancements */
.form-check-label {
    font-weight: 500;
    color: #495057;
}

.cookie-category .form-check-label {
    margin-left: 0.5rem;
}

/* Better z-index management */
.cookie-banner {
    z-index: 9999;
}

.cookie-floating-btn {
    z-index: 1050;
}

.cookie-success-message {
    z-index: 10001;
}

/* Improved button spacing */
.cookie-actions .btn {
    white-space: nowrap;
}

/* Cookie banner backdrop blur effect */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Enhanced modal transitions */
#cookieModal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: translate(0, -50px) scale(0.95);
}

#cookieModal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* Loading state for buttons */
.cookie-banner .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cookie-banner .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced accessibility */
.cookie-banner:focus-within {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: -3px;
}

.cookie-floating-btn:focus {
    outline: 3px solid rgba(243, 156, 18, 0.5);
    outline-offset: 3px;
}

/* Better text contrast */
.cookie-text p {
    color: #f8f9fa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cookie-text h6 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    }
    
    .cookie-category {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }
    
    .cookie-category:hover {
        border-color: #3182ce;
    }
    
    #cookieModal .modal-content {
        background-color: #2d3748;
        color: #f7fafc;
    }
    
    .form-check-label {
        color: #e2e8f0;
    }
}

/* Print styles - hide cookie elements when printing */
@media print {
    .cookie-banner,
    .cookie-floating-btn,
    .cookie-success-message {
        display: none !important;
    }
} 