/* Full Report Styles */
.full-report-container {
    width: 100%;
}

.full-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.full-report-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.full-report-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    background: white;
}

.full-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.full-report-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e6ed;
}

.full-report-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: 1%;
}

.full-report-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50;
    white-space: nowrap;
    width: 1%;
}

.full-report-table th:last-child,
.full-report-table td:last-child {
    white-space: normal;
    width: auto;
    min-width: 300px;
}

.full-report-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.full-report-table tbody tr:nth-child(odd) {
    background-color: white;
}

.full-report-table tbody tr:hover {
    background-color: rgba(26, 35, 126, 0.05);
}

.full-report-table th:first-child,
.full-report-table td:first-child {
    text-align: right;
    font-family: 'Courier New', monospace;
    width: 60px;
    min-width: 60px;
}

.full-report-table .pnl-positive {
    color: #00c853;
    font-weight: 600;
}

.full-report-table .pnl-negative {
    color: #ff1744;
    font-weight: 600;
}

.full-report-table .empty-cell {
    color: #ccc;
}

.full-report-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.full-report-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e6ed;
    background: white;
    color: #1a237e;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.full-report-pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #1a237e;
}

.full-report-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.full-report-pagination button.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.btn-group-sm .btn.active {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    border-color: #1a237e;
}

/* Clickable main row */
.full-report-table tbody tr.clickable-row {
    cursor: pointer;
}

.full-report-table tbody tr.clickable-row:hover {
    background-color: rgba(26, 35, 126, 0.08) !important;
}

.row-link-icon {
    margin-left: 0.4rem;
    font-size: 0.75rem;
    color: #1a237e;
    opacity: 0.6;
}

/* Loading State styles */
.loading-overlay {
    position: relative;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e6ed;
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Excel style table */
.excel-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d4d8db;
    background: #ffffff;
}
.excel-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    min-width: 750px;
}
.excel-stats-table td {
    border: 1px solid #d4d8db;
    padding: 10px 14px;
    vertical-align: middle;
}
.excel-stats-table td.excel-label {
    background-color: #f8f9fa;
    color: #4b5563;
    font-weight: 500;
}
#statsGrid6x3 .excel-stats-table td.excel-label {
    width: 20%;
}
.excel-stats-table td.excel-value {
    font-weight: 600;
    color: #1a237e;
}
#statsGrid6x3 .excel-stats-table td.excel-value {
    width: 13.33%;
}
.excel-stats-table td.excel-value.excel-pos {
    color: #00c853;
}
.excel-stats-table td.excel-value.excel-neg {
    color: #ff1744;
}
.excel-stats-table tr:hover {
    background-color: #f8fafc;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 280px;
    margin: 1rem 0;
}
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Tabs */
.nav-tabs-custom {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e0e6ed;
    margin-bottom: 1.5rem;
}
.nav-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}
.nav-tab.active {
    color: #1a237e;
    background: rgba(26, 35, 126, 0.05);
}
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}
.nav-tab:hover:not(.active) {
    color: #1a237e;
    background: rgba(26, 35, 126, 0.02);
}

/* Trade List */
.trade-list {
    max-height: 400px;
    overflow-y: auto;
}
.trade-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}
.trade-item:hover {
    background-color: rgba(26, 35, 126, 0.02);
}
.trade-item.active {
    background-color: rgba(26, 35, 126, 0.08);
    border-left: 4px solid #1a237e;
    padding-left: calc(1rem - 4px);
}
.trade-item:last-child {
    border-bottom: none;
}
.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.trade-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}
.trade-pnl {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
.trade-pnl.profit {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
}
.trade-pnl.loss {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
}
.trade-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}
.trade-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.trade-detail i {
    font-size: 0.75rem;
    color: #999;
}

/* Summary items inside analysis */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.summary-item:last-child {
    border-bottom: none;
}
.summary-label {
    color: #666;
    font-size: 0.9rem;
}
.summary-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Decision Log filter pills */
.decision-filter-pill {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px !important;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.decision-filter-pill:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.decision-filter-pill:active {
    transform: translateY(0);
}

.decision-filter-pill.active.pill-buy {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.decision-filter-pill.active.pill-sell {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.decision-filter-pill.active.pill-stopped {
    background-color: #cff4fc;
    color: #055160;
    border-color: #b6effb;
}

.decision-filter-pill.active.pill-waiting {
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffecb5;
}

.decision-filter-pill.active.pill-hold {
    background-color: #e2e3e5;
    color: #41464b;
    border-color: #d3d6d8;
}

.decision-row-buy,
.decision-row-sell {
    background-color: rgba(139, 0, 0, 0.15) !important;
    /* Dark red highlight */
}
