﻿/* View Dialogs - Shared Styles */

/* Dialog Container */
.dialog-content-stack {
    padding: 0;
}

/* Progress Cards - Goal Dialog (Purple) */
.view-goal-dialog .progress-card {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

/* Progress Card - Habit Dialog (Indigo) */
.view-habit-dialog .progress-card {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/* Status Card - Todo Dialog Active (Orange) */
.view-todo-dialog .status-card-active {
    background: linear-gradient(135deg, #FB923C 0%, #FDBA74 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.25);
}

/* Status Card - Todo Dialog Completed (Green) */
.view-todo-dialog .status-card-completed {
    background: linear-gradient(135deg, #34D399 0%, #6EE7B7 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

/* Progress/Status Card Text and Icons */
.progress-card .mud-text,
.status-card .mud-text {
    color: white !important;
}

.progress-card .mud-icon-root,
.status-card .mud-icon-root {
    color: white !important;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-card-priority:hover,
.stat-card-streak:hover {
    transform: translateY(-4px) scale(1.02);
}

.stat-card .mud-progress-linear {
    background-color: rgba(255, 255, 255, 0.3);
}

.stat-card .mud-progress-linear .mud-progress-linear-bar {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Content Cards */
.content-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    background: white;
    transition: all 0.2s ease;
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #D1D5DB;
}

/* Insights Card - Habit Dialog (Yellow) */
.view-habit-dialog .insights-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FCD34D;
}

.view-habit-dialog .insights-card:hover {
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3);
}

/* Insights Card - Todo Dialog (Blue) */
.view-todo-dialog .insights-card {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border: 1px solid #93C5FD;
}

.view-todo-dialog .insights-card:hover {
    box-shadow: 0 4px 12px rgba(147, 197, 253, 0.3);
}

/* Completion Card */
.completion-card {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 1px solid #6EE7B7;
}

.completion-card:hover {
    box-shadow: 0 4px 12px rgba(110, 231, 183, 0.3);
}

/* Insight Stats */
.insight-stat {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.insight-stat:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.insight-urgent {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border: 1px solid #FCA5A5;
}

/* Detail Row */
.detail-row {
    padding: 8px 0;
}

.detail-row:hover {
    background-color: #F9FAFB;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.detail-label {
    color: #6B7280;
    font-weight: 500;
}

/* Task Items */
.task-item {
    padding: 12px 16px;
    border-radius: 8px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.task-completed {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

/* Habit Items */
.habit-item {
    padding: 16px;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.habit-item:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    transform: translateX(4px);
}

/* Label Chips */
.label-chip {
    transition: all 0.2s ease;
}

.label-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Day Chips */
.day-chip {
    font-weight: 600;
    transition: all 0.2s ease;
}

.day-chip-active {
    transform: scale(1);
}

.day-chip-active:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.day-chip-inactive {
    opacity: 0.5;
}

/* Empty State */
.empty-state {
    padding: 48px 24px;
}

.empty-state .mud-icon-root {
    font-size: 4rem;
    opacity: 0.5;
}

/* Alert Customization */
.mud-alert.mud-alert-filled-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.mud-alert.mud-alert-filled-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.mud-alert.mud-alert-filled-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.mud-alert.mud-alert-filled-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.mud-alert.mud-alert-text-success {
    background-color: #F0FDF4;
    border-left: 4px solid #10B981;
}

.mud-alert.mud-alert-text-info {
    background-color: #EFF6FF;
    border-left: 4px solid #3B82F6;
}

.mud-alert.mud-alert-text-warning {
    background-color: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

/* Progress Bars in Cards */
.progress-card .mud-progress-linear.mud-size-large {
    height: 12px;
}

.progress-card .mud-progress-linear.mud-size-large .mud-progress-linear-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress Linear Custom Styling */
.mud-progress-linear.mud-success-text .mud-progress-linear-bar {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.mud-progress-linear.mud-info-text .mud-progress-linear-bar {
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
}

.mud-progress-linear.mud-primary-text .mud-progress-linear-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.mud-progress-linear.mud-warning-text .mud-progress-linear-bar {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

.mud-progress-linear.mud-error-text .mud-progress-linear-bar {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

/* Icon Button Hover Effects */
.mud-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Scrollbar Styling */
.mud-dialog-content::-webkit-scrollbar {
    width: 8px;
}

.mud-dialog-content::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

.mud-dialog-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.mud-dialog-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* View All Button - Icon only, text on hover */
.view-all-btn {
    min-width: 36px !important;
    padding: 6px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.view-all-btn .view-all-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-right: 0;
}

.view-all-btn:hover {
    padding: 6px 12px !important;
}

.view-all-btn:hover .view-all-text {
    max-width: 100px;
    opacity: 1;
    margin-right: 4px;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .view-goal-dialog,
    .view-habit-dialog,
    .view-todo-dialog {
        max-width: 100%;
    }

    .view-goal-dialog .mud-dialog-content,
    .view-habit-dialog .mud-dialog-content,
    .view-todo-dialog .mud-dialog-content {
        max-height: 70vh;
    }

    .progress-card,
    .status-card-active,
    .status-card-completed {
        padding: 20px;
    }

    .content-card {
        padding: 20px;
    }

    .stat-card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .progress-card,
    .status-card-active,
    .status-card-completed {
        padding: 16px;
    }

    .content-card {
        padding: 16px;
    }

    .stat-card {
        padding: 12px;
    }

    .insight-stat {
        padding: 10px;
    }

    .task-item,
    .habit-item {
        padding: 12px;
    }

    .empty-state {
        padding: 32px 16px;
    }
}
