/* Global Application Styles - Dark Theme */
* {
    box-sizing: border-box;
}

body {
    background: #0f172a;
    color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Global Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f1f5f9;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Select Styles */
select.form-control {
    background: #1e293b;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f1f5f9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    border: 1px solid #475569;
    color: #f1f5f9;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: #334155;
}

select.form-control option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
}

/* Color Picker Styles */
input[type="color"] {
    width: 50px;
    height: 40px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

input[type="color"]:hover {
    border-color: #6366f1;
    transform: scale(1.05);
}

input[type="color"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom Color Picker Wrapper */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.color-picker-wrapper:hover {
    background: #475569;
    border-color: #6366f1;
}

.color-picker-label {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.color-picker-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #475569;
    background: #6366f1;
    transition: all 0.2s ease;
}

.color-picker-wrapper:hover .color-picker-preview {
    border-color: #f1f5f9;
    transform: scale(1.1);
}

/* Enhanced Form Controls */
.form-control-enhanced {
    position: relative;
}

.form-control-enhanced .form-control {
    padding-left: 40px;
}

.form-control-enhanced::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

/* Priority Select Enhancement */
.priority-select::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f1f5f9'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 10V3L4 14h7v7l9-11h-7z'/%3e%3c/svg%3e");
}

/* Status Select Enhancement */
.status-select::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f1f5f9'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3e%3c/svg%3e");
}

/* Category Select Enhancement */
.category-select::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f1f5f9'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z'/%3e%3c/svg%3e");
}

/* Textarea Styles */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox Styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-check:hover {
    background: #475569;
    border-color: #6366f1;
}

