body {
    background-color: #f8f9fa;
}
.layout {
    display: flex;
    align-items: stretch;
}
.sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-weight: 600;
}
.sidebar-title {
    font-size: 0.95rem;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-link:hover {
    background-color: #f1f3f5;
    color: #007bff;
}
.sidebar-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
}
.content-area {
    flex: 1;
}
.container {
    margin-top: 2rem;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}
.table th {
    background-color: #007bff;
    color: white;
    border: 1px solid #dee2e6 !important;
    font-weight: bold;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    word-wrap: break-word;
}
.table td {
    vertical-align: middle;
    border: 1px solid #dee2e6 !important;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
}
.table {
    border-collapse: collapse !important;
    width: 100%;
    table-layout: fixed;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}
.header-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.stats-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.price-gain {
    color: #28a745;
    font-weight: bold;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.price-loss {
    color: #dc3545;
    font-weight: bold;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}
.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #007bff;
}
.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid #007bff;
}
.tab-content {
    background: white;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* Sortable table headers */
.table th.sortable {
    position: relative;
    transition: background-color 0.2s ease;
}

.table th.sortable:hover {
    background-color: #0056b3 !important;
}

.table th.sortable .sort-indicator {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 5px;
    transition: opacity 0.2s ease;
}

.table th.sortable:hover .sort-indicator {
    opacity: 1;
}

.table th.sortable.active .sort-indicator {
    opacity: 1;
    font-weight: bold;
}



