:root {
    --dwp-primary: #4f46e5;
    --dwp-primary-dark: #4338ca;
    --dwp-secondary: #10b981;
    --dwp-danger: #ef4444;
    --dwp-warning: #f59e0b;
    --dwp-bg: #ffffff;
    --dwp-bg-secondary: #f3f4f6;
    --dwp-text: #1f2937;
    --dwp-text-light: #6b7280;
    --dwp-border: #e5e7eb;
    --dwp-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --dwp-bg: #1f2937;
    --dwp-bg-secondary: #111827;
    --dwp-text: #f9fafb;
    --dwp-text-light: #d1d5db;
    --dwp-border: #374151;
    --dwp-shadow: rgba(0, 0, 0, 0.3);
}

.dwp-planner-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dwp-bg);
    color: var(--dwp-text);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--dwp-shadow);
    max-width: 1400px;
    margin: 0 auto;
}

.dwp-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--dwp-primary) 0%, var(--dwp-primary-dark) 100%);
    border-radius: 12px;
    color: white;
}

.dwp-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dwp-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.dwp-main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.dwp-tasks-section {
    background: var(--dwp-bg);
}

.dwp-sidebar {
    background: var(--dwp-bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

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

.dwp-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--dwp-bg-secondary);
    padding: 0.25rem;
    border-radius: 8px;
}

.dwp-view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--dwp-text);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.dwp-view-btn.active {
    background: var(--dwp-primary);
    color: white;
}

.dwp-add-task-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dwp-primary);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--dwp-shadow);
    transition: transform 0.2s;
    z-index: 1000;
}

.dwp-add-task-btn:hover {
    transform: scale(1.1);
}

.dwp-task-card {
    background: var(--dwp-bg);
    border: 1px solid var(--dwp-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.dwp-task-card:hover {
    box-shadow: 0 4px 12px var(--dwp-shadow);
    transform: translateY(-2px);
}

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

.dwp-task-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dwp-text);
    margin: 0;
}

.dwp-task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dwp-task-priority.high {
    background: #fee2e2;
    color: #991b1b;
}

.dwp-task-priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.dwp-task-priority.low {
    background: #dbeafe;
    color: #1e40af;
}

.dwp-task-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--dwp-text-light);
    margin-bottom: 0.75rem;
}

.dwp-task-category {
    padding: 0.25rem 0.75rem;
    background: var(--dwp-bg-secondary);
    border-radius: 6px;
}

.dwp-task-description {
    color: var(--dwp-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

.dwp-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dwp-btn-primary {
    background: var(--dwp-primary);
    color: white;
}

.dwp-btn-primary:hover {
    background: var(--dwp-primary-dark);
}

.dwp-btn-success {
    background: var(--dwp-secondary);
    color: white;
}

.dwp-btn-danger {
    background: var(--dwp-danger);
    color: white;
}

.dwp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.dwp-modal-content {
    background: var(--dwp-bg);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.dwp-form-group {
    margin-bottom: 1.5rem;
}

.dwp-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dwp-text);
}

.dwp-form-input,
.dwp-form-textarea,
.dwp-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--dwp-border);
    border-radius: 6px;
    background: var(--dwp-bg);
    color: var(--dwp-text);
    font-size: 1rem;
}

.dwp-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.dwp-timeline {
    position: relative;
    padding: 1rem 0;
}

.dwp-timeline-hour {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dwp-border);
}

.dwp-timeline-time {
    font-size: 0.875rem;
    color: var(--dwp-text-light);
    font-weight: 500;
}

.dwp-timeline-tasks {
    position: relative;
}

.dwp-analytics-card {
    background: var(--dwp-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--dwp-border);
}

.dwp-analytics-title {
    font-size: 0.875rem;
    color: var(--dwp-text-light);
    margin-bottom: 0.5rem;
}

.dwp-analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dwp-primary);
}

.dwp-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--dwp-bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dwp-progress-fill {
    height: 100%;
    background: var(--dwp-secondary);
    transition: width 0.3s;
}

.dwp-theme-toggle {
    padding: 0.5rem;
    background: var(--dwp-bg-secondary);
    border: 1px solid var(--dwp-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--dwp-text);
}

.dwp-loading {
    text-align: center;
    padding: 3rem;
    color: var(--dwp-text-light);
}

@media (max-width: 768px) {
    .dwp-main-content {
        grid-template-columns: 1fr;
    }
    
    .dwp-hero h1 {
        font-size: 1.875rem;
    }
    
    .dwp-planner-container {
        padding: 1rem;
    }
}
