/* Task Planner Pro - Frontend Styles */

.tpp-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.tpp-frontend-header {
    text-align: center;
    margin-bottom: 30px;
}

.tpp-frontend-header h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #333;
}

.tpp-subtitle {
    color: #666;
    font-size: 18px;
    margin: 0;
}

/* Login Notice */
.tpp-login-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

/* Stats Overview */
.tpp-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tpp-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.tpp-stat-box:hover {
    transform: translateY(-5px);
}

.tpp-stat-value {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.tpp-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs */
.tpp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tpp-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tpp-tab-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.tpp-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Tab Content */
.tpp-tab-content {
    margin-bottom: 40px;
}

.tpp-tab-pane {
    display: none;
}

.tpp-tab-pane.active {
    display: block;
}

.tpp-pane-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tpp-pane-header h2 {
    margin: 0 0 8px 0;
    color: #333;
}

.tpp-pane-header p {
    margin: 0;
    color: #666;
}

/* Tasks List */
.tpp-tasks-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.tpp-task-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background 0.2s;
}

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

.tpp-task-item:hover {
    background: #f8f9fa;
}

.tpp-task-item.completed {
    opacity: 0.7;
}

.tpp-task-checkbox {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #667eea;
}

.tpp-task-content {
    flex-grow: 1;
}

.tpp-task-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.tpp-task-item.completed .tpp-task-name {
    text-decoration: line-through;
    color: #999;
}

.tpp-task-description {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.tpp-task-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tpp-badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Empty State */
.tpp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.tpp-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* Loading */
.tpp-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Performance Section */
.tpp-performance-section {
    margin: 40px 0;
}

.tpp-performance-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.tpp-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tpp-performance-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tpp-performance-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.tpp-progress-circle {
    position: relative;
    margin: 20px auto;
    width: 120px;
    height: 120px;
}

.tpp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Recent Activity */
.tpp-recent-activity {
    margin: 40px 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
}

.tpp-recent-activity h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.tpp-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpp-activity-list li {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tpp-activity-list li:last-child {
    border-bottom: none;
}

.tpp-activity-icon {
    width: 30px;
    height: 30px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.tpp-activity-text {
    flex-grow: 1;
    color: #333;
}

.tpp-activity-date {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tpp-frontend-header h1 {
        font-size: 28px;
    }
    
    .tpp-stats-overview {
        grid-template-columns: 1fr;
    }
    
    .tpp-tabs {
        flex-direction: column;
    }
    
    .tpp-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tpp-tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .tpp-task-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .tpp-performance-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpp-task-item {
    animation: fadeIn 0.3s ease;
}
