/* Modern Glassmorphism Design with Grid Background */

:root {
    /* Category Colors */
    --scripting: #9B59B6;
    --ideation: #F1C40F;
    --development: #3498DB;
    --security: #E74C3C;
    --analytics: #27AE60;
    --content: #E67E22;
    
    /* Dark Theme with transparency */
    --bg-primary: rgba(10, 10, 15, 0.85);
    --bg-secondary: rgba(30, 30, 40, 0.7);
    --bg-tertiary: rgba(45, 45, 60, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.4);
    --grid-color: rgba(52, 152, 219, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glassmorphism Effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

/* Header */
header {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--development), var(--analytics));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--development), var(--analytics));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--development), var(--analytics));
    color: white;
    border-color: transparent;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

select {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

.refresh-btn, .btn-secondary {
    background: var(--development);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.refresh-btn:hover, .btn-secondary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

/* Board */
main.board {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.column {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: box-shadow 0.3s;
}

.column:hover {
    box-shadow: 0 8px 32px var(--shadow);
}

.column-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header h2 {
    font-size: 1.25rem;
}

.task-count {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: bold;
}

.task-list {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Task Cards */
.task-card {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border);
    cursor: move;
    transition: all 0.3s;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--development);
}

.task-card.dragging {
    opacity: 0.5;
}

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

.task-title {
    font-weight: bold;
    font-size: 1rem;
    flex: 1;
}

.task-priority {
    font-size: 1.25rem;
}

.task-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.task-category.scripting { background: var(--scripting); }
.task-category.ideation { background: var(--ideation); color: #1a1a1a; }
.task-category.development { background: var(--development); }
.task-category.security { background: var(--security); }
.task-category.analytics { background: var(--analytics); }
.task-category.content { background: var(--content); }

.task-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.task-progress {
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--development), var(--analytics));
    transition: width 0.3s;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--development);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.task-link:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

/* Recurring Tasks */
.recurring-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.recurring-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--analytics), var(--content));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recurring-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.recurring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recurring-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.recurring-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.recurring-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.recurring-card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.recurring-card-emoji {
    font-size: 2rem;
}

.recurring-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.recurring-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.recurring-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--analytics);
}

.recurring-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Activity Monitor */
.activity-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.activity-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--development), var(--security));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-controls {
    display: flex;
    gap: 0.5rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.activity-stat {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
}

.activity-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--development);
}

.activity-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.activity-feed {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

.activity-item:hover {
    transform: translateX(4px);
    background: rgba(52, 152, 219, 0.1);
}

.activity-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Drag & Drop States */
.task-list.drag-over {
    background: rgba(52, 152, 219, 0.1);
    border: 2px dashed var(--development);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar Styling */
.task-list::-webkit-scrollbar,
.activity-feed::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-track,
.activity-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.task-list::-webkit-scrollbar-thumb,
.activity-feed::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.task-list::-webkit-scrollbar-thumb:hover,
.activity-feed::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    main.board {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
