/* Custom CSS for Glytch.World Dashboard */
/* Following Bootstrap dark theme guidelines */

/* Global Styles */
:root {
    --gw-primary: #007bff;
    --gw-success: #28a745;
    --gw-warning: #ffc107;
    --gw-danger: #dc3545;
    --gw-info: #17a2b8;
    --gw-dark: #343a40;
    --gw-light: #f8f9fa;
    --gw-muted: #6c757d;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.timeline-content h6 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.timeline-content p {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

/* Opportunity Cards */
.opportunity-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.opportunity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.opportunity-card .card-header {
    background: rgba(0, 123, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.125);
}

.quality-indicator .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Metrics */
.metric {
    text-align: center;
    padding: 0.5rem;
}

.metric-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--bs-text-muted);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.feature-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Token Icons */
.token-icon {
    display: inline-block;
}

.fund-icon {
    display: inline-block;
}

/* Requirements Text */
.requirements-text {
    font-size: 0.8rem;
    color: var(--bs-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border-left: 3px solid var(--gw-primary);
}

/* Progress Bars */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.125);
    backdrop-filter: blur(10px);
}

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

/* Tables */
.table {
    --bs-table-bg: transparent;
}

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

/* Buttons */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 4px solid #28a745;
}

/* Loading States */
.loading-indicator {
    display: none;
}

.loading-indicator.show {
    display: block;
}

/* Toasts */
.toast {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.toast-body {
    padding: 1rem;
}

/* Modals */
.modal-content {
    background: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.125);
    backdrop-filter: blur(10px);
}

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

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.125);
}

/* Form Controls */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.125);
    color: var(--bs-body-color);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gw-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.125);
    color: var(--bs-body-color);
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gw-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: var(--bs-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.125);
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 0.5rem;
    }
    
    .opportunity-card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .d-md-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Status Indicators */
.status-online {
    color: var(--gw-success);
}

.status-offline {
    color: var(--gw-danger);
}

.status-warning {
    color: var(--gw-warning);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--gw-primary), var(--gw-info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(23, 162, 184, 0.1));
}

.border-gradient {
    border: 1px solid;
    border-image: linear-gradient(45deg, var(--gw-primary), var(--gw-info)) 1;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Portfolio Specific */
.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gw-primary);
}

/* Opportunity Specific */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .opportunity-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        background: white !important;
    }
}
