:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #0f172a;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-secondary: #f1f5f9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.main-content {
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

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

.page-header h1 {
    font-size: 2rem;
    color: var(--dark);
}

.project-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.project-url {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-url a {
    color: var(--primary);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

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

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

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg);
    border-radius: 1rem;
    border: 2px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--dark);
    font-size: 1.25rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    background: var(--success);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.project-meta {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.meta-item .label {
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.stats-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-pending {
    border-left: 4px solid var(--warning);
}

.stat-progress {
    border-left: 4px solid var(--info);
}

.stat-completed {
    border-left: 4px solid var(--success);
}

.section {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-secondary);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--light);
}

.link-truncate {
    max-width: 300px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary);
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-manual {
    background: var(--bg-secondary);
    color: var(--text);
}

.badge-priority-low {
    background: #e0e7ff;
    color: #3730a3;
}

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

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

.badge-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-status-in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.badge-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.form-container {
    background: var(--bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    max-width: 600px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.info-box {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.info-box ul {
    margin-left: 1.5rem;
    color: var(--text-muted);
}

.info-box ul li {
    margin: 0.5rem 0;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.task-group {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.task-group-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.task-card {
    background: var(--light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.task-card:last-child {
    margin-bottom: 0;
}

.task-header {
    margin-bottom: 1rem;
}

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

.task-title-row h4 {
    flex: 1;
    color: var(--dark);
    font-size: 1.1rem;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-url {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-description {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.task-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.task-detail {
    background: var(--bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
}

.task-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.task-detail-header h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.task-url-box {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.task-url-box a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.task-section {
    margin-bottom: 2rem;
}

.task-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.task-description-full {
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
}

.ai-analysis {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.ai-analysis pre {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 0.5rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--dark);
}

.task-actions-bar {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 4rem;
}

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-box {
    background: var(--bg);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-muted);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-bottom {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 0.5rem;
}

.pagination-info {
    color: var(--text);
    font-size: 0.95rem;
}

.pagination-info strong {
    color: var(--primary);
}

.page-url-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.page-url-link:hover {
    text-decoration: underline;
}

.page-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.mini-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.cell-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cell-text {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.data-table td {
    vertical-align: top;
}

.sitemap-detail, .robots-detail {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.sitemap-detail h4, .robots-detail h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1rem;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--dark);
    font-weight: 500;
}

.sitemap-urls {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.sitemap-urls a {
    display: block;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.sitemap-urls a:hover {
    background: var(--light);
}

.sitemap-urls a:last-child {
    border-bottom: none;
}

.robots-content {
    background: var(--bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.crawl-stats {
    background: var(--bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.stat-item-large {
    text-align: center;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-value-large {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.crawled-count {
    color: var(--primary);
}

.separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.total-count {
    color: var(--text-muted);
}

.percentage-value {
    font-size: 3.5rem;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 6px;
    transition: width 0.3s ease;
}

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

.crawl-option-card {
    background: var(--bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.crawl-option-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.crawl-option-featured {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.crawl-option-featured:hover {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.crawl-option-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.5rem;
}

.crawl-option-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.crawl-form {
    margin-top: 1.5rem;
}

/* Notion-style Task Management */
.notion-filters {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.stat-badge {
    padding: 0.4rem 0.9rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.stat-badge-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.stat-badge-progress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.stat-badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Task Groups */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.task-group {
    background: transparent;
}

.task-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Notion-style Task Cards */
.task-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.task-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.task-card.task-completed {
    opacity: 0.7;
    background: var(--bg-secondary);
}

.task-header {
    margin-bottom: 1rem;
}

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

.task-title-row h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-priority-medium {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.badge-priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.task-url {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.5rem;
    word-break: break-all;
}

.task-url:hover {
    text-decoration: underline;
}

.task-description {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.task-description .read-more {
    color: var(--primary);
    font-weight: 500;
}

.task-description .read-more a {
    color: var(--primary);
    text-decoration: none;
}

.task-description .read-more a:hover {
    text-decoration: underline;
}

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

.task-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg,
.nav-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.dashboard-header h1 i {
    display: inline-block;
    vertical-align: middle;
}

.dashboard-header h1 svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.section-header h2 i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.section-header h2 svg {
    width: 20px;
    height: 20px;
}

.link-view-all i {
    display: inline-block;
    vertical-align: middle;
}

.link-view-all svg {
    width: 16px;
    height: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 3px solid white;
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
}

.logout-btn:hover {
    opacity: 1;
}

/* Main Content */
.dashboard-main {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
}

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

.header-left h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
}

.btn-icon:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Dashboard Stats Grid */
.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-dashboard {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.stat-card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card-dashboard .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-card-dashboard .stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-orange .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-dashboard .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card-dashboard .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

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

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.link-view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.link-view-all:hover {
    color: #2563eb;
}

/* Projects List Dashboard */
.projects-list-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item-dashboard {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.project-item-dashboard:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.project-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.project-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2;
}

.project-item-content {
    flex: 1;
    min-width: 0;
}

.project-item-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.project-item-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tasks List Dashboard */
.tasks-list-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item-dashboard {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.task-item-dashboard:hover {
    background: var(--bg-secondary);
}

.task-item-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-item-content {
    flex: 1;
    min-width: 0;
}

.task-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.task-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

.badge-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.badge-in_progress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: var(--primary);
    color: white;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
}

.btn-icon-sm:hover svg {
    stroke: white;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-primary i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ========================================
   TURBO LAYOUT - Asana-like Design
   ======================================== */

.turbo-layout {
    display: flex;
    min-height: 100vh;
    background: #fafafa;
}

.turbo-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Top Bar */
.turbo-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-menu,
.btn-project-menu {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-menu:hover,
.btn-project-menu:hover {
    background: #f3f4f6;
}

.btn-project-menu {
    background: #6366f1;
}

.btn-project-menu svg {
    stroke: white;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.btn-icon-topbar {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon-topbar:hover {
    background: #f3f4f6;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-avatars {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.btn-secondary-topbar {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-topbar:hover {
    background: #f9fafb;
}

.btn-search {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: #f9fafb;
}

.btn-add-topbar {
    width: 36px;
    height: 36px;
    border: none;
    background: #ff6b6b;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-topbar svg {
    stroke: white;
}

.btn-add-topbar:hover {
    background: #ff5252;
}

/* Tabs Navigation */
.turbo-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.tab-item {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.tab-item:hover {
    color: #111827;
}

.tab-item.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.btn-add-chart {
    margin-left: auto;
    padding: 0.5rem 1rem;
    border: none;
    background: #6366f1;
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-chart:hover {
    background: #4f46e5;
}

/* Content Area */
.turbo-content {
    flex: 1;
    overflow-y: auto;
    background: #fafafa;
}

/* Dashboard Widgets */
.dashboard-widgets {
    padding: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

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

.widget-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.btn-filter {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: #f9fafb;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.chart-container {
    margin-top: 1.5rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 1rem;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.bar {
    width: 100%;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.bar-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.donut-chart {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 0.25rem;
}

.legend-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.horizontal-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.h-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.h-bar {
    height: 24px;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.area-chart {
    position: relative;
}

.chart-legend-top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.legend-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

/* Board View */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.board-info {
    font-size: 0.875rem;
    color: #6b7280;
}

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

.btn-board-action {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-board-action:hover {
    background: #f9fafb;
}

.board-columns {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    overflow-x: auto;
}

.board-column {
    min-width: 320px;
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
}

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

.column-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.column-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon-small:hover {
    background: #e5e7eb;
}

.column-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-card-board {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.task-card-board:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.task-card-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.task-card-header h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.task-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.task-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-orange {
    background: #fed7aa;
    color: #9a3412;
}

.tag-red {
    background: #fecaca;
    color: #991b1b;
}

.tag-yellow {
    background: #fef08a;
    color: #854d0e;
}

.tag-cyan {
    background: #a5f3fc;
    color: #155e75;
}

.tag-blue {
    background: #bfdbfe;
    color: #1e40af;
}

.tag-green {
    background: #bbf7d0;
    color: #166534;
}

.task-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

.task-meta svg {
    width: 14px;
    height: 14px;
}

.btn-add-task {
    width: 100%;
    padding: 0.75rem;
    border: 1px dashed #d1d5db;
    background: transparent;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-task:hover {
    background: white;
    border-color: #9ca3af;
}

/* List View */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

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

.btn-add-task-list {
    margin: 1.5rem 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-task-list:hover {
    background: #f9fafb;
}

.list-view {
    padding: 0 2rem 2rem;
}

.list-section {
    margin-bottom: 2rem;
}

.section-title-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-title-list h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.list-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.list-table-header {
    display: grid;
    grid-template-columns: 40px 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.list-table-row {
    display: grid;
    grid-template-columns: 40px 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background 0.2s;
}

.list-table-row:last-child {
    border-bottom: none;
}

.list-table-row:hover {
    background: #f9fafb;
}

.col-task {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-icon svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.task-name {
    font-size: 0.875rem;
    color: #111827;
}

.col-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.status-badge,
.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.badge-yellow {
    background: #fef08a;
    color: #854d0e;
}

.badge-blue {
    background: #bfdbfe;
    color: #1e40af;
}

.badge-orange {
    background: #fed7aa;
    color: #9a3412;
}

.badge-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

/* Calendar View */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-calendar-view {
    padding: 0.5rem 1rem;
    border: none;
    background: #6366f1;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.calendar-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.calendar-view {
    padding: 2rem;
}

.calendar-grid {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-day-header {
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid #e5e7eb;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-day {
    min-height: 150px;
    padding: 0.75rem;
    border-right: 1px solid #e5e7eb;
}

.calendar-day:last-child {
    border-right: none;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-task {
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.task-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Timeline View */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-month {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.timeline-view {
    padding: 2rem;
    overflow-x: auto;
}

.timeline-grid {
    min-width: 1200px;
}

.timeline-dates {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.timeline-date {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    font-size: 0.75rem;
}

.date-num {
    display: block;
    font-weight: 600;
    color: #111827;
}

.date-day {
    display: block;
    color: #6b7280;
}

.timeline-tasks {
    position: relative;
    min-height: 400px;
}

.timeline-task-row {
    position: relative;
    height: 50px;
    border-bottom: 1px solid #f3f4f6;
}

.timeline-task-bar {
    position: absolute;
    height: 36px;
    top: 7px;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-task-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.task-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    flex-shrink: 0;
}

.task-due {
    margin-left: auto;
    font-size: 0.625rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 70px;
    }
    
    .dashboard-main {
        margin-left: 70px;
    }
    
    .turbo-main {
        margin-left: 70px;
    }
    
    .logo-text,
    .nav-text,
    .user-info {
        display: none;
    }
    
    .sidebar-footer {
        flex-direction: column;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .board-columns {
        flex-direction: column;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-actions-bar {
        flex-direction: column;
    }
    
    .task-actions-bar .btn {
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
