/* Action Items Dashboard Styles */

/* Main Dashboard Container */
.action-items-dashboard {
    background-color: #104862;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    width: 100%;
}

.action-items-dashboard .dashboard-main-content {
    padding: 30px;
    min-height: calc(100vh - 120px);
}

/* Header Section */
.action-items-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-items-dashboard .dashboard-header h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.action-header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    min-width: 0; /* Prevent flex items from growing beyond container */
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
    width: 372px;
}

.action-items-dashboard .view-toggle .btn {
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    position: relative;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
    outline: none !important;
    white-space: nowrap;
}

.action-items-dashboard .view-toggle .btn:last-child {
    border-right: none !important;
}

.action-items-dashboard .view-toggle .btn.active {
    background: linear-gradient(135deg, #FFBA49 0%, #ff9f00 100%) !important;
    color: #104862 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.action-items-dashboard .view-toggle .btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.action-items-dashboard .view-toggle .btn .btn-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.action-items-dashboard .view-toggle .btn .btn-text {
    font-size: 12px;
    line-height: 1;
}

/* Add Action Item Button */
.action-header-controls .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 20px !important;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 120px;
}

.action-header-controls .btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.action-header-controls .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.action-header-controls .btn-primary .btn-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.action-header-controls .btn-primary .btn-text {
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

/* Filters Section */
.action-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: end;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
    position: relative;
}

.action-filters .filter-group.search-group {
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.action-filters .filter-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Dropdown Styling for Action Items */
.action-items-dashboard .custom-dropdown {
    position: relative !important;
    min-width: 140px;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}

.action-items-dashboard .dropdown-header {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    opacity: 1 !important;
    min-height: 36px;
    box-sizing: border-box;
}

.action-items-dashboard .dropdown-header:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.action-items-dashboard .dropdown-selected {
    color: white !important;
    opacity: 1 !important;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-items-dashboard .dropdown-arrow {
    color: white !important;
    opacity: 1 !important;
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: 8px;
}

.action-items-dashboard .custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.action-items-dashboard .dropdown-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #1a5f7a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    z-index: 1000 !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    display: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    min-width: 200px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    margin-top: 2px !important;
}

.action-items-dashboard .custom-dropdown.open .dropdown-options {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1a5f7a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.action-items-dashboard .dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: background-color 0.2s;
    margin: 0;
    gap: 8px;
}

.action-items-dashboard .dropdown-option:hover {
    background: rgba(255, 186, 73, 0.15);
}

.action-items-dashboard .dropdown-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FFBA49;
    cursor: pointer;
}

.action-items-dashboard .dropdown-option span {
    color: white;
    cursor: pointer;
}

.action-filters .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.action-filters .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFBA49;
    box-shadow: 0 0 0 2px rgba(255, 186, 73, 0.2);
    color: white;
}

.action-filters .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    position: relative; /* Important for dropdown positioning */
}

/* Bulk Actions Button and Dropdown */
.action-items-dashboard #bulkActionsBtn {
    position: relative;
}

.action-items-dashboard #bulkActionsBtn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Summary Stats */
.action-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    flex: 1;
    position: relative;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #FFBA49;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-trend {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}

.stat-trend.overdue {
    color: #ff4757;
}

