/**
 * The Ledger - Additional Styles
 */

.ledger-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.ledger-main {
    min-width: 0;
}

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proposal-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.proposal-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.proposal-header h3 {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin: 0;
    flex: 1;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.status-voting {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border: 1px solid rgba(233, 69, 96, 0.5);
}

.status-passed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.proposal-description {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.proposal-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.proposal-votes {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
}

.vote-bar {
    width: 100%;
    height: 8px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.vote-bar-yes {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.view-proposal-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-proposal-link:hover {
    color: var(--color-accent-light);
}

.ledger-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.treasury-balance {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.balance-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.transaction-type {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.type-deposit,
.type-income {
    color: #10b981;
}

.type-withdrawal,
.type-expense {
    color: #ef4444;
}

.transaction-info {
    flex: 1;
}

.transaction-info p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.transaction-info small {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

@media (max-width: 968px) {
    .ledger-layout {
        grid-template-columns: 1fr;
    }
    
    .ledger-sidebar {
        order: -1;
    }
}

