.negwork-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1f2937;
    background: #f9fafb;
    min-height: 100vh;
}

.negwork-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 28px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.negwork-header-left,
.negwork-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.negwork-brand {
    font-size: 22px;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

.negwork-header-separator {
    color: #d1d5db;
    font-size: 18px;
}

.negwork-user-greeting {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

.negweb-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.negweb-link:hover {
    text-decoration: underline;
}

.negwork-logout-link {
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.negwork-logout-link:hover {
    text-decoration: underline;
}

.negwork-dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 0 28px;
    border-bottom: 1px solid #e5e7eb;
    min-height: 52px;
    flex-wrap: wrap;
    gap: 12px;
}

.negwork-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.negwork-nav-link {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    transition: color 0.2s, background 0.2s;
}

.negwork-nav-link:hover {
    color: #4f46e5;
    background: #f3f4f6;
}

.negwork-nav-link.active {
    color: #4f46e5;
    background: #ffffff;
    border-color: #e5e7eb;
    position: relative;
    z-index: 1;
}

.negwork-dashboard-search {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

#negwork-search-input {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    min-width: 220px;
}

#negwork-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.negwork-search-results {
    position: absolute;
    top: 42px;
    right: 0;
    width: 320px;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 20;
    font-size: 13px;
}

.negwork-search-results ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.negwork-search-results li {
    padding: 8px 12px;
    border-radius: 4px;
}

.negwork-search-results li:hover {
    background: #f3f4f6;
}

.negwork-search-results li a {
    text-decoration: none;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.negwork-result-type {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.negwork-searching,
.negwork-no-results,
.negwork-search-error {
    padding: 12px;
    text-align: center;
    color: #6b7280;
}

.negwork-dashboard-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
}

.negwork-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.negwork-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.negwork-create-board-form,
.negwork-create-list-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.negwork-create-board-form input[type="text"],
.negwork-create-list-form input[type="text"] {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    min-width: 220px;
}

.negwork-create-board-form input[type="text"]:focus,
.negwork-create-list-form input[type="text"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.negwork-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.negwork-board-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    transition: box-shadow 0.2s;
}

.negwork-board-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.negwork-board-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
}

.negwork-board-title a {
    color: #1f2937;
    text-decoration: none;
}

.negwork-board-title a:hover {
    color: #4f46e5;
}

.negwork-board-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.negwork-board-back {
    margin-left: auto;
}

.negwork-board-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.negwork-lists-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-top: 20px;
}

.negwork-list-column {
    min-width: 280px;
    max-width: 320px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.negwork-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.negwork-list-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #374151;
    word-break: break-word;
}

.negwork-list-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.negwork-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 40px;
}

.negwork-card-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    transition: box-shadow 0.2s;
}

.negwork-card-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.negwork-card-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.negwork-card-title a {
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
}

.negwork-card-title a:hover {
    color: #4f46e5;
}

.negwork-card-due-date {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.negwork-card-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.negwork-create-card-form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.negwork-new-card-title {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.negwork-new-card-title:focus {
    border-color: #6366f1;
}

.negwork-archive-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.negwork-archive-section h2 {
    font-size: 18px;
    margin: 0 0 14px 0;
    color: #111827;
}

.negwork-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.negwork-archive-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.negwork-archive-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.negwork-notifications-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.negwork-notifications-section h2 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #111827;
}

.negwork-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.negwork-notification-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.negwork-notification-card.overdue {
    background: #fef2f2;
    border-color: #fecaca;
}

.negwork-notification-title {
    font-weight: 500;
    flex: 1;
}

.negwork-notification-due-date,
.negwork-notification-time {
    color: #6b7280;
    font-size: 13px;
}

.negwork-list-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.negwork-list-detail-actions {
    display: flex;
    gap: 8px;
}

.negwork-card-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.negwork-card-details {
    margin: 20px 0;
}

.negwork-card-description {
    margin-bottom: 18px;
}

.negwork-card-description h3,
.negwork-card-attachments h3 {
    font-size: 15px;
    margin: 0 0 6px 0;
    color: #374151;
}

.negwork-card-dates {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.negwork-card-due-date,
.negwork-card-due-time {
    font-size: 14px;
    color: #4b5563;
}

.negwork-label {
    font-weight: 500;
    margin-right: 6px;
}

.negwork-card-attachments ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.negwork-attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 6px;
}

.negwork-attachment-name {
    font-size: 13px;
    font-weight: 500;
}

.negwork-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.negwork-no-items {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
    margin: 0;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .negwork-dashboard-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .negwork-dashboard-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .negwork-dashboard-search {
        width: 100%;
    }
    #negwork-search-input {
        flex: 1;
    }
    .negwork-lists-container {
        flex-direction: column;
    }
}