/* Trade Journal Styles */

.journal-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-badge {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.filter-input {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 160px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Journal Table */
.journal-table-container {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
}

.journal-table th,
.journal-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.journal-table th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journal-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

.journal-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges & Text Utilities */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-call {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-put {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-green {
    color: #4ade80;
}

.text-red {
    color: #f87171;
}

.text-muted {
    color: #94a3b8;
}

.text-sm {
    font-size: 0.85rem;
}

.hidden {
    display: none;
}

.mt-4 {
    margin-top: 1rem;
}

.line-clamp {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Edge Meter */
.edge-meter {
    background: rgba(148, 163, 184, 0.1);
    height: 6px;
    width: 60px;
    border-radius: 3px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.edge-bar {
    background: #3b82f6;
    height: 100%;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-stats {
        flex-wrap: wrap;
    }

    .journal-table {
        display: block;
        overflow-x: auto;
    }
}