/* Due date badges for action suggestions */
.atlas-due-date-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.atlas-due-date-badge {
	display: inline-block;
	background: #fff;
	color: #000;
	border: 1px solid #ddd;
	border-radius: 16px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
	user-select: none;
}
.atlas-due-date-badge:hover {
	border-color: #bbb;
}
/**
 * Atlas Account Dashboard Styles
 */

/* Reset and Base Styles */
.atlas-account-dashboard * {
    box-sizing: border-box;
}

.atlas-account-dashboard {
    font-family: var(--atlas-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    line-height: 1.6;
    color: var(--atlas-text-primary, #333);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.atlas-account-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e5e7eb;
}

.atlas-account-header h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.atlas-account-header p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1.1rem;
}

/* Tab Navigation */
.atlas-tab-nav {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    overflow-x: auto;
    gap: 4px;
}

.atlas-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: var(--atlas-text-secondary, #6b7280);
    white-space: nowrap;
}

.atlas-tab-btn:hover {
    background: var(--atlas-button-secondary-hover-bg, #e5e7eb);
    color: var(--atlas-text-primary, #374151);
}

.atlas-tab-btn.active {
    background: var(--atlas-active-tab, #3b82f6);
    color: var(--atlas-active-tab-text, white);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.atlas-tab-btn i {
    font-size: 16px;
    min-width: 16px;
    text-align: center;
}

/* Settings tab - icon only, stick to right, distinct style */

/* Settings tab appearance aligned with overall UI (primary palette) */
.atlas-tab-btn.atlas-tab-settings {
    margin-left: auto;
    padding: 10px; /* exactly 10px around gear icon */
    background: var(--atlas-secondary-light, #f8fafc);
    color: var(--atlas-primary, #3b82f6);
    border: 1px solid var(--atlas-border, #e2e8f0);
    min-width: auto; /* no enforced width like other tabs */
    flex: 0 0 auto; /* do not stretch like other tabs */
}

.atlas-tab-btn.atlas-tab-settings:hover {
    background: var(--atlas-button-secondary-hover-bg, #e5e7eb);
    color: var(--atlas-primary-dark, #2563eb); /* slightly darker on hover */
}

/* Ensure the gear icon has some left/right breathing room without bloating tab group */
.atlas-tab-btn.atlas-tab-settings i {
    padding: 0; /* icon sits inside the 10px padding */
}

/* Fallback icons if FontAwesome doesn't load */
.atlas-tab-btn i.fontawesome-fallback.fa-chart-line:before {
    content: "📈";
    font-family: Arial, sans-serif;
}

.atlas-tab-btn i.fontawesome-fallback.fa-bullseye:before {
    content: "🎯";
    font-family: Arial, sans-serif;
}

.atlas-tab-btn i.fontawesome-fallback.fa-calendar-day:before {
    content: "📅";
    font-family: Arial, sans-serif;
}

.atlas-tab-btn i.fontawesome-fallback.fa-chart-bar:before {
    content: "📊";
    font-family: Arial, sans-serif;
}

.atlas-tab-btn i.fontawesome-fallback.fa-bell:before {
    content: "🔔";
    font-family: Arial, sans-serif;
}

/* Tab Content */
.atlas-tab-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.atlas-tab-panel {
    display: none;
    padding: 30px;
}

.atlas-tab-panel.active {
    display: block;
}

/* Goal Acceptance Styles */
.atlas-acceptance-list { 
    display: grid; 
    gap: 16px; 
    margin-top: 20px; 
}

.atlas-acceptance-card { 
    display: block; 
    padding: 0;
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.atlas-acceptance-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.atlas-acceptance-header { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    min-height: 64px; /* ensure enough height to visually center multi-line titles */
}

.atlas-acceptance-header:hover {
    background-color: #f9fafb;
}

.atlas-acceptance-header input[type="checkbox"] { 
    margin-top: 0; 
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.atlas-acceptance-content { 
    flex: 1; 
    min-width: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch; /* occupy full header height for true vertical centering */
    height: 100%;
}

.atlas-acceptance-title { 
    font-weight: 600; 
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
}

.atlas-acceptance-desc { 
    color: #4b5563; 
    font-size: 0.9rem; 
    margin-top: 6px;
    line-height: 1.5;
}

.atlas-acceptance-meta { 
    color: var(--atlas-text-secondary, #6b7280); 
    font-size: 0.8rem; 
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.atlas-acceptance-chevron { 
    margin-left: auto; 
    transition: transform 0.3s ease, color 0.2s ease; 
    color: var(--atlas-text-secondary, #6b7280); 
    flex-shrink: 0;
    font-size: 1.1rem;
}

.atlas-acceptance-header:hover .atlas-acceptance-chevron {
    color: #3b82f6;
}

.atlas-acceptance-actions-list { 
    margin-top: 0;
    padding: 0 18px 18px 18px;
    border-top: 1px solid #f3f4f6;
}

.atlas-acceptance-actions-note { 
    color: var(--atlas-text-secondary, #6b7280); 
    font-size: 0.85rem; 
    margin: 16px 0 12px 0; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    background: #eff6ff;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.atlas-acceptance-actions-note i {
    color: #3b82f6;
}

.atlas-acceptance-actions-ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.atlas-acceptance-action-item { 
    background: #f9fafb; 
    border: 1px solid var(--atlas-border, #e5e7eb); 
    border-radius: 8px; 
    padding: 12px 14px; 
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.atlas-acceptance-action-item:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.atlas-acceptance-action-item:last-child {
    margin-bottom: 0;
}

.atlas-acceptance-action-item .atlas-action-title { 
    font-weight: 600; 
    color: #1f2937;
    font-size: 0.95rem;
}

.atlas-acceptance-action-item .atlas-action-desc { 
    color: #4b5563; 
    font-size: 0.875rem; 
    margin-top: 6px;
    line-height: 1.5;
}

.atlas-acceptance-action-empty { 
    color: #9ca3af; 
    font-style: italic; 
    padding: 16px 12px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
}

.atlas-acceptance-card.collapsed .atlas-acceptance-actions-list { 
    display: none; 
}

.atlas-acceptance-card.collapsed .atlas-acceptance-chevron { 
    transform: rotate(-90deg); 
}

.atlas-acceptance-actions { 
    display: flex; 
    justify-content: flex-end; 
    gap: 12px; 
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.atlas-acceptance-actions .atlas-btn {
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.atlas-acceptance-actions .atlas-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.atlas-acceptance-actions .atlas-accept-all {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.atlas-acceptance-actions .atlas-accept-all:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.atlas-acceptance-actions .atlas-accept-complete {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.atlas-acceptance-actions .atlas-accept-complete:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.atlas-panel-header {
    margin-bottom: 30px;
    text-align: center;
}

.atlas-panel-header h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.atlas-panel-header p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1rem;
}

/* Goals Section */
.atlas-ai-goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.atlas-ai-suggestions,
.atlas-custom-goals {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.atlas-ai-suggestions h4,
.atlas-custom-goals h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
}

.atlas-goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Goal Library Category Filter Buttons */
.atlas-goal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.atlas-category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: var(--atlas-card-bg, #ffffff);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.atlas-category-filter-btn i {
    font-size: 13px;
    opacity: 0.8;
}

.atlas-category-filter-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.atlas-category-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.atlas-category-filter-btn.active i {
    opacity: 1;
}

.atlas-category-filter-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments for category buttons */
@media (max-width: 768px) {
    .atlas-goal-categories {
        gap: 8px;
        padding: 12px;
    }
    
    .atlas-category-filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .atlas-category-filter-btn i {
        font-size: 12px;
    }
}

.atlas-goal-card {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
}

.atlas-ai-goal {
    border-left: 4px solid #3b82f6;
}

.atlas-custom-goal {
    border-left: 4px solid #10b981;
}

.atlas-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.atlas-goal-header h5 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Inline buttons within goal title */
.atlas-goal-title h5 button {
    margin-left: 12px;
    font-size: 0.7rem;
    padding: 4px 8px;
    vertical-align: middle;
}

.atlas-goal-content p {
    margin: 0 0 10px 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.atlas-goal-content p:last-child {
    margin-bottom: 0;
}

/* Category Sections - My Plan Tab */
.atlas-category-section {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-bottom: 0px;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.atlas-category-header {
    background: #f8fafc;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 12px 12px 0 0;
}

.atlas-category-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

.atlas-category-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-category-toggle {
    font-size: 14px;
    color: var(--atlas-text-secondary, #6b7280);
    transition: transform 0.3s ease;
}

.atlas-category-goals {
    padding: 20px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.atlas-category-goals .atlas-goal-card {
    margin-bottom: 20px;
}

.atlas-category-goals .atlas-goal-card:last-child {
    margin-bottom: 0;
}

/* When goals are collapsed, remove the border bottom from header and add rounded corners */
.atlas-category-section .atlas-category-header:has(+ .atlas-category-goals[style*="display: none"]) {
    border-bottom: none;
    border-radius: 12px;
}

/* Alternative for browsers that don't support :has() */
.atlas-category-section.collapsed .atlas-category-header {
    border-bottom: none;
    border-radius: 12px;
}

/* Drag handle */
.atlas-category-drag-handle {
    cursor: move;
    color: #9ca3af;
    font-size: 16px;
    padding: 4px;
}
.atlas-category-drag-handle:hover {
    color: #3b82f6;
}

/* Sortable ghost placeholder */
.atlas-category-ghost {
    opacity: 0.6;
    transform: rotate(1deg);
}

/* Goal drag handle and ghost */
.atlas-goal-drag-handle {
    cursor: move;
    color: #9ca3af;
}
.atlas-goal-drag-handle:hover {
    color: #3b82f6;
}
.atlas-goal-ghost {
    opacity: 0.7;
}

/* Action drag handle and ghost */
.atlas-action-drag-handle {
    cursor: move;
    color: #9ca3af;
}
.atlas-action-drag-handle:hover {
    color: #3b82f6;
}
.atlas-action-ghost {
    opacity: 0.7;
}

/* Action Builder */
.atlas-action-builder {
    max-width: 800px;
    margin: 0 auto;
}

.atlas-goal-selector {
    margin-bottom: 30px;
}

.atlas-goal-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.atlas-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.atlas-actions-container {
    margin-bottom: 20px;
}

.atlas-action-card {
    background: #f8fafc;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.atlas-action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.atlas-action-header h6 {
    margin: 0;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
}

.atlas-action-content p {
    margin: 0 0 10px 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.atlas-action-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
}


.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-skipped {
    background: #f3f4f6;
    color: var(--atlas-text-secondary, #6b7280);
}

/* Today Pane */
.atlas-today-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.atlas-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.atlas-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.atlas-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.atlas-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.atlas-task-card {
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.atlas-task-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.atlas-task-card.overdue {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.atlas-task-card.completed {
    opacity: 0.7;
    background: #f0fdf4;
}

.atlas-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.atlas-task-header h6 {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.atlas-task-actions {
    display: flex;
    gap: 8px;
}

.atlas-task-content p {
    margin: 0 0 10px 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.atlas-task-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-task-due.overdue {
    color: #ef4444;
    font-weight: 600;
}

.atlas-task-completed {
    color: #10b981;
    font-weight: 600;
}


/* Empty State Styles */
.atlas-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 20px 0;
}

.atlas-empty-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.atlas-empty-state h3 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
}

.atlas-empty-state p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Export Options */
.atlas-export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.atlas-export-card {
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s ease;
}

.atlas-export-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.atlas-export-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--atlas-primary, #3b82f6);
}

.atlas-export-content h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
}

.atlas-export-content p {
    margin: 0 0 20px 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Buttons */
.atlas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.atlas-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.atlas-btn-primary {
    background: var(--atlas-primary, #3b82f6);
    color: var(--atlas-text-on-primary, white);
}

.atlas-btn-primary:hover:not(:disabled) {
    background: var(--atlas-primary-dark, #2563eb);
    color: var(--atlas-text-on-primary, white);
    transform: translateY(-1px);
}

.atlas-btn-secondary {
    background: var(--atlas-secondary, #6b7280);
    color: var(--atlas-text-on-primary, white);
}

.atlas-btn-secondary:hover:not(:disabled) {
    background: var(--atlas-secondary-dark, #4b5563);
    color: var(--atlas-secondary-dark, #4b5563);
    transform: translateY(-1px);
}

.atlas-btn-success {
    background: var(--atlas-success, #10b981);
    color: var(--atlas-text-on-success, white);
}

.atlas-btn-success:hover:not(:disabled) {
    background: var(--atlas-success-dark, #059669);
}

.atlas-btn-warning {
    background: var(--atlas-warning, #f59e0b);
    color: var(--atlas-text-on-warning, white);
}

.atlas-btn-warning:hover:not(:disabled) {
    background: var(--atlas-warning-dark, #d97706);
}

.atlas-btn-danger {
    background: var(--atlas-danger, #ef4444);
    color: var(--atlas-text-on-danger, white);
}

.atlas-btn-danger:hover:not(:disabled) {
    background: var(--atlas-danger-dark, #dc2626);
}

.atlas-btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Modal */
.atlas-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.atlas-modal.show {
    display: flex;
}

.atlas-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.atlas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.atlas-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
}

.atlas-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--atlas-text-secondary, #6b7280);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-modal-close:hover {
    color: #374151;
}

.atlas-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px);
}

.atlas-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.atlas-form-group input,
.atlas-form-group textarea,
.atlas-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.atlas-form-group input:focus,
.atlas-form-group textarea:focus,
.atlas-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Empty States */
.atlas-no-goals,
.atlas-no-actions,
.atlas-no-tasks {
    text-align: center;
    color: var(--atlas-text-secondary, #6b7280);
    font-style: italic;
    padding: 20px;
}

.atlas-empty-state {
    text-align: center;
    color: var(--atlas-text-secondary, #6b7280);
    padding: 40px 20px;
}

.atlas-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #d1d5db;
}

.atlas-empty-state p {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.atlas-empty-state small {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Login Required */
.atlas-account-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 8px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .atlas-account-dashboard {
        padding: 10px;
    }
    
    .atlas-tab-nav {
        flex-direction: column;
        gap: 2px;
    }
    
    .atlas-tab-btn {
        min-width: auto;
        justify-content: flex-start;
    }
    
    .atlas-ai-goals {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .atlas-today-stats {
        grid-template-columns: 1fr;
    }
    
    .atlas-export-options {
        grid-template-columns: 1fr;
    }
    
    .atlas-task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .atlas-task-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .atlas-goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
}

@media (max-width: 480px) {
    .atlas-tab-panel {
        padding: 20px 15px;
    }
    
    .atlas-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .atlas-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* My Plan Tab Specific Styles */
.atlas-goals-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.atlas-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.atlas-section-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-section-header p {
    margin: 5px 0 0 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.9rem;
}

.atlas-section-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

/* Goal Cards - Compact styling for better density */
.atlas-goal-card {
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.atlas-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.atlas-goal-title h5 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.atlas-goal-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.atlas-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Inline badge styling within h5 */
.atlas-goal-title h5 .atlas-badge {
    margin-left: 8px;
    font-size: 0.6rem;
    padding: 3px 8px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Inline status badge styling within action h6 */
.atlas-action-header h6 .atlas-badge {
    margin-left: 8px;
    font-size: 0.6rem;
    padding: 3px 8px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Action buttons in header */
.atlas-action-header .atlas-action-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* Removed source-specific badges - only priority badges remain */

.atlas-badge-priority-high {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

.atlas-badge-priority-medium {
    background: #d97706;
    color: white;
    font-weight: 600;
}

.atlas-badge-priority-low {
    background: #059669;
    color: white;
    font-weight: 600;
}

/* Status badges */
.atlas-badge-status-active {
    background: var(--atlas-primary, #3b82f6);
    color: white;
}

.atlas-badge-status-completed {
    background: #16a34a;
    color: white;
}

/* Loading states */
.atlas-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--atlas-text-secondary, #6b7280);
    gap: 8px;
}

.atlas-loading-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--atlas-text-secondary, #6b7280);
    gap: 8px;
    font-size: 0.9rem;
}

.atlas-icon-spinner {
    animation: spin 1s linear infinite;
}

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

/* Empty and error states */
.atlas-empty-state,
.atlas-error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-empty-icon,
.atlas-error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-error-icon {
    color: #dc2626;
}

.atlas-empty-icon i,
.atlas-error-icon i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.atlas-empty-state h3,
.atlas-error-state h3 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.atlas-empty-state p,
.atlas-error-state p {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.atlas-no-actions {
    text-align: center;
    color: var(--atlas-text-secondary, #6b7280);
    font-style: italic;
    padding: 20px;
    margin: 0;
}

/* Hide empty content */
.atlas-goal-content p:empty,
.atlas-action-description:empty {
    display: none;
}

/* Modal Styles */
.atlas-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.atlas-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atlas-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.atlas-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--atlas-text-secondary, #6b7280);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-modal-close:hover {
    color: #374151;
}

.atlas-modal-body {
    padding: 24px;
}

.atlas-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #cbd5e1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.atlas-form-group {
    margin-bottom: 20px;
}

.atlas-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.atlas-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.atlas-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.atlas-form-control[type="text"],
.atlas-form-control[type="email"],
.atlas-form-control[type="password"] {
    height: 40px;
}

.atlas-form-control[type="textarea"] {
    resize: vertical;
    min-height: 80px;
}


.atlas-goal-content {
    margin-bottom: 12px;
}

.atlas-goal-content p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Actions Preview */
.atlas-goal-actions-preview {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.atlas-actions-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.atlas-actions-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.9rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.atlas-actions-toggle-btn:hover {
    color: #3b82f6;
}

.atlas-actions-list {
    max-height: none;
    overflow: visible;
}

/* Action Items */
.atlas-action-item {
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.atlas-action-item:last-child {
    margin-bottom: 0;
}

.atlas-action-item:hover {
}

.atlas-action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.atlas-action-header h6 {
    margin: 0;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
}


.atlas-action-description {
    margin: 0 0 8px 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.85rem;
    line-height: 1.4;
}

.atlas-action-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.atlas-no-actions {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 12px;
    font-size: 0.85rem;
}

/* Button Styles */
.atlas-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.atlas-btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.atlas-btn-xs {
    padding: 2px 6px;
    font-size: 0.7rem;
}

.atlas-btn-primary {
    background: var(--atlas-primary, #3b82f6);
    color: var(--atlas-text-on-primary, white);
    border-color: var(--atlas-primary, #3b82f6);
}

.atlas-btn-primary:hover {
    background: var(--atlas-primary-dark, #2563eb);
    color: var(--atlas-text-on-primary, white);
    border-color: var(--atlas-primary-dark, #2563eb);
}

.atlas-btn-success {
    background: var(--atlas-success, #10b981);
    color: var(--atlas-text-on-success, white);
    border-color: var(--atlas-success, #10b981);
}

.atlas-btn-success:hover {
    background: var(--atlas-success-dark, #059669);
    border-color: var(--atlas-success-dark, #059669);
}

.atlas-btn-outline {
    background: transparent;
    color: var(--atlas-text-secondary, #6b7280);
    border-color: #d1d5db;
}

.atlas-btn-outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.atlas-btn-link {
    background: none;
    color: var(--atlas-text-secondary, #6b7280);
    border: none;
    padding: 4px 8px;
}

.atlas-btn-link:hover {
    color: #3b82f6;
    background: none;
}

/* Font Awesome Icon Styling */
.atlas-icon-tasks,
.atlas-icon-download,
.atlas-icon-plus,
.atlas-icon-ai,
.atlas-icon-check,
.atlas-icon-close,
.atlas-icon-edit,
.atlas-icon-trash,
.atlas-icon-chevron-down,
.atlas-icon-loading {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Notification System */
.atlas-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    min-width: 300px;
    max-width: 400px;
}

.atlas-notification-success {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.atlas-notification-info {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.atlas-notification-error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.atlas-notification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.atlas-notification span {
    flex: 1;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
}

.atlas-notification-close {
    background: none;
    border: none;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-notification-close:hover {
    color: #374151;
}

/* Loading States */
.atlas-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.atlas-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design for My Plan */
@media (max-width: 768px) {
    .atlas-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .atlas-goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    
    .atlas-actions-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .atlas-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
/* Custom icons for specific use cases (keeping for compatibility) */
.atlas-icon-send::before { content: "📤"; }
.atlas-icon-pdf::before { content: "📄"; }
.atlas-icon-table::before { content: "📊"; }
.atlas-icon-settings::before { content: "⚙️"; }

/* Tab Badge */
.atlas-tab-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    display: inline-block;
}

.atlas-tab-badge.zero {
    display: none !important;
}

/* Tab Button with Badge */
.atlas-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Assessment Completion Date */
.atlas-assessment-date {
    text-align: center;
    margin: 15px 0 30px 0;
}

.atlas-assessment-date p {
    font-size: 0.9rem;
    color: var(--atlas-text-secondary, #6b7280);
    margin: 0;
}

.atlas-assessment-date strong {
    color: #1f2937;
    font-weight: 600;
}

/* ===== ENHANCED MY PLAN TAB STYLES ===== */

/* My Plan Section Header */
.atlas-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

/* Export Plan Modal Styles */
#export-plan-modal .atlas-modal-content {
    max-width: 600px;
}

#export-plan-modal .atlas-export-options {
    grid-template-columns: 1fr;
    gap: 20px;
}

#export-plan-modal .atlas-export-card {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

#export-plan-modal .atlas-export-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    margin-bottom: 0;
}

#export-plan-modal .atlas-export-content {
    flex: 1;
}

#export-plan-modal .atlas-export-content h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

#export-plan-modal .atlas-export-content p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

#export-plan-modal .atlas-export-btn {
    margin-top: 0;
}

.atlas-section-header > div:first-child {
    flex: 1;
}

.atlas-section-header h4 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.atlas-section-header p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1rem;
}

.atlas-section-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Goals Container */
.atlas-goals-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Goal Cards - Enhanced Design matching Progress tab */
.atlas-goal-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.atlas-goal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Goal Header */
.atlas-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
    padding: 10px;
}

/* Goal Header - Clickable for collapse/expand */
.atlas-goal-toggle {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.atlas-goal-toggle:hover {
    background-color: #f9fafb;
}

.atlas-goal-chevron {
    transition: transform 0.3s ease;
}

.atlas-goal-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.atlas-goal-title-text {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
}

.atlas-goal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
}

.atlas-goal-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Goal Content */
.atlas-goal-content {
    margin-bottom: 20px;
}

.atlas-goal-description {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.atlas-goal-description:empty {
    display: none;
}

/* Goal Footer */
.atlas-goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #cbd5e1;
}

.atlas-goal-footer .atlas-btn {
    font-size: 0.85rem;
}

.add-action {
    background: #f8fafc;
    color: #3b82f6;
    border: 1px solid var(--atlas-border, #e5e7eb);
    margin-bottom: 16px;
}

.add-action:hover {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Admin Reassign Buttons */
.reassign-goal,
.reassign-action {
    color: #8b5cf6 !important;
    /* border-color: #8b5cf6 !important; */
}

.reassign-goal:hover,
.reassign-action:hover {
    background: #8b5cf6 !important;
    color: white !important;
    /* border-color: #8b5cf6 !important; */
}

/* Actions List */
.atlas-actions-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atlas-actions-toggle {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbd5e1;
}

/* Action Items - Enhanced Design matching Progress tab */
.atlas-action-item {
    background: #f8fafc;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    padding: 18px 24px;
    position: relative;
}

.atlas-action-item:last-child {
    margin-bottom: 0;
}

/* Action Header */
.atlas-action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
    padding: 20px;
}

.atlas-action-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.atlas-action-status-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Status Icon Colors */
.atlas-icon-pending {
    color: #9ca3af;
}

.atlas-icon-progress {
    color: #3b82f6;
}

.atlas-icon-completed {
    color: #10b981;
}

.atlas-icon-skipped {
    color: #f59e0b;
}

.atlas-icon-removed {
    color: #ef4444;
}

.atlas-action-title-text {
    margin: 0;
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

.atlas-action-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Action Content */
.atlas-action-content {
    margin-left: 32px;
}

.atlas-action-description {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atlas-action-description:empty {
    display: none;
}

/* Enhanced Priority Badges - Clean, no gradients */
.atlas-badge-priority-high {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

.atlas-badge-priority-medium {
    background: #d97706;
    color: white;
    font-weight: 600;
}

.atlas-badge-priority-low {
    background: #059669;
    color: white;
    font-weight: 600;
}

/* Enhanced Status Badges - Clean, no gradients */
.atlas-badge-status-pending {
    background: #6b7280;
    color: white;
}

.atlas-badge-status-in-progress {
    background: var(--atlas-primary, #3b82f6);
    color: white;
}

.atlas-badge-status-completed {
    background: #10b981;
    color: white;
}

.atlas-badge-status-skipped {
    background: #f59e0b;
    color: white;
}

/* Status Badge Dropdown Component */
.atlas-status-badge-dropdown {
    position: relative;
    display: inline-block;
}

.atlas-status-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white !important;
    min-width: 110px;
}

/* Ensure all text inside status badge stays white (override theme vars) */
.atlas-status-badge-btn span,
.atlas-status-badge-btn .atlas-status-text,
.atlas-status-badge-btn i {
    color: white !important;
}

.atlas-status-badge-btn:hover {
    opacity: 0.9;
}

.atlas-status-badge-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.atlas-status-badge-btn i:first-child {
    font-size: 12px;
    color: inherit !important;
}

.atlas-status-arrow {
    font-size: 9px !important;
    margin-left: 2px;
}

.atlas-status-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 2px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 10000;
    overflow: hidden;
}

.atlas-status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.atlas-status-option:last-child {
    border-bottom: none;
}

.atlas-status-option:hover {
    background: #f3f4f6;
    color: #374151;
}

.atlas-status-option.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

.atlas-status-option i {
    font-size: 14px;
    width: 16px;
    color: inherit;
}

.atlas-status-option:hover i {
    color: #374151;
}

/* Enhanced Button Styles */
.atlas-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.atlas-btn-primary {
    background: var(--atlas-primary, #3b82f6);
    color: var(--atlas-text-on-primary, white);
}

.atlas-btn-primary:hover {
    background: var(--atlas-primary-dark, #2563eb);
    color: var(--atlas-text-on-primary, white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.atlas-btn-outline {
    background: transparent;
    color: var(--atlas-text-secondary, #6b7280);
    border: 1px solid #d1d5db;
}

.atlas-btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.atlas-btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.atlas-btn-xs {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 5px;
}

/* Action Status Column - Badge Above Icon */
.atlas-action-status-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 60px;
    margin-right: 16px;
}

.atlas-action-status-column .atlas-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    white-space: nowrap;
}

.atlas-action-status-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Title Wrapper */
.atlas-action-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Assigned Person Badge - Under Action Title */
.atlas-assigned-person-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    align-self: flex-start;
    margin-top: 2px;
}

.atlas-assigned-person-inline i {
    font-size: 0.65rem;
    color: var(--atlas-text-secondary, #6b7280);
}

/* Action Metadata - Inline with Assigned Person */
.atlas-action-meta-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-action-meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.atlas-action-meta-inline i {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Action Metadata */
.atlas-action-metadata {
    display: flex;
    gap: 16px;
    margin-left: 36px;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-action-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.atlas-action-meta-item i {
    font-size: 0.9rem;
}

.atlas-due-date-overdue {
    color: #dc2626;
    font-weight: 600;
}

.atlas-due-date-today {
    color: #d97706;
    font-weight: 600;
}

.atlas-due-date-upcoming {
    color: #3b82f6;
}

/* Loading States */
.atlas-loading-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--atlas-text-secondary, #6b7280);
    gap: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.atlas-icon-spinner {
    animation: spin 1s linear infinite;
}

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

/* Empty States */
.atlas-no-actions,
.atlas-no-goals {
    text-align: center;
    color: #9ca3af;
    padding: 48px 24px;
    margin: 0;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    font-size: 1rem;
}

.atlas-no-goals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.atlas-no-goals i {
    font-size: 3rem;
    color: #d1d5db;
}

.atlas-no-goals p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1rem;
}

.atlas-no-goals .atlas-btn {
    margin-top: 16px;
}

/* Empty state buttons */
.atlas-empty-state .atlas-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.atlas-empty-state .atlas-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Atlas Wizard completed state button styling */
.atlas-wizard-completed .atlas-results-actions .atlas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.atlas-wizard-completed .atlas-results-actions .atlas-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Enhanced My Plan */
@media (max-width: 768px) {
    .atlas-goal-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .atlas-goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .atlas-goal-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .atlas-action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .atlas-action-title {
        width: 100%;
    }
    
    .atlas-action-status-column {
        min-width: 50px;
    }
    
    .atlas-action-content {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .atlas-action-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .atlas-goal-card {
        padding: 16px;
    }
    
    .atlas-goal-title-text {
        font-size: 1.1rem;
    }
    
    .atlas-action-item {
        padding: 12px;
    }
    
    .atlas-action-title-text {
        font-size: 0.8rem;
    }
    
    .atlas-action-badges {
        flex-wrap: wrap;
    }
    
    .atlas-assigned-person-inline {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .atlas-btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .atlas-btn-xs {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

/* ===== ADD ACTION MODAL STYLES ===== */

/* Action Source Tabs */
.atlas-action-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 12px;
}

.atlas-tab-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--atlas-text-secondary, #6b7280);
    transition: all 0.2s ease;
}

.atlas-tab-btn-sm:hover {
    background: #e5e7eb;
    color: #374151;
}

.atlas-tab-btn-sm.active {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-color: #3b82f6;
}

.atlas-tab-btn-sm i {
    margin-right: 6px;
}

/* Add Action Modal Tab Panels */
#add-action-modal .atlas-tab-panel {
    display: none !important;
    padding: 0;
}

#add-action-modal .atlas-tab-panel.active {
    display: block !important;
}

/* Ensure custom tab content is visible when active */
#add-action-modal #custom-tab.active {
    display: block !important;
}

#add-action-modal #library-tab.active {
    display: block !important;
}

/* Library Actions List */
.atlas-library-action-item {
    background: #f8fafc;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
}

.atlas-library-action-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.atlas-library-action-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.atlas-library-action-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin: 0;
}

.atlas-library-action-category {
    display: inline-block;
    padding: 3px 10px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    width: fit-content;
}

.atlas-library-action-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
    margin-top: 8px;
}

.atlas-action-meta {
    margin: 6px 0 8px 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.82rem;
}

.atlas-action-meta i {
    margin-right: 4px;
    color: #9ca3af;
}

.atlas-library-action-description {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.atlas-library-action-description:empty {
    display: none;
}

/* Search Input */
#action-search {
    margin-bottom: 16px;
}

/* Custom Action Form */
#add-custom-action-form {
    margin-top: 16px;
}

/* Modal Footer Adjustments */
#add-action-modal .atlas-modal-footer {
    justify-content: space-between;
}

#add-action-modal .atlas-modal-footer .atlas-btn {
    min-width: 120px;
}

/* Library Goal Items */
.atlas-library-goal-item {
    background: #f8fafc;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.atlas-library-goal-item:hover {
    background: #f1f5f9;
    border-color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.atlas-library-goal-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.atlas-library-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.atlas-library-goal-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.atlas-library-goal-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
    margin-top: 8px;
}

.atlas-library-goal-description {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    margin-top: 8px;
}

.atlas-library-goal-description:empty {
    display: none;
}

/* Add button in library goal items */
.atlas-library-goal-item .add-library-goal-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Library goal header - clickable */
.atlas-library-goal-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atlas-library-goal-header:hover {
    background-color: #f9fafb;
}

/* Library goal header left side */
.atlas-library-goal-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Chevron transition */
.atlas-library-goal-chevron {
    transition: transform 0.3s ease;
}

/* Library goal category badge */
.atlas-library-goal-category {
    display: inline-block;
    padding: 3px 10px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    width: fit-content;
}

/* Goal Library Pagination */
.atlas-goal-library-pagination {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.atlas-page-nav {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlas-page-nav:hover:not(:disabled) {
    color: #0f172a;
}

.atlas-page-nav:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.atlas-page-info {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 400;
    user-select: none;
}

/* Library goals grid wrapper */
.atlas-library-goals-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Goal Source Tabs */
.atlas-goal-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Loading Goals */
.atlas-loading-goals {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--atlas-text-secondary, #6b7280);
    gap: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.atlas-no-goals {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 24px;
    margin: 0;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    font-size: 0.9rem;
}

/* Goal modal tab styles - consistent with action modal */
.atlas-goal-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 12px;
}

.atlas-goal-tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--atlas-text-secondary, #6b7280);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.atlas-goal-tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.atlas-goal-tab-btn.active {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-color: #3b82f6;
}

.atlas-goal-tab-btn i {
    margin-right: 6px;
}

/* Goal Modal Tab Panels */
#add-goal-modal .atlas-goal-tab-panel {
    display: none !important;
    padding: 0;
}

#add-goal-modal .atlas-goal-tab-panel.active {
    display: block !important;
}

/* Clean Scheduling UI */
.atlas-schedule-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 8px;
}

.atlas-schedule-tab {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.atlas-schedule-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.atlas-schedule-tab.active {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-color: #3b82f6;
}

.atlas-schedule-panel {
    display: none;
    margin-top: 16px;
}

.atlas-schedule-panel.active {
    display: block;
}



/* Weekday Selector */
.atlas-weekday-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--atlas-border, #e5e7eb);
}

.atlas-day-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 42px;
}

.atlas-day-btn input[type="checkbox"] {
    display: none;
}

.atlas-day-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.atlas-day-btn input[type="checkbox"]:checked + span {
    color: white;
}

.atlas-day-btn:has(input:checked) {
    background: var(--atlas-primary, #3b82f6);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Monthly Selector */
.atlas-monthly-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atlas-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.atlas-radio-option:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-radio-option input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.atlas-radio-option input[type="radio"]:checked ~ * {
    color: #3b82f6;
    font-weight: 600;
}

.atlas-radio-option:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.atlas-day-input,
.atlas-date-input {
    width: auto;
    min-width: 60px;
    margin: 0 4px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.atlas-day-input {
    width: 60px;
    text-align: center;
}


/* End Options */
.atlas-end-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Recurrence Options */
.atlas-recurrence-options {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.atlas-recurrence-options label:first-child {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
}

/* Help Text */
.atlas-help-text {
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

/* Section Labels */
.atlas-schedule-panel .atlas-form-group > label:first-child {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Improve select dropdowns in recurring section */
.atlas-schedule-panel select.atlas-form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atlas-schedule-panel select.atlas-form-control:hover {
    border-color: #3b82f6;
}

.atlas-schedule-panel select.atlas-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Ensure custom goal tab content is visible when active */
#add-goal-modal #goal-custom-tab.active {
    display: block !important;
}

/* ===== TODAY'S PANE STYLES ===== */

/* Today's Summary Bar */
.atlas-today-summary {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.atlas-summary-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.atlas-stat-item {
    text-align: center;
    flex: 1;
}

.atlas-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
    color: #2c3e50;
}

.atlas-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #34495e;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Today's Actions Container */
.atlas-today-actions-container {
    margin-top: 20px;
}

.atlas-today-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Today's Action Cards */
.atlas-today-action-card {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: visible;
}

.atlas-today-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 12px 12px 0 0;
}

.atlas-today-action-card.overdue::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.atlas-today-action-card.completed {
    opacity: 0.8;
    background: #f0fdf4;
}

.atlas-today-action-card.completed::before {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

/* Remove colored strip from My Plan tab actions */
#my-plan .atlas-today-action-card::before {
    display: none !important;
}

/* Completed Actions Section */
.atlas-completed-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.atlas-completed-header {
    color: #16a34a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-completed-header i {
    font-size: 1.1rem;
}

/* Today's Action Header */
.atlas-today-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.atlas-today-action-title {
    flex: 1;
    min-width: 0;
}

.atlas-today-action-title-text {
    margin: 2px 0 0 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.atlas-today-action-goal {
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    margin-top: 4px;
}

.atlas-today-action-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.atlas-today-action-completed {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Today's Action Content */
.atlas-today-action-content {
    margin-left: 0;
}

.atlas-today-action-description {
    margin: 0 0 8px 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.atlas-today-action-description:empty {
    display: none;
}

.atlas-today-action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.85rem;
}

.atlas-today-action-meta i {
    margin-right: 4px;
    color: #9ca3af;
}

.atlas-today-action-due.overdue {
    color: #ef4444;
    font-weight: 600;
}

.atlas-today-action-reminder {
    color: #f59e0b;
}

/* Empty and Error States for Today's Pane */
.atlas-today-empty-state,
.atlas-today-error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-today-empty-icon,
.atlas-today-error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-today-error-icon {
    color: #dc2626;
}

.atlas-today-empty-state h3,
.atlas-today-error-state h3 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.atlas-today-empty-state p,
.atlas-today-error-state p {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design for Today's Pane */
@media (max-width: 768px) {
    .atlas-summary-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .atlas-stat-item {
        flex: none;
    }
    
    .atlas-stat-value {
        font-size: 2rem;
    }
    
    .atlas-today-action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .atlas-today-action-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .atlas-today-action-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .atlas-today-summary {
        padding: 20px;
    }
    
    .atlas-stat-value {
        font-size: 1.8rem;
    }
    
    .atlas-today-action-card {
        padding: 14px;
    }
    
    .atlas-today-action-title-text {
        font-size: 1rem;
    }
}

/* ===== PROGRESS / GAMIFICATION TAB STYLES ===== */

/* Progress Header */
.atlas-progress-header {
    margin-bottom: 30px;
}

.atlas-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.atlas-progress-stat-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e1e5e9;
    color: #2c3e50;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.atlas-progress-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.atlas-progress-stat-card .atlas-stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.atlas-progress-stat-card .atlas-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atlas-progress-stat-card .atlas-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #2c3e50;
}

.atlas-progress-stat-card .atlas-stat-label {
    font-size: 0.9rem;
    color: #34495e;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Achievements Section */
.atlas-achievements-section {
    margin-bottom: 30px;
}

.atlas-achievements-section h4 {
    color: #1f2937;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-badges-container {
    margin-bottom: 24px;
}

.atlas-badges-container h5 {
    color: #4b5563;
    font-size: 1rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.atlas-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.atlas-badge-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.atlas-badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.atlas-badge-card.earned {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.atlas-badge-card.locked {
    border-color: #d1d5db;
    background: #f9fafb;
    opacity: 0.7;
}

.atlas-badge-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.atlas-badge-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.atlas-badge-date {
    font-size: 0.75rem;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-badge-requirement {
    font-size: 0.8rem;
    color: var(--atlas-text-secondary, #6b7280);
    font-style: italic;
}

.atlas-loading-badges,
.atlas-loading-activity {
    text-align: center;
    padding: 40px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-loading-badges i,
.atlas-loading-activity i {
    margin-right: 8px;
}

/* Statistics Section */
.atlas-stats-section {
    margin-bottom: 30px;
}

.atlas-stats-section h4 {
    color: #1f2937;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.atlas-stat-chart-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-stat-chart-card h5 {
    color: #1f2937;
    font-size: 1rem;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.atlas-chart-container {
    position: relative;
    height: 250px;
}

.atlas-chart-full-width {
    grid-column: 1 / -1;
}

.atlas-chart-full-width .atlas-chart-container {
    height: 300px;
}

/* Activity Log Section */
.atlas-activity-log-section {
    margin-bottom: 30px;
}

.atlas-activity-log-section h4 {
    color: #1f2937;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-activity-log {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.atlas-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

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

.atlas-activity-item:hover {
    background: #f9fafb;
}

.atlas-activity-icon {
    width: 40px;
    height: 40px;
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.atlas-activity-content {
    flex: 1;
}

.atlas-activity-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.atlas-activity-meta {
    font-size: 0.85rem;
    color: var(--atlas-text-secondary, #6b7280);
}

/* Empty States */
.atlas-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d1d5db;
}

.atlas-empty-state p {
    margin: 0;
    font-size: 1rem;
}

.atlas-empty-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.atlas-empty-actions .atlas-btn {
    min-width: 160px;
}

/* Error States */
.atlas-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

.atlas-error-state i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.atlas-error-state p {
    margin: 0;
    font-size: 1rem;
}

.atlas-error-state .atlas-empty-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.atlas-error-state .atlas-empty-actions .atlas-btn {
    min-width: 160px;
}

/* Responsive Styles for Progress Tab */
@media (max-width: 768px) {
    .atlas-progress-stats {
        grid-template-columns: 1fr;
    }
    
    .atlas-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .atlas-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .atlas-chart-container {
        height: 200px;
    }
    
    .atlas-chart-full-width .atlas-chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .atlas-progress-stat-card {
        padding: 16px;
    }
    
    .atlas-progress-stat-card .atlas-stat-icon {
        font-size: 2rem;
    }
    
    .atlas-progress-stat-card .atlas-stat-value {
        font-size: 1.5rem;
    }
    
    .atlas-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .atlas-badge-card {
        padding: 16px;
    }
    
    .atlas-badge-icon {
        font-size: 2rem;
    }
    
    .atlas-activity-item {
        padding: 12px;
    }
    
    .atlas-activity-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ===== EXPORT TAB STYLES ===== */

/* Export Options Container */
.atlas-export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Export Card */
.atlas-export-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-export-card:hover {
    border-color: var(--atlas-primary, #3b82f6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Export Icon */
.atlas-export-icon {
    font-size: 3rem;
    color: var(--atlas-primary, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atlas-export-icon i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--atlas-primary-light, #eff6ff);
    border-radius: 12px;
}

/* Export Content */
.atlas-export-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atlas-export-content h5 {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
}

.atlas-export-content p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.95rem;
    line-height: 1.5;
}

.atlas-export-btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Export Info Section */
.atlas-export-info {
    background: #f8fafc;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.atlas-export-info h5 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-export-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.atlas-export-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.atlas-export-info li:last-child {
    margin-bottom: 0;
}

.atlas-export-info li i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Export Button Loading State */
.atlas-export-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.atlas-export-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== REMINDERS TAB STYLES ===== */

/* Reminders Section */
.atlas-reminders-section {
    margin-bottom: 30px;
}

.atlas-reminders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.atlas-reminders-header h5 {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.atlas-reminders-header h5 i {
    color: #3b82f6;
}

/* Reminder Badge */
.atlas-reminder-badge {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.atlas-reminder-badge.zero {
    background: #9ca3af;
}

/* Reminders List */
.atlas-reminders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Reminder Card */
.atlas-reminder-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid #9ca3af;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.atlas-reminder-card.unread {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.atlas-reminder-card.read {
    opacity: 0.7;
}

/* Reminder Icon */
.atlas-reminder-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.atlas-reminder-card.read .atlas-reminder-icon {
    background: #9ca3af;
}

/* Reminder Content */
.atlas-reminder-content {
    flex: 1;
    min-width: 0;
}

.atlas-reminder-title {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.atlas-reminder-message {
    margin: 0 0 8px 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.atlas-reminder-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-reminder-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.atlas-reminder-time i {
    font-size: 0.8rem;
}

/* Reminder Actions */
.atlas-reminder-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.atlas-reminder-actions .atlas-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.atlas-reminder-actions .atlas-mark-read-btn {
    margin: 0;
}

/* Loading State */
.atlas-loading-reminders {
    text-align: center;
    padding: 40px 20px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 1rem;
}

.atlas-loading-reminders i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Empty State */
.atlas-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.atlas-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.atlas-empty-state p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Clear All Button */
.atlas-clear-all-reminders {
    transition: all 0.2s ease;
}

.atlas-clear-all-reminders:hover {
    background: #f3f4f6;
}

/* Reminder Mark Read Button */
.atlas-mark-read-btn {
    background: var(--atlas-primary, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.atlas-mark-read-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.atlas-reminder-card.read .atlas-mark-read-btn {
    display: none;
}

/* Highlight action animation */
.atlas-action-item.highlight-action {
    background: #fef3c7;
    border-color: #fbbf24;
    animation: pulseHighlight 0.5s ease-in-out 3;
}

@keyframes pulseHighlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive Design for Reminders Tab */
@media (max-width: 768px) {
    .atlas-reminders-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .atlas-reminder-card {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .atlas-reminder-icon {
        margin-bottom: 10px;
    }
    
    .atlas-reminder-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .atlas-reminder-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .atlas-reminder-actions .atlas-btn,
    .atlas-reminder-actions .atlas-mark-read-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .atlas-reminder-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .atlas-empty-state i {
        font-size: 3rem;
    }
}

/* Responsive Design for Export Tab */
@media (max-width: 768px) {
    .atlas-export-options {
        grid-template-columns: 1fr;
    }
    
    .atlas-export-card {
        flex-direction: column;
        text-align: center;
    }
    
    .atlas-export-icon {
        justify-content: center;
    }
    
    .atlas-export-content {
        align-items: center;
    }
    
    .atlas-export-btn {
        align-self: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .atlas-export-card {
        padding: 20px;
    }
    
    .atlas-export-icon {
        font-size: 2.5rem;
    }
    
    .atlas-export-icon i {
        width: 50px;
        height: 50px;
    }
    
    .atlas-export-info {
        padding: 20px;
    }
}

/* ===== PROGRESS / GAMIFICATION TAB - NEW STRUCTURE ===== */

/* Main Container */
.atlas-progress-gamification {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section Styling */
.atlas-pg-section {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Summary Stats Grid */
.atlas-pg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Stat Card */
.atlas-pg-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-pg-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Special styling for streak card */
.atlas-pg-streak-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-color: #f59e0b;
}

.atlas-pg-streak-card:hover {
    border-color: #d97706;
}

/* Stat Icon */
.atlas-pg-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.atlas-pg-icon-points {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.atlas-pg-icon-streak {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.atlas-pg-icon-goals {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.atlas-pg-icon-actions {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

/* Stat Content */
.atlas-pg-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atlas-pg-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.atlas-pg-stat-label {
    font-size: 0.875rem;
    color: var(--atlas-text-secondary, #6b7280);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atlas-pg-stat-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Progress Bar */
.atlas-pg-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.atlas-pg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.6s ease;
    border-radius: 4px;
}

/* Achievements Grid */
.atlas-pg-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Achievement Card */
.atlas-achievement-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.atlas-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.atlas-achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Earned Achievement */
.atlas-achievement-earned {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.atlas-achievement-earned::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.atlas-achievement-earned:hover {
    border-color: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

/* Locked Achievement */
.atlas-achievement-locked {
    border-color: #d1d5db;
    background: #f9fafb;
    opacity: 0.7;
}

.atlas-achievement-locked::before {
    background: #d1d5db;
}

.atlas-achievement-locked:hover {
    opacity: 0.85;
}

/* Achievement Icon */
.atlas-achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    background: #f3f4f6;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-achievement-earned .atlas-achievement-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.atlas-achievement-locked .atlas-achievement-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.atlas-achievement-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Achievement Content */
.atlas-achievement-content {
    flex: 1;
    min-width: 0;
}

.atlas-achievement-content h5 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.atlas-achievement-content p {
    margin: 0 0 8px 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.875rem;
    line-height: 1.5;
}

.atlas-achievement-date,
.atlas-achievement-requirements {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

.atlas-achievement-requirements {
    color: #f59e0b;
    font-weight: 500;
}

/* Achievement Status Badge */
.atlas-achievement-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atlas-achievement-earned .atlas-achievement-status {
    background: #10b981;
    color: #ffffff;
}

.atlas-achievement-locked .atlas-achievement-status {
    background: #d1d5db;
    color: var(--atlas-text-secondary, #6b7280);
}

/* Charts Container */
.atlas-pg-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Chart Wrapper */
.atlas-pg-chart-wrapper {
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-pg-chart-wrapper h5 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Chart Canvas */
.atlas-pg-chart-canvas {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atlas-pg-chart-canvas canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Reports Grid */
.atlas-pg-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Report Card */
.atlas-pg-report-card {
    background: var(--atlas-card-bg, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atlas-pg-report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Report Icon */
.atlas-pg-report-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

/* Report Content */
.atlas-pg-report-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atlas-pg-report-content h5 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.atlas-pg-report-content p {
    margin: 0;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.875rem;
    line-height: 1.5;
}

.atlas-pg-report-content button {
    align-self: flex-start;
    margin-top: 8px;
}

/* Loading States */
.atlas-loading-spinner,
.atlas-loading-achievements {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--atlas-text-secondary, #6b7280);
    gap: 8px;
    font-size: 0.95rem;
}

.atlas-loading-spinner i {
    animation: spin 1s linear infinite;
}

/* Empty States */
.atlas-no-achievements {
    text-align: center;
    padding: 60px 20px;
    color: var(--atlas-text-secondary, #6b7280);
}

.atlas-no-achievements i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d1d5db;
    display: block;
}

.atlas-no-achievements p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Notification Styles */
.atlas-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--atlas-card-bg, #ffffff);
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInBottom 0.3s ease-out;
}

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

.atlas-notification-success {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.atlas-notification-error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.atlas-notification i {
    font-size: 1.25rem;
}

.atlas-notification-success i {
    color: #10b981;
}

.atlas-notification-error i {
    color: #ef4444;
}

/* Responsive Design for Progress/Gamification Tab */
@media (max-width: 768px) {
    .atlas-pg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .atlas-pg-achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .atlas-pg-charts-container {
        grid-template-columns: 1fr;
    }
    
    .atlas-pg-reports-grid {
        grid-template-columns: 1fr;
    }
    
    .atlas-pg-chart-canvas {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .atlas-pg-section {
        padding: 16px;
    }
    
    .atlas-pg-stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .atlas-pg-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .atlas-pg-stat-value {
        font-size: 1.75rem;
    }
    
    .atlas-achievement-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    
    .atlas-achievement-status {
        position: static;
        margin-top: 12px;
    }
    
    .atlas-pg-report-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .atlas-pg-report-content button {
        align-self: center;
        width: 100%;
    }
    
    .atlas-pg-chart-canvas {
        height: 200px;
    }
    
    .atlas-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Increased padding for long-named tabs and badge spacing */
.atlas-tab-btn[data-tab="assessment-results"] {
    padding-left: 40px;
    padding-right: 40px;
}

.atlas-tab-btn[data-tab="todays-actions"],
.atlas-tab-btn[data-tab="weekly-actions"] {
    padding-left: 36px;
    padding-right: 40px;
}

/* Export Buttons Loading State */
.atlas-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.atlas-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Badge Styling - Compact Version */
/* Override assigned person badge */
.atlas-assigned-person-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: #8b5cf6 !important;
    border: 1px solid #8b5cf6 !important;
    white-space: nowrap !important;
}

.atlas-assigned-person-inline i,
.atlas-assigned-person-inline i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

/* Due Date Badge */
.atlas-badge-due-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
    white-space: nowrap !important;
}

.atlas-badge-due-date i,
.atlas-badge-due-date i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

.atlas-badge-due-date.upcoming {
    background: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
}

.atlas-badge-due-date.today {
    background: #f59e0b !important;
    border: 1px solid #f59e0b !important;
}

.atlas-badge-due-date.overdue {
    background: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}

/* Assigned Badge */
.atlas-badge-assigned {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: #8b5cf6 !important;
    border: 1px solid #8b5cf6 !important;
    white-space: nowrap !important;
}

.atlas-badge-assigned i,
.atlas-badge-assigned i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

/* Reminder Badge */
.atlas-badge-reminder {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: #06b6d4 !important;
    border: 1px solid #06b6d4 !important;
    white-space: nowrap !important;
}

.atlas-badge-reminder i,
.atlas-badge-reminder i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

/* Reminder Disabled Badge */
.atlas-badge-reminder-disabled {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    white-space: nowrap !important;
}

.atlas-badge-reminder-disabled i,
.atlas-badge-reminder-disabled i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

/* Priority Badge */
.atlas-badge-priority {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    white-space: nowrap !important;
}

.atlas-badge-priority i,
.atlas-badge-priority i::before {
    font-size: 0.8rem !important;
    color: white !important;
}

.atlas-badge-priority.high {
    background: #dc2626 !important;
    border: 1px solid #dc2626 !important;
}

.atlas-badge-priority.medium {
    background: #f59e0b !important;
    border: 1px solid #f59e0b !important;
}

.atlas-badge-priority.low {
    background: #10b981 !important;
    border: 1px solid #10b981 !important;
}

/* Badge Container */
.atlas-badge-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

/* ===== MY TEAM TAB STYLES ===== */

/* Team Section */
.atlas-team-section {
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.atlas-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.atlas-team-header h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-team-header h5 i {
    color: #3b82f6;
}

/* Team Members Table */
.atlas-team-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.atlas-team-table thead {
    background: #f9fafb;
}

.atlas-team-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.atlas-team-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.95rem;
}

.atlas-team-table tbody tr:hover {
    background: #f9fafb;
}

.atlas-team-table tbody tr:last-child td {
    border-bottom: none;
}

/* Icon buttons in table */
.atlas-btn-icon {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--atlas-text-secondary, #6b7280);
    transition: all 0.2s ease;
    border-radius: 4px;
    font-size: 0.875rem;
}

.atlas-btn-icon:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.atlas-btn-icon.delete-team-member:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Default badge and button harmonization in Team table */
.atlas-badge-default {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white !important;
    background: #1f2937; /* dark gray-800 */
    border: 1px solid #1f2937;
    white-space: nowrap;
}
.atlas-badge-default i,
.atlas-badge-default i::before {
    color: white !important;
    font-size: 0.8rem;
}
.atlas-team-table .set-default-team-member {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
    border-color: #9ca3af; /* gray-400 */
    color: #6b7280; /* gray-500 */
}
.atlas-team-table .set-default-team-member:hover {
    background: #f3f4f6; /* gray-100 */
    border-color: #6b7280; /* gray-500 */
    color: #374151; /* gray-700 */
}

/* Bulk Operations Section */
.atlas-bulk-ops-section {
    background: white;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.atlas-bulk-ops-section h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-bulk-ops-section h5 i {
    color: #3b82f6;
}

/* Bulk Cards Grid */
.atlas-bulk-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Bulk Card */
.atlas-bulk-card {
    background: #f9fafb;
    border: 1px solid var(--atlas-border, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
}

.atlas-bulk-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-bulk-card h6 i {
    color: #3b82f6;
}

.atlas-bulk-card p {
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.875rem;
    margin: 0 0 16px 0;
}

/* Bulk Form */
.atlas-bulk-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atlas-bulk-form .atlas-form-control {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.atlas-bulk-form select.atlas-form-control {
    min-width: 0;
    width: 100%;
}

.atlas-bulk-form .atlas-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.atlas-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
}

.atlas-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Empty/Error States */
.atlas-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 0.95rem;
}

.atlas-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    font-size: 0.95rem;
}

.atlas-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--atlas-text-secondary, #6b7280);
    font-size: 0.95rem;
}

.atlas-loading i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .atlas-team-table {
        font-size: 0.875rem;
    }
    
    .atlas-team-table th,
    .atlas-team-table td {
        padding: 10px 12px;
    }
    
    .atlas-bulk-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .atlas-bulk-form {
        gap: 10px;
    }
}
