/* Common Table Styles for all pages */
.signal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    margin: 0;
}

.signal-table thead th {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border: none;
    text-align: center !important;
    vertical-align: middle !important;
}

.signal-table tbody td {
    padding: 6px 8px !important;
    height: 32px !important;
    border: 1px solid #eef0f2;
    font-size: 0.95em;
    text-align: center !important;
    vertical-align: middle !important;
    color: #2c3e50;
    line-height: 1.2;
}

/* Common hover effects - only color changes, no size effects */
.signal-table tbody tr:hover td {
    border-color: rgba(52, 152, 219, 0.3) !important;
    background-color: rgba(52, 152, 219, 0.05) !important;
    /* Remove any transform or size changes */
    transform: none !important;
    scale: none !important;
    /* Remove shadow effects */
    box-shadow: none !important;
}

/* Fixed dimensions for table cells */
.signal-table td {
    height: 32px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    /* Prevent any size changes */
    transition: background-color 0.2s ease !important;
}

/* Long/Buy table styles */
.long-table, #longTable, #firstSymbolTable {
    border: 2px solid #9BCD9B !important;
}

/* Long/Buy table hover effects */
.long-table tbody tr:hover td,
#longTable tbody tr:hover td,
#firstSymbolTable tbody tr:hover td {
    border-color: rgba(155, 205, 155, 0.3) !important;
    background-color: rgba(155, 205, 155, 0.05) !important;
    /* Remove any transform or size changes */
    transform: none !important;
    scale: none !important;
    /* Remove shadow effects */
    box-shadow: none !important;
}

/* Short/Sell table styles */
.short-table, #shortTable, #secondSymbolTable {
    border: 2px solid #FA8072 !important;
}

/* Short/Sell table hover effects */
.short-table tbody tr:hover td,
#shortTable tbody tr:hover td,
#secondSymbolTable tbody tr:hover td {
    border-color: rgba(250, 128, 114, 0.3) !important;
    background-color: rgba(250, 128, 114, 0.05) !important;
    /* Remove any transform or size changes */
    transform: none !important;
    scale: none !important;
    /* Remove shadow effects */
    box-shadow: none !important;
}

/* Remove any positioning that might cause size changes */
.signal-table tbody tr:hover {
    position: static !important;
    z-index: auto !important;
}

/* Remove any margin/padding changes on hover */
.signal-table tr:hover td {
    padding: 6px 8px !important;
    margin: 0 !important;
}

/* Ensure smooth color transitions only */
.signal-table tbody tr,
.signal-table tbody td {
    transition: background-color 0.2s ease !important;
}

/* Value colors */
.high-value {
    color: #FA8072 !important;
    font-weight: bold;
}

.low-value {
    color: #9BCD9B !important;
    font-weight: bold;
}

.neutral-value {
    color: #f39c12 !important;
    font-weight: bold;
}

/* Table titles */
.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-align: center;
}

.long-signals, .first-symbol-title {
    background: rgba(155, 205, 155, 0.1);
    color: #9BCD9B;
    border: 2px solid #9BCD9B;
}

.short-signals, .second-symbol-title {
    background: rgba(250, 128, 114, 0.1);
    color: #FA8072;
    border: 2px solid #FA8072;
}

/* Table wrapper and container */
.table-wrapper {
    flex: 1;
    min-width: 48%;
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    margin: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tables-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Responsive design */
@media (max-width: 768px) {
    .tables-container {
        flex-direction: column;
    }
    
    .table-wrapper {
        min-width: 100%;
        margin-bottom: 20px;
    }
} 

/* Signal row styling */
.signal-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.signal-row:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Active trade row styling */
.active-trade-row {
    background-color: rgba(40, 167, 69, 0.05);
    transition: background-color 0.2s ease;
}

.active-trade-row:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

/* Price columns */
.current-price-col {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* P/L columns */
.profit-col {
    font-weight: bold;
}

.profit-col.text-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.profit-col.text-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Action buttons */
.signals-table .btn {
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
}

.signals-table .btn-primary {
    background-color: #007bff;
}

.signals-table .btn-danger {
    background-color: #dc3545;
}

/* Table stripes for better readability */
.signals-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive table adjustments */
@media (max-width: 992px) {
    .signals-table {
        font-size: 0.875rem;
    }
    
    .signals-table th, 
    .signals-table td {
        padding: 0.5rem 0.25rem;
    }
} 