/* Dark/Light Theme Variables */
        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-card: #ffffff;
            --bg-hover: #f1f3f4;
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --text-muted: #6c757d;
            --border-color: #dee2e6;
            --shadow: rgba(0,0,0,0.1);
            --success-color: #198754;
            --danger-color: #dc3545;
            --warning-color: #ffc107;
            --info-color: #0d6efd;
            --secondary-color: #6c757d;
        }

        [data-theme="dark"] {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-card: #242424;
            --bg-hover: #3a3a3a;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --text-muted: #888888;
            --border-color: #404040;
            --shadow: rgba(0,0,0,0.3);
            --success-color: #28a745;
            --danger-color: #dc3545;
            --warning-color: #ffc107;
            --info-color: #0d6efd;
            --secondary-color: #6c757d;
        }

        [data-theme="dark"] .card-header {
            background-color: var(--bg-card);
            border-color: var(--border-color);
        }

        [data-theme="dark"] .card-body {
            background-color: var(--bg-card);
            color: var(--text-primary);
        }

        /* Dropdown Dark Mode Adjustments */
        [data-theme="dark"] .dropdown-menu {
            background-color: var(--bg-card);
            border-color: var(--border-color);
            color: var(--text-primary);
        }

        [data-theme="dark"] .dropdown-item {
            color: var(--text-primary);
        }

        [data-theme="dark"] .dropdown-item:hover {
            background-color: var(--bg-hover);
            color: var(--text-primary);
        }

        [data-theme="dark"] .dropdown-header {
            color: var(--text-muted);
        }

        [data-theme="dark"] .dropdown-divider {
            border-color: var(--border-color);
        }

        [data-theme="dark"] .btn-link {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .text-dark {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .badge.border {
            border-color: var(--border-color) !important;
            color: var(--text-secondary) !important;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .navbar {
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        .subscription-status-sticky {
            position: sticky;
            top: 56px; /* Adjust based on navbar height */
            z-index: 1020;
            background-color: var(--bg-card);
            box-shadow: 0 2px 4px var(--shadow);
            font-size: 0.75rem !important;
            border: 1px solid var(--border-color);
        }
        
        .subscription-status-sticky span {
            font-size: 0.75rem !important;
            color: var(--text-primary);
        }
        
        .button-group-sticky {
            position: sticky;
            top: 96px; /* Below subscription status */
            z-index: 1019;
            background-color: var(--bg-card);
            box-shadow: 0 2px 4px var(--shadow);
            padding: 8px 15px;
            margin-bottom: 15px;
            border-radius: 5px;
            border: 1px solid var(--border-color);
        }
        
        .button-group-sticky .btn {
            font-size: 0.75rem !important;
            padding: 0.25rem 0.5rem !important;
        }
        
        .button-group-sticky .form-check-label {
            font-size: 0.75rem !important;
            margin-bottom: 0;
        }
        
        .button-group-sticky .form-check-input {
            margin-top: 0.125rem;
        }
        
        .price-up {
            background-color: rgba(25, 135, 84, 0.15) !important;
            transition: background-color 0.5s ease-out;
        }
        .price-down {
            background-color: rgba(220, 53, 69, 0.15) !important;
            transition: background-color 0.5s ease-out;
        }
        .btn-icon {
            border: none;
            background: none;
            padding: 0;
            cursor: pointer;
            outline: none;
        }

        
    .pnl-value {
        font-weight: bold;
        color: var(--text-primary);
    }
    .pnl-positive {
        color: var(--success-color);
    }
    .pnl-negative {
        color: var(--danger-color);
    }

        .btn-icon:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* Enhanced DCA and Scaled Exit Styles */
        .position-details {
            font-size: 0.75em;
            line-height: 1.2;
            margin-top: 4px;
            display: none; /* Initially hidden */
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 0.375rem;
            padding: 0.75rem;
            margin-top: 0.5rem;
            color: var(--text-primary);
        }
        
        .dca-info, .scaled-exit-info {
            margin-bottom: 2px;
        }
        
        .dca-badge, .exit-badge {
            font-size: 0.7em;
            padding: 2px 6px;
            border-radius: 10px;
            margin: 1px;
            display: inline-block;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .dca-badge:hover, .exit-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .dca-badge {
            background: rgba(13, 110, 253, 0.15);
            color: var(--info-color);
            border: 1px solid rgba(13, 110, 253, 0.3);
        }
        
        .dca-badge.dca-pending {
            background: rgba(255, 193, 7, 0.15);
            color: var(--warning-color);
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        
        .exit-badge {
            background: rgba(25, 135, 84, 0.15);
            color: var(--success-color);
            border: 1px solid rgba(25, 135, 84, 0.3);
        }
        
        .exit-badge.exit-pending {
            background: rgba(255, 193, 7, 0.15);
            color: var(--warning-color);
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        
        .dca-exit-cell {
            min-width: 80px;
            text-align: center;
        }
        
        .badge-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        
        .transaction-detail {
            font-size: 0.65em;
            color: #6c757d;
            margin-top: 2px;
        }
        
        .order-item {
            background: rgba(108, 117, 125, 0.1);
            padding: 1px 4px;
            border-radius: 2px;
            margin: 0 2px;
            font-size: 0.85em;
            display: inline-block;
        }
        
        .pnl-positive {
            color: #198754;
        }
        
        .pnl-negative {
            color: #dc3545;
        }
        
        /* Transaction indicator */
        .transaction-occurred {
            border-left: 3px solid #ffc107 !important;
            background-color: rgba(255, 193, 7, 0.1) !important;
        }
        
        /* Keyframes for flash animation */
        @keyframes flash {
            0% { background-color: rgba(255, 193, 7, 0.3); }
            50% { background-color: rgba(255, 193, 7, 0.6); }
            100% { background-color: rgba(255, 193, 7, 0.3); }
        }
        
        .flash-transaction {
            animation: flash 0.5s ease-in-out 3;
        }
        
        /* Disabled accordion styles */
        .disabled-accordion .accordion-button {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        .disabled-accordion .accordion-button:not(.collapsed) {
            color: #6c757d;
            background-color: #f8f9fa;
        }
        
        .disabled-accordion .form-check-input {
            pointer-events: none;
        }
        
        /* Disabled nav tab styles */
        .nav-tabs .nav-link.disabled-tab {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
            color: #6c757d;
            background-color: #f8f9fa;
            border-color: #dee2e6 #dee2e6 #fff;
        }
        
        /* Disabled tab pane styles */
        .tab-pane.disabled {
            opacity: 0.6;
            pointer-events: none;
        }
        
        /* DCA and Scaled Exit Badges */
        .strategy-badge {
            font-size: 0.75em;
            padding: 0.25em 0.5em;
            border-radius: 0.25rem;
            font-weight: 500;
            color: var(--text-primary);
        }
        
        .dca-badge {
            background-color: rgba(13, 110, 253, 0.15);
            color: var(--info-color);
            border: 1px solid rgba(13, 110, 253, 0.3);
        }
        
        .exit-badge {
            background-color: rgba(25, 135, 84, 0.15);
            color: var(--success-color);
            border: 1px solid rgba(25, 135, 84, 0.3);
        }
        
        /* Detail panel styles */
        .detail-panel {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 0.375rem;
            padding: 1rem;
            margin-top: 0.5rem;
            display: none;
            color: var(--text-primary);
        }
        
        .detail-table {
            font-size: 0.85em;
            color: var(--text-primary);
        }
        
        .detail-table th {
            font-weight: 600;
            padding: 0.5rem;
            color: var(--text-primary);
            background-color: var(--bg-secondary);
        }
        
        .detail-table td {
            padding: 0.5rem;
            color: var(--text-primary);
        }
        
        .toggle-details {
            cursor: pointer;
            color: #0d6efd;
            font-size: 0.9em;
        }
        
        .toggle-details:hover {
            text-decoration: underline;
        }
        
        /* DCA and Scaled Exit Details */
        .dca-details, .scaled-exit-details {
            max-height: 250px;
            overflow-y: auto;
            padding: 8px;
            background-color: rgba(248, 249, 250, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 4px;
            margin-top: 4px;
        }
        
        .dca-orders-list, .scaled-exit-orders-list {
            font-size: 0.8rem;
            line-height: 1.3;
        }
        
        .dca-order-item, .scaled-exit-order-item {
            padding: 6px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .dca-order-item:last-child, .scaled-exit-order-item:last-child {
            border-bottom: none;
        }
        
        .dca-order-item:hover, .scaled-exit-order-item:hover {
            background-color: rgba(0, 0, 0, 0.03);
            border-radius: 2px;
            padding-left: 4px;
            padding-right: 4px;
            margin: 0 -4px;
        }
        
        /* Trading Transactions Table Styles */
        .trading-transactions-table {
            padding: 1rem;
            background-color: var(--bg-secondary);
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
        }
        
        .transaction-section {
            background-color: var(--bg-card);
            border-radius: 0.375rem;
            padding: 1rem;
            border: 1px solid var(--border-color);
        }
        
        .transaction-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
        }
        
        .transaction-section table {
            margin-bottom: 0;
            font-size: 0.875rem;
        }
        
        .transaction-section table th {
            font-weight: 600;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid var(--border-color);
            color: var(--text-primary);
            background-color: var(--bg-secondary);
        }
        
        .transaction-section table td {
            vertical-align: middle;
            padding: 0.5rem;
            color: var(--text-primary);
        }
        
        .transaction-section .table-responsive {
            border-radius: 0.375rem;
            overflow: hidden;
            background-color: var(--bg-card);
        }
        
        .transaction-section .badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }
        
        .transaction-section .row strong {
            color: var(--text-primary);
        }
        
        /* Transaction Details Icon Styles */
        .transaction-details-icon {
            transition: all 0.2s ease;
            opacity: 0.8;
        }
        
        .transaction-details-icon:hover {
            opacity: 1;
            color: #0d6efd !important;
            transform: scale(1.2);
        }
        
        /* Pulse animation for transaction icon */
        @keyframes pulse {
            0% { opacity: 0.8; }
            50% { opacity: 1; transform: scale(1.1); }
            100% { opacity: 0.8; }
        }
        
        /* Row hover effect */
        .symbol-row-clickable:hover {
            background-color: rgba(13, 110, 253, 0.05) !important;
            cursor: pointer;
        }
        
        .symbol-name {
            display: flex;
            align-items: center;
        }
        
        .symbol-text {
            margin-right: 0.25rem;
        }

        /* Condition Dropdown Compatibility Styles */
        .condition-controls select option.text-success {
            color: #198754 !important;
            font-weight: 500;
        }
        
        .condition-controls select option.text-warning {
            color: #fd7e14 !important;
            font-weight: 500;
        }
        
        .condition-controls select option.text-muted {
            color: #6c757d !important;
        }
        
        /* Dark theme için condition dropdown stilleri */
        [data-theme="dark"] .condition-controls select option.text-success {
            color: #28a745 !important;
        }
        
        [data-theme="dark"] .condition-controls select option.text-warning {
            color: #ffc107 !important;
        }
        
        [data-theme="dark"] .condition-controls select option.text-muted {
            color: #888888 !important;
        }
        
        /* Condition dropdown hover efekti */
        .condition-controls select:hover {
            border-color: var(--info-color);
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        }
        
        /* Condition compatibility tooltip */
        .condition-controls {
            position: relative;
        }
        
        .condition-controls::after {
            content: "✓ Recommended, ⚠ Use with caution, ○ Neutral";
            position: absolute;
            bottom: -20px;
            left: 0;
            font-size: 0.75rem;
            color: var(--text-muted);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            white-space: nowrap;
        }
        
        .condition-controls:hover::after {
            opacity: 1;
        }