/* Summary cards and statistics */
.summary-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.stat-card.income {
    border-left: 4px solid #27ae60;
}

.stat-card.income .stat-value {
    color: var(--primary-color);
}

.stat-card.expense {
    border-left: 4px solid #e74c3c;
}

.stat-card.expense .stat-value {
    color: #e74c3c;
}

.stat-card.profit {
    border-left: 4px solid #3498db;
}

.stat-card.profit .stat-value {
    color: var(--primary-color);
}

.stat-card.rides .stat-value {
    color: #3498db;
}

/* List items */
.list-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.list-item-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.list-item-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.list-item-note {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 5px;
}

.list-item-content {
    flex: 1;
}

.list-item-time {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.list-item-details {
    font-size: 0.9rem;
    color: var(--text-color);
}

.list-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.list-item-actions .btn {
    padding: 5px 10px;
    font-size: 0.8em;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.delete-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Group headers */
.group-header {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0 10px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-total {
    font-size: 0.9em;
    opacity: 0.9;
}

/* FAB (Floating Action Button) */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
    opacity: 0.6;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.empty-state h3 {
    font-family: 'Unbounded', sans-serif;
    margin-bottom: 10px;
}

/* Quick expense buttons */
.quick-expense-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-expense-btn {
    font-family: 'Unbounded', sans-serif;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quick-expense-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Category breakdown */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.category-details {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.category-percent {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.category-amount {
    font-weight: bold;
    color: #e74c3c;
}