/* ========================================================================
   POSITION DETAIL PAGE - Compact & Clean Design
   ======================================================================== */

.position-detail-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.position-detail-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.position-title-left { flex: 1; }

.position-symbol-large {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.position-name-subtitle { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.position-pl-display { text-align: right; }
.pl-display-value { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.pl-display-value.profit { color: #10b981; }
.pl-display-value.loss { color: #ef4444; }
.pl-display-percent { font-size: 13px; font-weight: 600; opacity: 0.7; }

.position-stats-modern {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.stats-grid-modern { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.stat-box-modern {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.stat-box-value { font-size: 15px; font-weight: 700; color: var(--text-color); }

.tabs-modern { display: flex; gap: 8px; margin-bottom: 16px; background: rgba(0, 0, 0, 0.1); padding: 4px; border-radius: 8px; }

.tab-modern {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

.tab-modern.active { background: var(--primary-color); color: white; }
.tab-modern:not(.active):hover { background: rgba(255, 255, 255, 0.05); color: var(--text-color); }

.form-modern { padding: 16px; background: rgba(0, 0, 0, 0.05); border-radius: 8px; }
.form-group-modern { margin-bottom: 16px; }

.form-label-modern {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input-modern {
    width: 100%;
    padding: 10px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-input-modern:focus { outline: none; border-color: var(--primary-color); background: rgba(255, 255, 255, 0.08); }
.form-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.btn-action-modern {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action-modern:hover { transform: translateY(-1px); }
.btn-action-modern:active { transform: translateY(0); }
.btn-action-modern.btn-danger { background: #ef4444; color: white; }
.btn-action-modern.btn-danger:hover { background: #ef4444; }
.btn-action-modern.btn-primary { background: var(--primary-color); color: white; }
.btn-action-modern.btn-primary:hover { background: var(--primary-hover); }

.back-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.back-link-modern:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-color); }

@media (max-width: 768px) {
    .position-symbol-large { font-size: 18px; }
    .pl-display-value { font-size: 18px; }
    .stats-grid-modern { gap: 10px; }
    .tab-modern { padding: 8px 12px; font-size: 12px; }
}
