/* Dashboard Specific Styles */

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Daily Report Section - Most Prominent */
.daily-report-section {
    margin-bottom: 30px;
}

.report-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.report-card h2 {
    margin-top: 0;
    font-size: 1.8em;
}

.report-date {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.report-content {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 150px;
}

.next-todo-highlight {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
}

.next-todo-highlight h3 {
    margin-top: 0;
    font-size: 1.2em;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Card Styles */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
}

/* Goals Section */
.goals-hierarchy {
    margin-bottom: 20px;
}

.goal-level {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.goal-level h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #666;
}

.goals-list {
    min-height: 40px;
}

/* Areas Section */
.area-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.balance-indicator {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.balance-chart {
    height: 60px;
    background: linear-gradient(to right, #667eea 60%, #764ba2 60%);
    border-radius: 4px;
    position: relative;
    margin-top: 10px;
}

/* Requests Section */
.requests-tabs, .entities-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Analytics Section */
.analytics-content {
    display: grid;
    gap: 20px;
}

.productivity-chart, .time-distribution {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

canvas {
    width: 100%;
    height: 150px;
}

.ai-insights {
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.action-btn .icon {
    font-size: 1.2em;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #667eea;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}/* Additional Dashboard Styles */

/* Report Summary */
.report-summary h3 {
    margin-top: 0;
    color: white;
}

.report-summary p {
    margin: 10px 0;
    line-height: 1.6;
}

.ai-insight {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-style: italic;
}

/* Todo Item */
.todo-item {
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.todo-item.priority-high {
    border-left: 4px solid #ff6b6b;
}

.todo-title {
    font-size: 1.1em;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.todo-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Goal Items */
.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.goal-progress {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 500;
}

/* Area Items */
.area-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.area-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.area-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

/* Request Items */
.request-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.request-person {
    font-weight: 500;
    color: #333;
}

.request-time {
    font-size: 0.85em;
    color: #999;
}

.request-todo {
    color: #666;
}

.request-status {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}

.request-status.pending {
    background: #fff3cd;
    color: #856404;
}

.request-status.completed {
    background: #d4edda;
    color: #155724;
}

/* Entity Items */
.entity-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.entity-name {
    font-weight: 500;
    color: #333;
}

.entity-details {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0;
}

.entity-todos {
    font-size: 0.85em;
    color: #999;
}

/* Insight Items */
.insight-item {
    padding: 8px 0;
    color: #0066cc;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 40px;
}

.login-prompt p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

.voice-modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: #f44336;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.recording-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-stop-recording {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-stop-recording:hover {
    background: #d32f2f;
}