/* Custom styles for Algo Trading Platform */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

/* Body and Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 500;
}

/* Jumbotron for Bootstrap 5 */
.jumbotron {
    background-color: #f8f9fa;
    border-radius: 10px;
}

/* Dashboard Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger,
.card.bg-secondary {
    border: none;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
}

/* Login Card */
.login-card {
    margin-top: 50px;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,1);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Error List Table */
.error-list-table td {
    vertical-align: middle;
}

/* Client List Cards */
.client-card {
    transition: transform 0.2s;
}

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

/* Dashboard Quick Stats */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .display-6 {
    font-weight: 600;
}

/* Token Status Indicators */
.token-valid {
    color: var(--success-color);
}

.token-invalid {
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert-dismissible .btn-close {
        display: none !important;
    }
}
