/* Goals
 * #goalsModal full goals system: base, summary, list, cards, friends' goals,
 * suggestions, dashboard goals grid, creation form, expandable rows,
 * mobile responsive, dark-mode overrides.
 */
/* Goal Creation Form */
.goal-creation-form {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-header h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.form-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d2d6dc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ===== NEW GOALS MODAL STYLES ===== */

/* Goals Modal Base Styles */
.goals-modal .modal-content {
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.goals-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.goals-modal .modal-header h2 {
    margin: 0;
    color: #1a202c;
    font-size: 1.5rem;
}

.goals-modal .close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0.75rem;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.goals-modal .close:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.goals-modal .close:active {
    background: rgba(108, 117, 125, 0.2);
    transform: scale(0.95);
}

/* Goals Tabs */
.goals-modal .goals-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    padding: 0 1.5rem;
}

.goals-modal .goals-tabs .tab-btn {
    padding: 1rem 1.5rem !important;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    cursor: pointer;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease;
    font-weight: 500 !important;
    border-radius: 0 !important;
}

.goals-modal .goals-tabs .tab-btn:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.05) !important;
    border-bottom-color: transparent !important;
}

.goals-modal .goals-tabs .tab-btn.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border-bottom-color: #667eea !important;
    font-weight: 600 !important;
}

/* Modal Body */
.goals-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #f8f9fa;
}

/* Tab Content */
.goals-modal .tab-content {
    display: none;
    padding: 1.5rem;
}

.goals-modal .tab-content.active {
    display: block;
}

