.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content .task-list {
    margin-bottom: 1rem;
}

.simple-task-item {
    padding: 0.75rem;
    background: var(--white);
    border-left: 3px solid var(--warning-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: background-color 0.2s ease;
}

.simple-task-item:hover {
    background: var(--light-color);
}

.simple-task-item:last-child {
    margin-bottom: 0;
}

.card-content .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.card-content .stat-item:last-child {
    border-bottom: none;
}

.card-content .stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.card-content .stat-value {
    color: var(--dark-color);
    font-weight: 600;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--dark-color);
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.dashboard-card.highlighted-tasks {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
    animation: pulse-glow 2s infinite;
}

.dashboard-card.highlighted-tasks .card-header h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.badge.urgent {
    background: var(--error-color);
    animation: bounce 1s infinite alternate;
}

.has-tasks .tasks-card {
    order: -1;
    grid-column: span 2;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

.balance-display {
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--white) !important;
}

.balance-content h2,
.balance-content h3,
.balance-info h2 {
    margin-bottom: 0.5rem !important;
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .balance-amount {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .balance-amount {
        font-size: 1.8rem !important;
    }
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.balance-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.balance-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: statCardFadeIn 0.4s ease both;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes statCardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(23, 162, 184, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}