.form-check-input {
    width: 16px;
    height: 16px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

/* Form Layout Improvements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Form Section Styling */
.form-section {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #475569;
}

.form-section-title {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.form-section-icon {
    width: 24px;
    height: 24px;
    color: #6366f1;
}

/* Enhanced Input Groups */
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.input-group-label {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
}

.input-group-control {
    flex: 1;
}

/* Color Picker with Label */
.color-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.color-input-group:hover {
    background: #475569;
    border-color: #6366f1;
}

.color-input-label {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.color-input-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #475569;
    background: #6366f1;
    transition: all 0.2s ease;
}

.color-input-group:hover .color-input-preview {
    border-color: #f1f5f9;
    transform: scale(1.1);
}

/* Modal Styles */
.modal-content {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-bottom: 1px solid #475569;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

.modal-title {
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.modal-body {
    padding: 24px;
    background: #1e293b;
}

.modal-footer {
    background: #1e293b;
    border-top: 1px solid #475569;
    border-radius: 0 0 12px 12px;
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, rgb(16, 185, 129) 0%, rgb(5, 150, 105) 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #475569;
    color: #f1f5f9;
}

.btn-secondary:hover {
    background: #64748b;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 16px 20px;
    border-bottom: 1px solid #475569;
}

.card-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.card-body {
    padding: 20px;
    background: #1e293b;
}

/* Table Styles */
.table {
    width: 100%;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #475569;
}

.table th {
    background: #334155;
    color: #f1f5f9;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #475569;
}

.table td {
    padding: 12px 16px;
    color: #f1f5f9;
    border-bottom: 1px solid #334155;
}

.table tbody tr:hover {
    background: #334155;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Navigation Styles */
.navbar {
    background: #1e293b;
    border-bottom: 1px solid #475569;
    padding: 16px 0;
}

.navbar-brand {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f1f5f9;
    background: #334155;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Container Styles */
.form-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.form-container .card {
    max-width: 100%;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: #1e293b;
    border-bottom: 1px solid #475569;
    padding: 24px 0;
    margin-bottom: 32px;
}

.page-title {
    color: #f1f5f9;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin: 8px 0 0 0;
}

/* Kanban Board Specific Styles - Based on styles.css but customized for Laravel Kanban */

/* Kanban Board Layout */
.board {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 500px;
    background: #0f172a;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* Column Styles */
.column {
    flex: 0 0 320px; /* Fixed width, no grow, no shrink */
    background: #1e293b;
    border-radius: 12px;
    padding: 0;
    min-height: 400px;
    border: 1px solid #475569;
    overflow: hidden;
    width: 320px; /* Fixed width */
}

/* Column Header with Purple Gradient */
.column-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 16px 20px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.completion-indicator {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.completion-indicator::before {
    content: '✓';
}

.column-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.column-buttons {
    display: flex;
    gap: 4px;
}

.column-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tasks Container */
.tasks-container {
    padding: 16px;
    min-height: 300px;
    background: #1e293b;
}

/* Task Card Styles */
.task-card {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
}

.task-card:hover {
    border-color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-card:active {
    cursor: grabbing;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.task-title-link {
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.task-title-link:hover {
    color: #6366f1;
    text-decoration: underline;
}

.task-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.task-btn {
    background: #475569;
    border: none;
    color: #f1f5f9;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

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

.edit-btn:hover {
    background: #3b82f6;
}

.delete-btn:hover {
    background: #ef4444;
}

.task-description {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #475569;
}

.task-priority {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-high {
    background: #fef2f2;
    color: #dc2626;
}

.priority-medium {
    background: #fffbeb;
    color: #d97706;
}

.priority-low {
    background: #f0fdf4;
    color: #16a34a;
}

.task-date {
    font-size: 10px;
    color: #9ca3af;
}

/* Category Filter Styles */
.category-filter {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-filter h3 {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filter h3::before {
    content: "🏷️";
    font-size: 18px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-filter-btn {
    background: #334155;
    border: 1px solid #475569;
    color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.category-filter-btn:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.category-filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.clear-filter-btn {
    background: #6b7280;
    border: 1px solid #9ca3af;
    color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.clear-filter-btn:hover {
    background: #9ca3af;
    border-color: #d1d5db;
}

/* Button Styles */
.kanban-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.kanban-btn-primary {
    color: white;
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
}

.kanban-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.kanban-btn-success {
    color: white;
    background: linear-gradient(135deg, rgb(16, 185, 129) 0%, rgb(5, 150, 105) 100%);
}

.kanban-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.kanban-btn-danger {
    background: #ef4444;
    color: white;
}

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

.kanban-btn-secondary {
    background: #6b7280;
    color: white;
}

.kanban-btn-secondary:hover {
    background: #4b5563;
}

/* Form Styles */
.kanban-form-group {
    margin-bottom: 16px;
}

.kanban-form-group label {
    display: block;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.kanban-form-group input,
.kanban-form-group textarea,
.kanban-form-group select {
    width: 100%;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 10px 12px;
    color: #f1f5f9;
    font-size: 14px;
    transition: border-color 0.2s;
}

.kanban-form-group input:focus,
.kanban-form-group textarea:focus,
.kanban-form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.kanban-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Stats Card Styles */
.kanban-stats-card {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.kanban-stats-card h3 {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.kanban-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.kanban-mini-stat {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.kanban-mini-stat .value {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.kanban-mini-stat .label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Board Card Styles */
.kanban-board-card {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.kanban-board-card:hover {
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kanban-board-card h3 {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.kanban-board-card p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.kanban-board-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

/* Chart Container */
.kanban-chart-container {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.kanban-chart-container h3 {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .board {
        padding: 16px;
        gap: 16px;
    }
    
    .column {
        flex: 0 0 280px; /* Slightly smaller on mobile */
        width: 280px;
        min-height: 300px;
    }
    
    .kanban-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .category-filter-btn {
        justify-content: center;
    }
}

/* Dashboard Styles - Bento Grid Layout */
.dashboard-container {
    background: #0f172a;
    min-height: 100vh;
    padding: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: #1e293b;
    border-bottom: 1px solid #475569;
    padding: 24px 32px;
    margin-bottom: 32px;
}

.dashboard-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    color: #f1f5f9;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.dashboard-subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin: 8px 0 0 0;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 20px;
    height: calc(100vh - 200px);
    max-height: 800px;
    padding: 0 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bento Grid Items */
.bento-item {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

/* Bento Item Sizes */
.bento-item.welcome {
    grid-column: span 8;
    grid-row: span 2;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.bento-item.stats {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-item.chart-large {
    grid-column: span 8;
    grid-row: span 4;
}

.bento-item.chart-small {
    grid-column: span 4;
    grid-row: span 4;
}

.bento-item.recent-tasks {
    grid-column: span 6;
    grid-row: span 2;
}

.bento-item.quick-actions {
    grid-column: span 6;
    grid-row: span 2;
}

/* Welcome Section */
.welcome-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.welcome-content p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* Stats Cards in Bento */
.stats-grid-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.stat-card-bento {
    background: #334155;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.stat-card-bento:hover {
    background: #475569;
    transform: scale(1.02);
}

.stat-icon-bento {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.stat-value-bento {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.stat-label-bento {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Chart Containers in Bento */
.chart-container-bento {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-header-bento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title-bento {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.chart-icon-bento {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chart-content-bento {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border-radius: 12px;
    padding: 20px;
}

/* User Assignment Styles */
.task-assignee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 6px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.assignee-name {
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Large Assignee Display for Task Detail View */
.task-assignee-large {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.assignee-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.assignee-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assignee-name-large {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
}

.assignee-email {
    color: #94a3b8;
    font-size: 12px;
}

/* Permission Management Styles */
.permission-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.permission-user-item:hover {
    background: #475569;
    border-color: #6366f1;
}

.permission-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.permission-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.permission-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-user-name {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.permission-user-email {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.permission-user-role {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.role-master {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.role-admin {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

.role-editor {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.role-viewer {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.permission-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Board Title Section */
.kanban-board-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.kanban-board-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

/* Enhanced Select Styles for User Assignment */
.kanban-form-select {
    background: #1e293b;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f1f5f9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    border: 1px solid #475569;
    color: #f1f5f9;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kanban-form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: #334155;
}

.kanban-form-select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
}

/* Recent Tasks in Bento */
.recent-tasks-list {
    max-height: 200px;
    overflow-y: auto;
}

.recent-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

.recent-task-item.clickable-item {
    cursor: pointer;
    border-radius: 8px;
    margin: 4px 0;
    padding: 12px 16px;
}

.recent-task-item.clickable-item:hover {
    background: linear-gradient(135deg, #334155, #475569);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.recent-task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.recent-task-priority.high {
    background: #ef4444;
}

.recent-task-priority.medium {
    background: #f59e0b;
}

.recent-task-priority.low {
    background: #22c55e;
}

.recent-task-title {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.recent-task-status {
    background: #334155;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

/* Quick Actions in Bento */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.quick-action-btn {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 16px;
    color: #f1f5f9;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-action-icon {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quick-action-label {
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
}

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

.stat-card {
    background: #1e293b;
    border: 1px solid #4A4A6A;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #6A5ACD;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Chart Containers */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: #1e293b;
    border: 1px solid #4A4A6A;
    border-radius: 12px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.chart-icon {
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Task Completion Trend Chart */
.trend-chart {
    height: 300px;
    position: relative;
}

.trend-line {
    stroke: #6A5ACD;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-area {
    fill: url(#trendGradient);
    opacity: 0.3;
}

.trend-point {
    fill: #6A5ACD;
    stroke: #1A1A2E;
    stroke-width: 2;
    r: 4;
}

/* Priority Distribution Chart */
.priority-chart {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.priority-segment {
    stroke: #1A1A2E;
    stroke-width: 2;
}

.priority-segment.high {
    fill: #ef4444;
}

.priority-segment.medium {
    fill: #f59e0b;
}

.priority-segment.low {
    fill: #22c55e;
}

/* Chart Axes */
.chart-axis {
    stroke: #4A4A6A;
    stroke-width: 1;
}

.chart-axis-text {
    fill: #94a3b8;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.chart-grid {
    stroke: #2A2A4A;
    stroke-width: 1;
    opacity: 0.5;
}

/* Task Detail View Styles */
.task-detail-section {
    margin-bottom: 32px;
}

.task-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.task-detail-content {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 16px;
}

.task-description-text {
    color: #f1f5f9;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.task-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.task-detail-item {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.task-detail-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority-badge.priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.task-priority-badge.priority-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.task-priority-badge.priority-low {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid #6b7280;
}

.task-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-status-badge.status-todo {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid #6b7280;
}

.task-status-badge.status-inprogress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.task-status-badge.status-done {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.task-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid #6366f1;
}

.task-date-badge.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.task-date-badge.no-date {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid #6b7280;
}

.task-board-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.task-board-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.task-board-link:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.task-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .chart-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .task-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}