/**
 * AI Investment System Styles
 * Moderne, responsive Styles für das AI Investment Dashboard
 */

/* AI Investment Dashboard */
.ai-investment-dashboard {
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-title i {
    font-size: 2.25rem;
    color: #fbbf24;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Status Banner */
.status-banner {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1rem 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-banner.error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.status-banner.success {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.card-content {
    padding: 1.5rem;
}

/* Signals Card */
.signals-card {
    grid-column: span 2;
}

.signals-list {
    max-height: 500px;
    overflow-y: auto;
}

.signal-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.signal-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.signal-asset {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.125rem;
}

.signal-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.signal-time {
    color: #94a3b8;
    font-size: 0.875rem;
}

.signal-content {
    margin-bottom: 1rem;
}

.signal-content p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

.signal-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.metric-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.metric-value.positive {
    color: #10b981;
}

.metric-value.negative {
    color: #ef4444;
}

.metric-value.neutral {
    color: #64748b;
}

/* Proposals Card */
.proposals-card {
    grid-column: span 2;
}

.proposals-list {
    max-height: 500px;
    overflow-y: auto;
}

.proposal-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.proposal-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.proposal-assets {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.125rem;
}

.proposal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-proposed {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-approved {
    background: #d1fae5;
    color: #059669;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.status-executed {
    background: #f3f4f6;
    color: #374151;
}

.proposal-content {
    margin-bottom: 1rem;
}

.proposal-content p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

.proposal-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.proposal-actions {
    display: flex;
    gap: 0.5rem;
}

/* Risk & Learning Cards */
.risk-card,
.learning-card {
    grid-column: span 1;
}

.risk-metrics,
.learning-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.metric-label {
    font-weight: 500;
    color: #64748b;
}

.metric-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1.125rem;
}

/* Loading States */
.loading-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .signals-card,
    .proposals-card {
        grid-column: span 1;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .signal-metrics,
    .proposal-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .proposal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .signal-item,
    .proposal-item {
        padding: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ai-investment-dashboard {
        background: #1a202c;
    }
    
    .dashboard-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .card-header {
        background: #4a5568;
        border-bottom-color: #718096;
    }
    
    .card-header h3 {
        color: #e2e8f0;
    }
    
    .signal-item,
    .proposal-item {
        border-color: #4a5568;
        background: #2d3748;
    }
    
    .signal-item:hover,
    .proposal-item:hover {
        border-color: #63b3ed;
    }
    
    .metric-item {
        background: #4a5568;
        border-color: #718096;
    }
    
    .metric-label {
        color: #a0aec0;
    }
    
    .metric-value {
        color: #e2e8f0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dashboard-card,
    .signal-item,
    .proposal-item,
    .btn {
        transition: none;
    }
    
    .loading-placeholder i {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .dashboard-card {
        border: 2px solid #000;
    }
    
    .signal-item,
    .proposal-item {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}