/* Goals Summary */
.goals-modal .goals-summary {
    background: white !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goals-modal .goal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.goals-modal .stat-item {
    text-align: center;
    background: transparent !important;
    padding: 0.5rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.goals-modal .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4338ca !important; /* Darker blue for better contrast */
    margin-bottom: 0.25rem;
}

.goals-modal .stat-label {
    color: #6c757d !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Goals Content */
.goals-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .goals-modal .modal-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .goals-modal .modal-header {
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .goals-modal .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .goals-modal .close {
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 1rem !important;
        display: flex !important;
        font-size: 1.75rem;
    }
    
    .goals-modal .goals-tabs {
        padding: 0 1rem;
    }
    
    .goals-modal .goals-tabs .tab-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .goals-modal .tab-content {
        padding: 1rem;
    }
    
    .goals-modal .goals-summary {
        padding: 1rem;
        margin-bottom: 1rem;
        background: white !important;
    }
    
    .goals-modal .goal-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .goals-modal .stat-item {
        background: transparent !important;
        padding: 0.5rem !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .goals-modal .stat-number {
        font-size: 1.5rem;
        color: #4338ca !important; /* Darker blue for better contrast */
    }
    
    .goals-modal .stat-label {
        color: #6c757d !important;
    }
    
    .goals-content {
        padding: 1rem;
    }
}


/* Comprehensive Goals System Styles */
.goals-tracking-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.goals-tracking-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.goals-tracking-card .card-header h4 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-goal {
    margin-bottom: 1.5rem;
}

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

.goal-info h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.1rem;
}

.goal-category {
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.goal-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-high {
    background: #fee;
    color: #c53030;
}

.priority-medium {
    background: #fef5e7;
    color: #d69e2e;
}

.priority-low {
    background: #f0fff4;
    color: #38a169;
}

.goal-progress {
    margin-bottom: 1rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.low {
    background: linear-gradient(90deg, #f56565, #fc8181);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #ed8936, #f6ad55);
}

.progress-fill.high {
    background: linear-gradient(90deg, #48bb78, #68d391);
}

.progress-fill.completed {
    background: linear-gradient(90deg, #38b2ac, #4fd1c7);
}

.progress-text {
    font-weight: bold;
    color: #333;
    min-width: 40px;
}

.goal-details {
    font-size: 0.9rem;
    color: #666;
}

.goal-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Dashboard Goals Section - Modern Design */
.dashboard-goals-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.dashboard-goals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

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

.goals-title {
    flex: 1;
}

.goals-title h2 {
    margin: 0 0 0.5rem 0;
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.goals-title h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.goals-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.goals-add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.goals-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.goals-add-btn i {
    font-size: 0.9rem;
}

/* Goals Stats Cards */
.goals-summary {
    margin-bottom: 2rem;
}

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

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.stat-card.active-goals::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.stat-card.completed-goals::before {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-card.progress-stat::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.active-goals .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.completed-goals .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.progress-stat .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Goals List */
.goals-list {
    margin-top: 1.5rem;
}

.goal-summary-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.goal-summary-item:hover {
    background: #f1f5f9;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.goal-info h5 {
    margin: 0 0 0.25rem 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
}

.goal-category {
    font-size: 0.875rem;
    color: #667eea;
    background: #e6f3ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: capitalize;
}

.goal-progress-mini {
    text-align: right;
    min-width: 80px;
}

.goal-progress-mini span {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
}

/* Modern Goals Empty State */
.goals-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.goals-empty:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-icon i {
    font-size: 3rem;
    color: #94a3b8;
    opacity: 0.7;
}

.empty-content h4 {
    margin: 0 0 1rem 0;
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-content p {
    margin: 0 0 2rem 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-content .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Individual Goal Cards */
.goal-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

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

.goal-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.goal-card-category {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-card-progress {
    margin-bottom: 1rem;
}

.goal-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.goal-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.goal-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.goal-card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Expandable Goal Rows Styling */
.goal-row {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.goal-row:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.goal-row.expanded {
    border-color: #667eea;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
}

.goal-row.primary-goal {
    border-left: 4px solid #667eea;
}

.goal-row-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.goal-row-header:hover {
    background: rgba(102, 126, 234, 0.02);
}

.goal-row-main {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.goal-row-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.goal-row-info {
    flex: 1;
    min-width: 0;
}

.goal-row-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goal-row-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.goal-row-meta .goal-category {
    font-size: 0.75rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-row-meta .goal-priority {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-row-meta .goal-priority.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.goal-row-meta .goal-priority.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.goal-row-meta .goal-priority.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.goal-row-meta .goal-deadline {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.goal-row-progress {
    flex-shrink: 0;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(#667eea 0deg, #667eea var(--progress, 0deg), #e5e7eb var(--progress, 0deg), #e5e7eb 360deg);
}

.progress-circle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
}

.progress-circle .progress-percentage {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 700;
    color: #667eea;
}

.progress-circle.completed {
    background: conic-gradient(#10b981 0deg, #10b981 360deg);
}

.progress-circle.completed .progress-percentage {
    color: #10b981;
}

.goal-row-expand {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transition: all 0.3s ease;
}

.expand-icon {
    transition: transform 0.3s ease;
}

.goal-row-details {
    border-top: 1px solid rgba(102, 126, 234, 0.08);
    background: rgba(248, 250, 252, 0.5);
}

.goal-details-content {
    padding: 2rem;
    background: rgba(248, 250, 252, 0.3);
    border-radius: 0 0 12px 12px;
}

.goal-details-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-description p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.goal-progress-detailed {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.goal-progress-detailed .progress-info {
    margin-bottom: 0.75rem;
}

.goal-progress-detailed .progress-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.goal-progress-detailed .progress-bar {
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.goal-progress-detailed .progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.goal-progress-detailed .progress-fill.low {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.goal-progress-detailed .progress-fill.medium {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.goal-progress-detailed .progress-fill.high {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.goal-progress-detailed .progress-fill.completed {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.goal-metadata {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.metadata-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.05);
}

.metadata-row:last-child {
    border-bottom: none;
}

.metadata-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.metadata-value {
    font-size: 0.9rem;
    color: #1a202c;
    font-weight: 500;
}

.metadata-value.priority-high {
    color: #dc2626;
}

.metadata-value.priority-medium {
    color: #d97706;
}

.metadata-value.priority-low {
    color: #059669;
}

.goal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.08);
}

.goal-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.goal-actions .btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.goal-actions .btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* Goals Rows Container */
.goals-rows-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Primary Badge Styling */
.primary-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .radio-group {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .radio-option, .checkbox-option {
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .radio-label, .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .volume-calculator {
        padding: 0.75rem;
        margin-top: 0.75rem;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .calculated-volume {
        font-size: 0.9rem;
    }
    
    .calculated-volume strong {
        font-size: 1rem;
    }
    
    /* Exercise picker mobile styling */
    .exercise-picker {
        width: 100%;
        box-sizing: border-box;
    }
    
    .exercise-picker .form-input {
        margin-bottom: 0.5rem;
    }
    
    .exercise-picker .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Form help text mobile */
    .form-help {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
    
    /* Goal creation form mobile adjustments */
    .goal-creation-form {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-actions {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

.form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile Responsive Goals Styles */
/* Dashboard Goal Creation Form */
.goal-creation-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.goals-toggle-btn.active {
    background: #dc2626;
    color: white;
}

.goals-toggle-btn.active:hover {
    background: #b91c1c;
}

.dashboard-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 500;
}

.dashboard-message.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.dashboard-message.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.dashboard-message.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Dashboard Goal Summary Items */
.goal-summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.goal-summary-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.goal-info {
    flex: 1;
}

.goal-info h5 {
    margin: 0 0 0.25rem 0;
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
}

.goal-category {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: capitalize;
}

.goal-progress-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.goal-progress-mini span {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.mini-progress-bar {
    width: 40px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
}

.goal-actions .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goal-actions .btn-icon:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.goal-actions .btn-icon i {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .dashboard-goals-section {
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .dashboard-goals-section .goals-header {
        margin-bottom: 0.5rem;
    }

    .dashboard-goals-section .goals-title h2 {
        font-size: 1.2rem;
        gap: 0.5rem;
        margin-bottom: 0;
    }

    .dashboard-goals-section .goals-title h2 i {
        font-size: 1rem;
    }

    .dashboard-goals-section .goals-summary {
        margin-bottom: 0.5rem;
    }

    .dashboard-goals-section .dash-goal-card {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }

    .dashboard-goals-section .dash-goal-ring {
        width: 40px;
        height: 40px;
    }

    .dashboard-goals-section .dash-goal-ring svg {
        width: 40px;
        height: 40px;
    }

    .dashboard-goals-section .dash-goal-pct {
        font-size: 0.55rem;
    }

    .dashboard-goals-section .dash-goal-title {
        font-size: 0.8rem;
    }

    .dashboard-goals-section .dash-goal-sub {
        font-size: 0.65rem;
    }

    .dashboard-goals-section .dash-goals-grid {
        gap: 0.35rem;
    }
    
    /* Dashboard Goals Stats - Compact horizontal row on mobile */
    .goals-stats {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        justify-content: space-around;
    }

    .goals-stats .stat-card {
        width: auto !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0.75rem;
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        flex: 1;
    }

    .goals-stats .stat-card::before {
        display: none;
    }

    .goals-stats .stat-card:hover {
        transform: none;
        box-shadow: none;
    }

    .goals-stats .stat-card .stat-icon {
        display: none;
    }

    .goals-stats .stat-card .stat-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .goals-stats .stat-card .stat-number {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary, #1a202c);
        margin-bottom: 0;
        line-height: 1.2;
    }

    .goals-stats .stat-card .stat-label {
        font-size: 0.65rem;
        color: var(--text-secondary, #64748b);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .goal-creation-form {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .goal-creation-form .form-group {
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .goal-creation-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .goal-creation-form .form-input,
    .goal-creation-form .form-select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        padding: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-actions button {
        width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .goal-summary-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .goal-info {
        text-align: center;
    }
    
    .goal-progress-mini {
        justify-content: center;
        min-width: unset;
    }
    
    .mini-progress-bar {
        width: 60px;
    }
    
    .goal-actions {
        justify-content: center;
    }
    
    .goals-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .goals-title h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .goals-title h2 i {
        font-size: 1.25rem;
    }
    
    .goals-subtitle {
        font-size: 0.9rem;
    }
    
    .goals-add-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .goals-add-btn .btn-text {
        display: inline;
    }
    
    .goals-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .goals-empty {
        padding: 2rem 1rem;
    }
    
    .empty-icon i {
        font-size: 2.5rem;
    }
    
    .empty-content h4 {
        font-size: 1.1rem;
    }
    
    .empty-content p {
        font-size: 0.9rem;
    }
    
    .empty-content .btn {
        width: 100%;
        padding: 1rem;
        justify-content: center;
        font-size: 1rem;
    }
    
    .goal-card {
        padding: 1.25rem;
    }
    
    .goal-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .goal-card-title {
        font-size: 1rem;
    }
    
    .goal-card-category {
        align-self: flex-start;
    }
    
    .goal-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .goal-card-actions .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-goals-section {
        padding: 1rem;
    }
    
    .goals-title h2 {
        font-size: 1.25rem;
    }
    
    .goals-subtitle {
        font-size: 0.85rem;
    }
    
    .goals-stats {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .empty-content h4 {
        font-size: 1rem;
    }
    
    .empty-content p {
        font-size: 0.85rem;
    }
    
    .goal-card {
        padding: 1rem;
    }
}

.view-all-goals {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.goals-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.goals-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.goal-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.secondary-goals h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
}

.mini-goal-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mini-goal-card:hover {
    background: #f1f5f9;
    border-color: #667eea;
}

.mini-goal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mini-goal-title {
    font-weight: 500;
    color: #333;
}

.mini-goal-progress {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: bold;
}

.mini-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.goals-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
    margin-top: 1rem;
}

.goals-empty i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    display: block;
}

.goals-empty h4 {
    margin: 0 0 1rem 0;
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
}

.goals-empty p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
}

.no-goals {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-goals i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.no-goals h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
}



.goals-content .tab-content {
    display: none;
}

.goals-content .tab-content.active {
    display: block;
}

.goals-overview {
    max-height: 60vh;
    overflow-y: auto;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.goals-header h4 {
    margin: 0;
    color: #333;
}

.goal-category-section {
    margin-bottom: 2rem;
}

.goal-category-section h5 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.goal-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.goal-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.goal-card.primary-goal-card {
    border-color: #667eea;
    background: #f8f9ff;
}

.goal-card.achieved {
    border-color: #38b2ac;
    background: #f0fdfa;
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.goal-title {
    flex: 1;
}

.goal-title h6 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}

.primary-badge {
    background: #667eea;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.goal-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: #333;
}

.goal-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.goal-progress-section {
    margin-bottom: 1rem;
}

.progress-display {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.progress-percentage {
    font-weight: bold;
    color: #667eea;
    min-width: 45px;
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.goal-type {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.goal-deadline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ====================================
   ENHANCED GOALS MODAL STYLES
   ==================================== */

/* Goals Modal Base Styles */
#goalsModal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    animation: modalFadeIn 0.3s ease-out;
}

#goalsModal .modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

/* Modal Header Improvements */
#goalsModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

#goalsModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

#goalsModal .modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

#goalsModal .modal-header h2 i {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#goalsModal .modal-header .close {
    color: white;
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#goalsModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}


/* Goals Summary Stats */
.goals-summary {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.goal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Goals List Styles */
.goals-list {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.goals-list::-webkit-scrollbar {
    width: 6px;
}

.goals-list::-webkit-scrollbar-track {
    background: transparent;
}

.goals-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.goals-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Enhanced Goal Cards */
.goal-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.goal-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.goal-card:hover::before {
    opacity: 1;
}

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

.goal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.goal-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-category.strength { background: #e3f2fd; color: #1976d2; }
.goal-category.cardio { background: #fce4ec; color: #c2185b; }
.goal-category.body_composition { background: #e8f5e8; color: #388e3c; }
.goal-category.consistency { background: #fff3e0; color: #f57c00; }
.goal-category.progressive { background: #f3e5f5; color: #7b1fa2; }

.goal-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.goal-progress-section {
    margin-bottom: 1rem;
}

.goal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.goal-progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
}

.goal-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.8s ease-out;
    position: relative;
}

.goal-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
    font-size: 0.875rem;
    color: #6c757d;
}

.milestone-timeline {
    margin-top: 0.5rem;
}

.milestone-track {
    position: relative;
    height: 20px;
    width: 100%;
}

.milestone-dot {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--border-color);
    cursor: default;
    transition: color 0.2s;
}

.milestone-dot.reached {
    color: #10b981;
}

.milestone-dot.reached i {
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
}

/* Goal category pills */
.goal-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    touch-action: manipulation;
}

.category-pill:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.category-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Goal card states */
.goal-card.goal-paused {
    opacity: 0.6;
}

.goal-card.goal-achieved {
    border-left: 3px solid #f59e0b;
}

.goal-status-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.goal-status-label.achieved {
    color: #f59e0b;
}

/* Friends' goals section */
.friends-goals-section {
    margin-top: 1.5rem;
}

.friends-goals-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.friends-goals-section h3 i {
    margin-right: 0.4rem;
    color: var(--text-secondary);
}

.friends-goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-goal-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
}

.friend-goal-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.friend-goal-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.friend-goal-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.friend-goal-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.friend-goal-title {
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-goal-milestone {
    font-size: 0.7rem;
    color: #10b981;
}

.friend-goal-streak {
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 600;
}

/* Goal suggestion card */
.goal-suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #f59e0b44;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.goal-suggestion-content {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.goal-suggestion-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.7rem;
}

/* Dashboard goals grid */
.goals-weekly-snapshot {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
}

.goals-weekly-snapshot i {
    margin-right: 0.2rem;
}

.dash-goals-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-goal-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: border-color 0.15s;
}

.dash-goal-card:hover {
    border-color: var(--primary-color);
}

.dash-goal-card.goal-paused {
    opacity: 0.6;
}

.goal-modal-card.goal-card-highlight {
    animation: goalCardHighlight 2s ease;
}

@keyframes goalCardHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
    20%, 60% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5); }
}

.dash-goal-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.dash-goal-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dash-goal-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.dash-goal-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-goal-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.dash-goal-sub span {
    color: var(--text-secondary);
}

.dash-goal-streak {
    font-size: 0.72rem;
    color: #f59e0b;
    font-weight: 600;
}

@media (max-width: 480px) {
    .dash-goal-ring {
        width: 52px;
        height: 52px;
    }
    .dash-goal-ring svg {
        width: 52px;
        height: 52px;
    }
    .dash-goal-pct {
        font-size: 0.65rem;
    }
    .goals-weekly-snapshot {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.goal-streak-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.streak-flame {
    color: #f59e0b;
    font-weight: 600;
}

.streak-flame i {
    color: #ef4444;
    margin-right: 0.2rem;
}

.streak-best {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
}

.goal-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.goal-action-btn.primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.goal-action-btn.primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

/* Goal Creation Form Styles */
.goal-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.goal-type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goal-type-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.goal-type-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.goal-type-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.goal-type-card h4 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-weight: 600;
}

.goal-type-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.template-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.template-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

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

.template-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.template-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #goalsModal .modal-content {
        width: 96%;
        max-width: calc(100vw - 2rem);
        max-height: 90vh;
        margin: 5vh 2% 0 2%;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    #goalsModal .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
        background: rgba(102, 126, 234, 0.03);
        flex-shrink: 0;
        border-radius: 16px 16px 0 0;
        border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    }
    
    #goalsModal .modal-header h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1a202c;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    #goalsModal .modal-header h2 i {
        color: #667eea;
        font-size: 1.2rem;
    }
    
    #goalsModal .modal-header .close {
        font-size: 1.5rem;
        line-height: 1;
        padding: 0.5rem;
        right: 0.5rem;
        top: 0.5rem;
    }
    
    
    .goals-summary {
        padding: 1.5rem;
        flex-shrink: 0;
    }
    
    .goal-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .goals-list {
        padding: 1.5rem;
        max-height: 40vh;
    }
    
    .goal-card {
        padding: 1rem;
    }
    
    .goal-title {
        font-size: 1.1rem;
    }
    
    .goal-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .goal-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .goal-types-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .goal-type-card {
        padding: 1rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #goalsModal .modal-header {
        padding: 1rem;
    }
    
    #goalsModal .modal-header h2 {
        font-size: 1.25rem;
    }
    
    
    .goals-summary {
        padding: 1rem;
    }
    
    .goal-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .goals-list {
        padding: 1rem;
    }
    
    .goal-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .goal-category {
        align-self: flex-start;
    }
}

/* Dark mode support for goals modal */
@media (prefers-color-scheme: dark) {
    #goalsModal .modal-content {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .goals-summary {
        background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    }
    
    .stat-item {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .goal-card {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .goal-description {
        color: #b0b0b0;
    }
    
    .goal-progress-bar {
        background: #404040;
    }
}

/* Priority Indicators */
.priority-high {
    color: #dc3545 !important;
    font-weight: 600;
}

.priority-medium {
    color: #fd7e14 !important;
    font-weight: 500;
}

.priority-low {
    color: #6c757d !important;
    font-weight: 400;
}

.goal-meta .goal-priority {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.goal-meta .goal-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.goal-meta .goal-timeline i {
    color: #6c757d;
}

/* Progress fill color variations */
.goal-progress-fill.completed {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.goal-progress-fill.high {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.goal-progress-fill.medium {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.goal-progress-fill.low {
    background: linear-gradient(90deg, #6c757d 0%, #adb5bd 100%);
}

/* Template specific styles */
.template-target {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

.template-priority {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced hover effects */
.goal-card:hover .goal-title {
    color: #667eea;
}

.template-card:hover .template-title {
    color: #667eea;
}

/* Loading states */
.goals-list.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6c757d;
}

.goals-list.loading i {
    font-size: 2rem;
    margin-right: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.goal-action-btn:focus,
.goal-type-card:focus,
.template-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dashboard Goals Preview Styles */
.goals-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    overflow: visible;
    max-height: none;
}

.primary-goal-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.primary-goal-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.goal-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.goal-summary-item.primary {
    margin-bottom: 0.5rem;
}

.goal-info h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

.goal-info .goal-category {
    font-size: 0.75rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.goal-progress-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.goal-progress-mini .progress-percentage {
    font-weight: 700;
    font-size: 1.1rem;
    color: #667eea;
    color: #667eea;
    font-size: 1rem;
    min-width: 35px;
}

.mini-progress-bar {
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.8s ease-out;
}

.primary-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.other-goals-summary {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.other-goals-text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.goals-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Ensure dashboard goals list is not scrollable */
#dashboardGoalsList {
    overflow: visible;
    max-height: none;
    padding: 0;
}

.goals-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.goals-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.goals-empty h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
}

.goals-empty p {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .goals-preview {
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .primary-goal-preview {
        padding: 1.25rem;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(102, 126, 234, 0.15);
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .goal-summary-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
        overflow-x: hidden;
    }
    
    .goal-info {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .goal-info h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: #1a202c;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .goal-info .goal-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        color: #667eea;
        font-weight: 600;
        display: inline-block;
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .goal-progress-mini {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem;
        background: rgba(102, 126, 234, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.1);
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .goal-progress-mini .progress-percentage {
        font-size: 1.2rem;
        font-weight: 700;
        color: #667eea;
        min-width: 60px;
        text-align: right;
    }
    
    .mini-progress-bar {
        flex: 1;
        margin: 0 0.75rem;
        height: 6px;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 8px;
        overflow: hidden;
        min-width: 60px;
    }
    
    .mini-progress-bar .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 8px;
        transition: width 0.3s ease;
    }
    
    .primary-badge {
        position: static;
        align-self: flex-start;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 16px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        margin-top: 0.5rem;
    }
}

