/* Invest360 - Styles personnalisés */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f1f3f5;
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Boutons */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Statistiques Dashboard */
.card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-warning {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.card.bg-primary h2, .card.bg-success h2, .card.bg-info h2, .card.bg-warning h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Signaux */
.signals-panel {
    max-height: 600px;
    overflow-y: auto;
}

.alert-sm {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

/* TradingView Widget */
.tradingview-widget-container {
    height: 100%;
}

/* Watchlist */
.watchlist-symbol {
    cursor: pointer;
    transition: all 0.2s;
}

.watchlist-symbol:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.price-up {
    color: var(--success-color);
}

.price-down {
    color: var(--danger-color);
}

/* Journal de trading */
.trade-open {
    border-left: 4px solid var(--info-color);
}

.trade-closed-win {
    border-left: 4px solid var(--success-color);
}

.trade-closed-loss {
    border-left: 4px solid var(--danger-color);
}

/* Footer */
footer {
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0,0,0,.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card h2 {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f1f3f5;
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