/* Content Views */
.action-content-view {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* List View */
.action-list-container {
    width: 100%;
}

.action-list-header {
    display: grid;
    grid-template-columns: 40px 1.5fr 130px 110px 150px 160px 130px 110px;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.action-list-header .list-header-status,
.action-list-header .list-header-priority,
.action-list-header .list-header-supplier,
.action-list-header .list-header-assignee,
.action-list-header .list-header-due {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.action-list-header .list-header-status:hover,
.action-list-header .list-header-priority:hover,
.action-list-header .list-header-supplier:hover,
.action-list-header .list-header-assignee:hover,
.action-list-header .list-header-due:hover {
    color: #FFBA49;
}

.action-list {
    max-height: 600px;
    overflow-y: auto;
}

.action-item-row {
    display: grid;
    grid-template-columns: 40px 1.5fr 130px 110px 150px 160px 130px 110px;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    transition: background-color 0.2s;
}

.action-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-item-row.overdue {
    border-left: 4px solid #ff4757;
}

.action-item-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #FFBA49;
}

.action-item-name {
    font-weight: 500;
    color: white;
    cursor: pointer;
}

.action-item-name:hover {
    color: #FFBA49;
    text-decoration: underline;
}

.action-item-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Action Items specific status badges */
.action-items-dashboard .status-badge,
.action-item-row .status-badge,
.kanban-item .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.action-items-dashboard .status-badge.open,
.action-item-row .status-badge.open,
.kanban-item .status-badge.open {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.action-items-dashboard .status-badge.in-progress,
.action-item-row .status-badge.in-progress,
.kanban-item .status-badge.in-progress {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.action-items-dashboard .status-badge.completed,
.action-item-row .status-badge.completed,
.kanban-item .status-badge.completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.action-items-dashboard .status-badge.overdue,
.action-item-row .status-badge.overdue,
.kanban-item .status-badge.overdue {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Action Items specific priority badges */
.action-items-dashboard .priority-badge,
.action-item-row .priority-badge,
.kanban-item .priority-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.action-items-dashboard .priority-badge.low,
.action-item-row .priority-badge.low,
.kanban-item .priority-badge.low {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
}

.action-items-dashboard .priority-badge.medium,
.action-item-row .priority-badge.medium,
.kanban-item .priority-badge.medium {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.action-items-dashboard .priority-badge.high,
.action-item-row .priority-badge.high,
.kanban-item .priority-badge.high {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.action-items-dashboard .priority-badge.critical,
.action-item-row .priority-badge.critical,
.kanban-item .priority-badge.critical {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.supplier-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.assignee-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.assignee-external {
    color: #FFBA49;
}

.due-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.due-date.overdue {
    color: #ff4757;
    font-weight: 600;
}

.due-date.today {
    color: #f1c40f;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.edit {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.action-btn.edit:hover {
    background: rgba(52, 152, 219, 0.3);
}

.action-btn.complete {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.action-btn.complete:hover {
    background: rgba(46, 204, 113, 0.3);
}

.action-btn.delete {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* Kanban Board View */
.kanban-board {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    min-height: 500px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.kanban-column.drag-over {
    background: rgba(255, 186, 73, 0.1);
    border-color: #FFBA49;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 186, 73, 0.3);
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.kanban-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.kanban-count {
    background: #FFBA49;
    color: #104862;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kanban-items {
    padding: 15px;
    min-height: 400px;
    transition: all 0.3s ease;
}

.kanban-items.drag-over {
    background: rgba(255, 186, 73, 0.05);
    border-radius: 4px;
}

.kanban-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
}

.kanban-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kanban-item.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.05);
    cursor: grabbing;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.kanban-item.drag-placeholder {
    background: rgba(255, 186, 73, 0.1);
    border: 2px dashed #FFBA49;
    opacity: 0.8;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFBA49;
    font-weight: 600;
    font-size: 14px;
}

.kanban-item-title {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
}

.kanban-item-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}

.kanban-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.kanban-item-assignee {
    color: rgba(255, 255, 255, 0.8);
}

.kanban-item-due {
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Overrides for Action Items */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content.large {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #104862;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #104862;
}

.modal-body {
    padding: 20px;
    color: #495057;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Form Styling */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #104862;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(16, 72, 98, 0.25);
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-weight: normal;
}

.form-text.text-muted {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Button Styling */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #104862;
    color: white;
}

.btn-primary:hover {
    background: #0d3a4d;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

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

/* Bulk Actions Button - Better visibility */
.action-items-dashboard .btn-outline-primary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.action-items-dashboard .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
}

.action-items-dashboard .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.action-items-dashboard .btn-outline-primary.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
}

/* Clear Filters Button - Better visibility */
.action-items-dashboard .btn-outline-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.action-items-dashboard .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.action-items-dashboard .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.comments-section h4 {
    color: #104862;
    margin-bottom: 15px;
    font-size: 18px;
}

.comment-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6c757d;
}

.comment-author {
    font-weight: 600;
    color: #104862;
}

.comment-text {
    color: #495057;
    line-height: 1.5;
}

.add-comment {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-items-dashboard .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .action-header-controls {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .action-header-controls .btn-primary {
        order: -1; /* Put Add Action Item button first */
        width: 100%;
        max-width: 200px;
    }

    .view-toggle {
        width: 100%;
        max-width: 300px;
    }

    .action-filters {
        flex-direction: column;
        gap: 15px;
    }

    .action-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .action-list-header,
    .action-item-row {
        grid-template-columns: 30px 1fr 80px 60px;
        font-size: 12px;
    }

    .action-list-header .list-header-assignee,
    .action-list-header .list-header-due,
    .action-list-header .list-header-actions,
    .action-item-row .assignee-info,
    .action-item-row .due-date,
    .action-item-row .action-buttons {
        display: none;
    }

    .kanban-board {
        flex-direction: column;
        gap: 15px;
    }

    .kanban-column {
        min-width: auto;
    }

    .modal-content.large {
        width: 95%;
        margin: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFBA49;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state-description {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Form Controls and Select Overrides for Action Items */
.action-items-dashboard .action-filters .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.action-items-dashboard .action-filters select.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.action-items-dashboard .action-filters select.form-control option {
    background-color: #1a5f7a !important;
    color: white !important;
}

/* Bootstrap Dropdown Overrides for Action Items - High Specificity */
.action-items-dashboard .action-filters .dropdown-menu,
.action-items-dashboard .dropdown-menu {
    background-color: #1a5f7a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    min-width: 160px !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
}

.action-items-dashboard .dropdown-menu:not(.show) {
    display: none !important;
}

.action-items-dashboard .dropdown-menu.show {
    display: block !important;
}

.action-items-dashboard .action-filters .dropdown-item,
.action-items-dashboard .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.action-items-dashboard .action-filters .dropdown-item:hover,
.action-items-dashboard .action-filters .dropdown-item:focus,
.action-items-dashboard .dropdown-item:hover,
.action-items-dashboard .dropdown-item:focus {
    background-color: #FFBA49 !important;
    color: #104862 !important;
}

.action-items-dashboard .action-filters .dropdown-item:active,
.action-items-dashboard .dropdown-item:active {
    background-color: #e6a840 !important;
    color: #104862 !important;
}

.action-items-dashboard .action-filters .dropdown-divider,
.action-items-dashboard .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 4px 0 !important;
}

.action-items-dashboard .action-filters .dropdown-header,
.action-items-dashboard .dropdown-header {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 8px 16px 4px 16px !important;
}

/* Calendar View Styles */
.calendar-container {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.calendar-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFBA49;
}

.calendar-grid {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #FFBA49;
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    min-height: 500px;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-height: 100px;
    padding: 8px;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.today {
    border: 2px solid #FFBA49;
    background: rgba(255, 186, 73, 0.1);
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.calendar-day-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-action-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-action-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.calendar-action-item.priority-low {
    border-left-color: #95a5a6;
}

.calendar-action-item.priority-medium {
    border-left-color: #3498db;
}

.calendar-action-item.priority-high {
    border-left-color: #f1c40f;
}

.calendar-action-item.priority-critical {
    border-left-color: #e74c3c;
}

.calendar-action-item.status-completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-action-item.status-overdue {
    background: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
}

.calendar-more-items {
    font-size: 10px;
    color: #FFBA49;
    text-align: center;
    padding: 4px;
    cursor: pointer;
    font-weight: 600;
}

.calendar-more-items:hover {
    text-decoration: underline;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }

    .calendar-header {
        margin-bottom: 20px;
    }

    .calendar-title {
        font-size: 18px;
    }

    .calendar-nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .calendar-weekday {
        font-size: 12px;
        padding: 6px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .calendar-action-item {
        font-size: 10px;
        padding: 4px 6px;
    }
}