/**
 * Dariush Management Frontend Styles
 */

/* Price Badges */
.dariush-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    direction: ltr;
    font-family: inherit;
    vertical-align: middle;
}

.dariush-price-badge.is-positive {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.dariush-price-badge.is-negative {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dariush-price-badge.is-neutral {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.dariush-change-pct.is-positive {
    color: #059669;
    font-weight: 700;
}

.dariush-change-pct.is-negative {
    color: #dc2626;
    font-weight: 700;
}

/* Minimal Arrow Icons */
.dariush-arrow {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dariush-arrow--up {
    color: #059669;
}

.dariush-arrow--down {
    color: #dc2626;
}

.dariush-arrow--neutral {
    color: #9ca3af;
}

.dariush-price-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dariush-price-val {
    font-weight: 700;
}

/* TWRR & MWRR Table Styles */
.dariush-twrr-wrapper {
    margin: 24px 0;
    width: 100%;
}

.dariush-twrr-wrapper .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e1f2;
}

.dariush-twrr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 15px;
    background: #fff;
}

.dariush-twrr-table th {
    background: linear-gradient(135deg, #f5f4fb 0%, #eceaf7 100%);
    color: #312682;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid #312682;
    white-space: nowrap;
}

.dariush-twrr-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #ecebf5;
    color: #2b2b36;
    vertical-align: middle;
}

.dariush-twrr-table tbody tr:nth-child(even) {
    background-color: #fafafc;
}

.dariush-twrr-table tbody tr:hover {
    background-color: #f6f5fc;
}

.twrr-rate {
    font-weight: 700;
    direction: ltr;
    display: inline-block;
    font-family: inherit;
}

.twrr-rate.is-positive {
    color: #059669;
}

.twrr-rate.is-negative {
    color: #dc2626;
}

.twrr-rate.is-neutral {
    color: #6b7280;
}

/* Notice box */
.dariush-twrr-notice {
    padding: 14px 18px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    margin: 18px 0;
}

.dariush-twrr-notice--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

/* Funds Table */
.dariush-funds-table-wrapper {
    margin: 24px 0;
    width: 100%;
}

.dariush-funds-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
    background: #fff;
}

.dariush-funds-table th {
    background: #f9fafb;
    color: #312682;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid #e5e7eb;
}

.dariush-funds-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.dariush-funds-table tbody tr:nth-child(even) {
    background-color: #fafafc;
}
