.goal-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    direction: rtl;
}

.goal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.goal-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px !important;
    color: #333;
}

.goal-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.goal-content {
    padding: 20px;
}

.monthly-progress-table {
    width: 100%;
    overflow-x: auto;
}

.monthly-progress-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.monthly-progress-table th,
.monthly-progress-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.monthly-progress-table th {
    background: #f4f6f8;
    font-weight: bold;
    color: #333;
}

.monthly-progress-table tr:nth-child(even) {
    background: #f9f9f9;
}

.summary-row {
    background: #edf2f7 !important;
    font-weight: bold;
}

.goal-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-stats span {
    background: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Status Colors */
.goal-completed .progress-fill {
    background: #4CAF50;
}

.goal-good-progress .progress-fill {
    background: #2196F3;
}

.goal-moderate-progress .progress-fill {
    background: #FFC107;
}

.goal-low-progress .progress-fill {
    background: #f44336;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .goal-info {
        flex-direction: column;
        gap: 10px;
    }

    .progress-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .monthly-progress-table {
        overflow-x: scroll;
    }
    
    .monthly-progress-table table {
        min-width: 400px;
    }
}