/* Dashboard Specific Styles */

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Subaccount Cards */
.subaccount-card {
    transition: transform 0.2s ease-in-out;
}

.subaccount-card:hover {
    transform: translateY(-2px);
}

.subaccount-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

/* Badge Enhancements */
.badge-sm {
    font-size: 0.7em;
    padding: 0.25em 0.5em;
}

/* Status Colors */
.text-profit {
    color: #28a745 !important;
}

.text-loss {
    color: #dc3545 !important;
}

.bg-profit {
    background-color: #28a745 !important;
}

.bg-loss {
    background-color: #dc3545 !important;
}

/* Statistics Cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

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

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Button Enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.25);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(108, 117, 125, 0.25);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .subaccount-card {
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0c5460;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

/* Grid View Enhancements */
.grid-view .table {
    margin-bottom: 0;
}

.grid-view .summary {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.grid-view .pagination {
    margin-top: 1rem;
    justify-content: center;
}

/* Custom Utilities */
.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.dashboard-header h1 {
    margin-bottom: 0;
    font-weight: 700;
}

/* Exchange Cards */
.exchange-card {
    border-left: 4px solid #007bff;
}

.exchange-card .card-title {
    color: #007bff;
    font-weight: 700;
}

/* Position and Order Indicators */
.position-long {
    color: #28a745;
    font-weight: 600;
}

.position-short {
    color: #dc3545;
    font-weight: 600;
}

.order-buy {
    color: #28a745;
}

.order-sell {
    color: #dc3545;
}

/* Sidebar (if needed for future expansion) */
.sidebar {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 1rem;
}

.sidebar .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Print Styles */
@media print {
    .btn, .pagination, .card-footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
