/* Public Pro Styles - Frontend Enhanced Features */

/* ==================== Reset WordPress Theme Overrides ==================== */
.hrmp-portal select.atmp-filter-select,
.hrmp-portal .atmp-list-filters select,
.hrmp-portal .atmp-kanban-filters select,
.hrmp-portal .atmp-calendar-filters select {
    width: auto !important;
    max-width: 180px !important;
    min-width: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
}

.hrmp-portal .atmp-list-filters,
.hrmp-portal .atmp-kanban-filters,
.hrmp-portal .atmp-calendar-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.hrmp-portal .atmp-search-input {
    width: 160px !important;
}

/* ==================== Spinner ==================== */
.atmp-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--hrmp-gray-200);
    border-top-color: var(--hrmp-primary);
    border-radius: 50%;
    animation: atmpSpin 0.7s linear infinite;
}

@keyframes atmpSpin {
    to { transform: rotate(360deg); }
}

.atmp-dashboard-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--hrmp-gray-400);
}

.atmp-dashboard-loading p {
    margin-top: 12px;
    font-size: 14px;
}

/* ==================== Stats Grid ==================== */
.atmp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.atmp-stat-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    padding: 20px;
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.atmp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrmp-shadow-md);
}

.atmp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--hrmp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atmp-stat-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.atmp-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    line-height: 1.2;
}

.atmp-stat-label {
    font-size: 12px;
    color: var(--hrmp-gray-500);
    font-weight: 500;
}

/* ==================== Badges ==================== */
.atmp-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.atmp-priority-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* ==================== Avatars ==================== */
.atmp-avatar-stack {
    display: flex;
    flex-direction: row;
}

.atmp-avatar-stack .atmp-avatar-chip + .atmp-avatar-chip {
    margin-left: -6px;
}

.atmp-avatar-chip {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hrmp-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: default;
}

.atmp-no-assignee {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    font-style: italic;
}

/* ==================== Chips ==================== */
.atmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--hrmp-primary-light);
    color: var(--hrmp-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 2px 4px 2px 0;
}

.atmp-chip-remove {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--hrmp-primary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.atmp-chip-remove:hover {
    opacity: 1;
}

/* ==================== Buttons ==================== */
.atmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
}

.atmp-btn-primary {
    background: var(--hrmp-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.atmp-btn-primary:hover {
    background: var(--hrmp-primary-hover);
    color: #fff;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.atmp-btn-secondary {
    background: #fff;
    color: var(--hrmp-gray-600);
    border: 1px solid var(--hrmp-gray-300);
}

.atmp-btn-secondary:hover {
    background: var(--hrmp-gray-50);
    border-color: var(--hrmp-gray-400);
}

.atmp-btn-danger {
    background: var(--hrmp-danger);
    color: #fff;
}

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

.atmp-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.atmp-btn-icon {
    background: none;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hrmp-gray-500);
    transition: all 0.2s;
}

.atmp-btn-icon:hover {
    border-color: var(--hrmp-primary);
    color: var(--hrmp-primary);
    background: var(--hrmp-primary-light);
}

/* ==================== Filter / Toolbar ==================== */
.atmp-filter-select {
    padding: 7px 32px 7px 12px !important;
    border: 1.5px solid var(--hrmp-gray-200) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: var(--hrmp-gray-700) !important;
    background: #fff !important;
    cursor: pointer;
    width: auto !important;
    min-width: 0 !important;
    max-width: 180px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 1.3;
    box-sizing: border-box;
}

.atmp-filter-select:hover {
    border-color: var(--hrmp-gray-300) !important;
    background-color: var(--hrmp-gray-50) !important;
}

.atmp-filter-select:focus {
    border-color: var(--hrmp-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08) !important;
    background-color: #fff !important;
}

.atmp-search-box {
    position: relative;
}

.atmp-search-input {
    padding: 7px 12px !important;
    border: 1.5px solid var(--hrmp-gray-200) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--hrmp-gray-700) !important;
    width: 160px !important;
    max-width: 160px;
    transition: all 0.2s ease;
    background: #fff !important;
    height: 36px;
    box-sizing: border-box;
}

.atmp-search-input:hover {
    border-color: var(--hrmp-gray-300) !important;
}

.atmp-search-input:focus {
    border-color: var(--hrmp-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08) !important;
    width: 200px !important;
}

.atmp-search-input::placeholder {
    color: var(--hrmp-gray-400);
}

/* ==================== Dashboard ==================== */
.atmp-dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .atmp-dashboard-charts { grid-template-columns: 1fr; }
}

.atmp-chart-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    padding: 20px;
}

.atmp-chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 0 0 14px;
}

.atmp-chart-container {
    position: relative;
    height: 220px;
}

.atmp-dashboard-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .atmp-dashboard-bottom { grid-template-columns: 1fr; }
}

.atmp-dashboard-panel {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    padding: 20px;
}

.atmp-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-panel-title-warning {
    color: var(--hrmp-danger);
}

.atmp-recent-task-item,
.atmp-overdue-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--hrmp-gray-100);
    cursor: pointer;
    transition: background 0.15s;
}

.atmp-recent-task-item:hover,
.atmp-overdue-task-item:hover {
    background: var(--hrmp-gray-50);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

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

.atmp-recent-task-title,
.atmp-overdue-task-title {
    font-weight: 600;
    color: var(--hrmp-gray-800);
    font-size: 14px;
}

.atmp-recent-task-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
}

.atmp-recent-task-date {
    font-size: 12px;
    color: var(--hrmp-gray-400);
}

.atmp-overdue-text {
    color: var(--hrmp-danger) !important;
    font-weight: 600;
}

.atmp-overdue-days {
    font-size: 12px;
    color: var(--hrmp-danger);
    font-weight: 600;
}

.atmp-overdue-task-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.atmp-overdue-task-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.atmp-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--hrmp-gray-400);
}

.atmp-empty-state-sm {
    text-align: center;
    padding: 20px;
    color: var(--hrmp-gray-400);
    font-size: 13px;
}

.atmp-empty-good {
    color: var(--hrmp-success);
}

/* ==================== Progress ==================== */
.atmp-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hrmp-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--hrmp-gray-200);
    border-radius: 3px;
    overflow: hidden;
    min-width: 50px;
}

.hrmp-progress-fill {
    height: 100%;
    background: var(--hrmp-primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.hrmp-progress-text {
    font-size: 12px;
    color: var(--hrmp-gray-500);
    font-weight: 600;
    white-space: nowrap;
}

/* ==================== List View ==================== */
.atmp-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.atmp-list-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.atmp-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.atmp-bulk-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--hrmp-gray-600);
    font-weight: 600;
}

.atmp-list-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid var(--hrmp-gray-200);
}

.atmp-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.atmp-list-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--hrmp-gray-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--hrmp-gray-200);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.atmp-list-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.atmp-list-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.atmp-list-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    vertical-align: middle;
    color: var(--hrmp-gray-700);
}

.atmp-list-table tbody tr:last-child td {
    border-bottom: none;
}

.atmp-list-table tbody tr {
    transition: background 0.15s ease;
}

.atmp-list-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.atmp-list-row.atmp-row-overdue {
    background: #fef2f2;
}

.atmp-list-row.atmp-row-overdue:hover {
    background: #fee2e2;
}

.atmp-col-check {
    width: 40px;
    text-align: center;
}

.atmp-col-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--hrmp-primary);
    cursor: pointer;
    border-radius: 4px;
}

.atmp-col-title {
    min-width: 200px;
}

.atmp-task-link {
    color: var(--hrmp-gray-800);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
    font-size: 13px;
}

.atmp-task-link:hover {
    color: var(--hrmp-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.atmp-sortable {
    cursor: pointer;
    user-select: none;
}

.atmp-sortable:hover {
    color: var(--hrmp-primary);
}

.atmp-sorted {
    color: var(--hrmp-primary);
}

.atmp-list-empty {
    text-align: center;
    padding: 40px;
    color: var(--hrmp-gray-400);
    font-style: italic;
}

.atmp-text-muted {
    color: var(--hrmp-gray-400);
}

/* ==================== Pagination ==================== */
.atmp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.atmp-pagination-info {
    font-size: 13px;
    color: var(--hrmp-gray-500);
}

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

.atmp-page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--hrmp-gray-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.atmp-page-btn:hover:not(:disabled) {
    border-color: var(--hrmp-primary);
    color: var(--hrmp-primary);
}

.atmp-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.atmp-page-btn.atmp-page-active {
    background: var(--hrmp-primary);
    color: #fff;
    border-color: var(--hrmp-primary);
}

/* ==================== User Search Dropdown ==================== */
.atmp-multi-assignee {
    position: relative;
}

.atmp-user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 12px;
    box-shadow: var(--hrmp-shadow-xl);
    max-height: 260px;
    overflow-y: auto;
    z-index: 10001;
    margin-top: 4px;
    animation: atmpDropdownIn 0.15s ease;
}

@keyframes atmpDropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.atmp-user-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.12s;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-user-option:last-child {
    border-bottom: none;
}

.atmp-user-option:hover {
    background: var(--hrmp-primary-light);
}

.atmp-user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hrmp-primary) 0%, #818cf8 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atmp-user-name {
    font-weight: 600;
    color: var(--hrmp-gray-800);
    font-size: 13px;
}

.atmp-user-email {
    font-size: 11px;
    color: var(--hrmp-gray-400);
}

/* ==================== Notifications ==================== */
.atmp-notification-bell {
    position: relative;
}

.atmp-bell-btn {
    position: relative;
    background: none;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--hrmp-transition);
    color: var(--hrmp-gray-500);
}

.atmp-bell-btn:hover {
    background: var(--hrmp-gray-50);
    border-color: var(--hrmp-gray-300);
    color: var(--hrmp-gray-700);
}

.atmp-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--hrmp-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
    animation: atmpBadgePulse 2s infinite;
}

@keyframes atmpBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.atmp-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 380px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--hrmp-shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 10001;
    overflow: hidden;
    animation: atmpDropdownIn 0.2s ease;
}

.atmp-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-notif-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--hrmp-gray-800);
}

.atmp-notif-mark-all {
    background: none;
    border: none;
    color: var(--hrmp-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.atmp-notif-mark-all:hover {
    text-decoration: underline;
}

.atmp-notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.atmp-notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    cursor: pointer;
    transition: background 0.15s;
}

.atmp-notif-item:hover {
    background: var(--hrmp-gray-50);
}

.atmp-notif-item:last-child {
    border-bottom: none;
}

.atmp-notif-unread {
    background: #eef2ff;
}

.atmp-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hrmp-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hrmp-gray-500);
}

.atmp-notif-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.atmp-notif-content {
    flex: 1;
    min-width: 0;
}

.atmp-notif-message {
    font-size: 13px;
    color: var(--hrmp-gray-700);
    line-height: 1.4;
}

.atmp-notif-time {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    margin-top: 3px;
}

.atmp-notif-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--hrmp-gray-400);
    font-size: 13px;
}

.atmp-notif-loading {
    text-align: center;
    padding: 24px;
    color: var(--hrmp-gray-400);
}

/* ==================== Mention Dropdown ==================== */
.atmp-mention-dropdown {
    background: #fff;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 12px;
    box-shadow: var(--hrmp-shadow-xl);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10001;
    animation: atmpDropdownIn 0.15s ease;
}

.atmp-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.atmp-mention-item:hover,
.atmp-mention-item.active {
    background: var(--hrmp-gray-50);
}

.atmp-mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hrmp-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atmp-mention-info {
    display: flex;
    flex-direction: column;
}

.atmp-mention-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--hrmp-gray-800);
}

.atmp-mention-username {
    font-size: 12px;
    color: var(--hrmp-gray-400);
}

/* ==================== Task Detail ==================== */
.atmp-task-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

@media (max-width: 800px) {
    .atmp-task-detail { grid-template-columns: 1fr; }
}

.atmp-task-detail-main,
.atmp-task-detail-sidebar {
    min-width: 0;
}

.atmp-detail-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    margin-bottom: 20px;
}

.atmp-detail-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atmp-detail-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 0;
}

.atmp-detail-card-body {
    padding: 16px 20px;
}

.atmp-detail-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.atmp-detail-meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.atmp-detail-description {
    font-size: 14px;
    color: var(--hrmp-gray-600);
    line-height: 1.7;
}

.atmp-detail-description p {
    margin-bottom: 10px;
}

/* Sidebar Meta */
.atmp-sidebar-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-sidebar-meta-item:last-child {
    border-bottom: none;
}

.atmp-sidebar-meta-label {
    font-size: 13px;
    color: var(--hrmp-gray-500);
    font-weight: 600;
}

.atmp-sidebar-meta-value {
    font-size: 13px;
    color: var(--hrmp-gray-800);
    font-weight: 500;
    text-align: right;
}

/* Comments */
.atmp-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.atmp-comment-item {
    display: flex;
    gap: 12px;
}

.atmp-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hrmp-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atmp-comment-body {
    flex: 1;
    min-width: 0;
}

.atmp-comment-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.atmp-comment-author {
    font-weight: 700;
    color: var(--hrmp-gray-800);
    font-size: 14px;
}

.atmp-comment-time {
    font-size: 12px;
    color: var(--hrmp-gray-400);
}

.atmp-comment-text {
    font-size: 14px;
    color: var(--hrmp-gray-600);
    line-height: 1.6;
    word-break: break-word;
}

.atmp-comment-actions {
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

.atmp-comment-action-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-weight: 600;
}

.atmp-comment-action-btn:hover {
    color: var(--hrmp-primary);
}

.atmp-comment-replies {
    margin-left: 48px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid var(--hrmp-gray-200);
    padding-left: 16px;
}

.atmp-comment-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: flex-start;
}

.atmp-comment-form textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--hrmp-gray-300);
    border-radius: var(--hrmp-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    color: var(--hrmp-gray-700);
    transition: border-color 0.2s;
}

.atmp-comment-form textarea:focus {
    border-color: var(--hrmp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==================== Subtask List (ClickUp-Style) ==================== */
.atmp-subtask-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atmp-subtask-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--hrmp-gray-100);
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.atmp-subtask-item:hover {
    background: var(--hrmp-gray-50);
    border-color: var(--hrmp-gray-200);
}

.atmp-subtask-item.completed {
    opacity: 0.55;
}

.atmp-subtask-item.completed .atmp-subtask-title {
    text-decoration: line-through;
    color: var(--hrmp-gray-400);
}

.atmp-subtask-ghost {
    opacity: 0.4;
    background: var(--hrmp-primary-light);
    border: 1px dashed var(--hrmp-primary);
}

.atmp-subtask-chosen {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Drag handle */
.atmp-subtask-drag-handle {
    cursor: grab;
    color: var(--hrmp-gray-300);
    font-size: 12px;
    letter-spacing: -3px;
    user-select: none;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
    width: 12px;
}

.atmp-subtask-item:hover .atmp-subtask-drag-handle {
    opacity: 1;
}

.atmp-subtask-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--hrmp-primary);
    flex-shrink: 0;
}

.atmp-subtask-title {
    flex: 1;
    font-size: 13px;
    color: var(--hrmp-gray-700);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atmp-subtask-title-editable {
    cursor: text;
}

.atmp-subtask-title-editable:hover {
    color: var(--hrmp-primary);
}

.atmp-subtask-title-input {
    flex: 1;
    padding: 2px 6px;
    border: 1px solid var(--hrmp-primary);
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

/* Subtask inline meta (ClickUp-style) */
.atmp-subtask-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.atmp-subtask-status-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.atmp-subtask-status-btn:hover {
    opacity: 0.8;
}

.atmp-subtask-priority-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    padding: 0;
}

.atmp-subtask-priority-btn:hover {
    background: var(--hrmp-gray-100);
}

.atmp-subtask-assignee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.atmp-subtask-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hrmp-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.atmp-subtask-avatar-empty {
    background: var(--hrmp-gray-200);
    color: var(--hrmp-gray-400);
    border: 1px dashed var(--hrmp-gray-300);
}

.atmp-subtask-due-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--hrmp-gray-500);
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.15s;
}

.atmp-subtask-due-btn:hover {
    background: var(--hrmp-gray-100);
}

.atmp-subtask-due-btn.atmp-overdue-text {
    color: var(--hrmp-danger);
}

.atmp-subtask-due-text {
    font-size: 11px;
    color: var(--hrmp-gray-500);
}

/* Subtask actions */
.atmp-subtask-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
    position: relative;
}

.atmp-subtask-item:hover .atmp-subtask-actions {
    opacity: 1;
}

.atmp-subtask-more-btn {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    border-radius: 4px;
    line-height: 1;
}

.atmp-subtask-more-btn:hover {
    color: var(--hrmp-gray-700);
    background: var(--hrmp-gray-100);
}

.atmp-subtask-delete {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    border-radius: 4px;
    line-height: 1;
}

.atmp-subtask-delete:hover {
    color: var(--hrmp-danger);
    background: #fef2f2;
}

/* Subtask inline dropdowns */
.atmp-subtask-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10001;
    background: #fff;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 12px;
    box-shadow: var(--hrmp-shadow-xl);
    min-width: 160px;
    padding: 4px;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    animation: atmpDropdownIn 0.15s ease;
}

.atmp-subtask-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--hrmp-gray-700);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
}

.atmp-subtask-dropdown-item:hover {
    background: var(--hrmp-gray-50);
}

.atmp-subtask-dropdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.atmp-subtask-user-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    outline: none;
}

.atmp-subtask-user-search:focus {
    border-color: var(--hrmp-primary);
}

.atmp-subtask-date-dropdown {
    padding: 8px;
    min-width: 200px;
}

.atmp-subtask-date-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.atmp-subtask-date-input:focus {
    border-color: var(--hrmp-primary);
}

.atmp-subtask-date-actions {
    margin-top: 6px;
}

.atmp-subtask-date-clear {
    background: none;
    border: none;
    color: var(--hrmp-gray-500);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 0;
}

.atmp-subtask-date-clear:hover {
    color: var(--hrmp-danger);
}

/* Subtask add form */
.atmp-subtask-add {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.atmp-subtask-add input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius-sm);
    font-size: 13px;
    transition: border-color 0.15s;
}

.atmp-subtask-add input:focus {
    border-color: var(--hrmp-primary);
    outline: none;
}

/* Inline dropdown for task meta editing */
.atmp-inline-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10001;
    background: #fff;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 12px;
    box-shadow: var(--hrmp-shadow-xl);
    min-width: 160px;
    padding: 4px;
    margin-top: 4px;
    animation: atmpDropdownIn 0.15s ease;
}

.atmp-inline-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--hrmp-gray-700);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
}

.atmp-inline-dropdown-item:hover {
    background: var(--hrmp-gray-50);
}

/* Make task meta values clickable */
.atmp-task-popup-meta-value .atmp-status-badge,
.atmp-task-popup-meta-value .atmp-priority-badge {
    cursor: pointer;
    transition: opacity 0.15s;
}

.atmp-task-popup-meta-value .atmp-status-badge:hover,
.atmp-task-popup-meta-value .atmp-priority-badge:hover {
    opacity: 0.75;
}

/* ==================== Task Popup Redesign ==================== */
#hrmp-task-detail-modal .hrmp-modal {
    max-width: 1220px;
    width: min(1220px, calc(100vw - 40px));
    height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#hrmp-task-detail-modal .hrmp-modal-header {
    padding: 14px 18px 14px 22px;
    border-bottom: 1px solid var(--hrmp-gray-200);
}

#hrmp-task-detail-modal .hrmp-modal-header h3 {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hrmp-task-detail-modal .hrmp-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#hrmp-task-detail-modal .hrmp-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.atmp-task-popup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    height: 100%;
    min-height: 0;
}

.atmp-task-popup-main {
    padding: 22px 26px 28px;
    overflow-y: auto;
    border-right: 1px solid var(--hrmp-gray-200);
    min-width: 0;
    background: #fff;
}

.atmp-task-popup-type-row {
    margin-bottom: 8px;
}

.atmp-task-popup-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrmp-gray-500);
}

.atmp-task-popup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hrmp-gray-400);
}

.atmp-task-popup-title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    margin: 0 0 18px;
}

.atmp-task-popup-meta-card {
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 14px;
    background: #fbfcff;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.atmp-task-popup-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.atmp-task-popup-meta-item {
    min-width: 0;
}

.atmp-task-popup-meta-label {
    display: block;
    font-size: 12px;
    color: var(--hrmp-gray-500);
    margin-bottom: 4px;
    font-weight: 600;
}

.atmp-task-popup-meta-value {
    font-size: 14px;
    color: var(--hrmp-gray-800);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 20px;
}

.atmp-task-popup-meta-value.is-empty {
    color: var(--hrmp-gray-400);
    font-weight: 500;
}

.atmp-task-popup-assignee-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atmp-task-popup-assignee-line .atmp-avatar-stack {
    flex-shrink: 0;
}

.atmp-task-popup-section {
    margin-bottom: 18px;
}

.atmp-task-popup-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrmp-gray-700);
    margin: 0 0 8px;
}

.atmp-task-popup-description-box {
    min-height: 120px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    color: var(--hrmp-gray-700);
    line-height: 1.65;
}

.atmp-task-popup-description-box p:last-child {
    margin-bottom: 0;
}

.atmp-task-popup-description-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
    margin: 14px 0 6px;
    line-height: 1.3;
}

.atmp-task-popup-description-box h2:first-child {
    margin-top: 0;
}

.atmp-task-popup-description-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 10px 0 4px;
    line-height: 1.3;
}

.atmp-task-popup-description-box h3:first-child {
    margin-top: 0;
}

.atmp-task-popup-description-box ul,
.atmp-task-popup-description-box ol {
    margin: 8px 0;
    padding-left: 24px;
}

.atmp-task-popup-section .atmp-rich-editor {
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.atmp-task-popup-inline-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--hrmp-gray-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.atmp-task-popup-inline-link:hover {
    color: var(--hrmp-primary);
}

.atmp-task-popup-subtask-card {
    margin-top: 10px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.atmp-task-popup-subtask-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-task-popup-subtask-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
    margin: 0;
}

.atmp-task-popup-subtask-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.atmp-task-popup-ghost-btn {
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 999px;
    padding: 4px 10px;
    background: #fff;
    color: var(--hrmp-gray-500);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.atmp-task-popup-ghost-btn:hover {
    border-color: var(--hrmp-gray-300);
    color: var(--hrmp-gray-700);
}

#hrmp-task-detail-modal .atmp-subtask-list {
    padding: 10px 12px;
    gap: 4px;
}

#hrmp-task-detail-modal .atmp-subtask-item {
    border: 1px solid var(--hrmp-gray-100);
    border-radius: 8px;
    padding: 6px 10px;
}

#hrmp-task-detail-modal .atmp-subtask-item:hover {
    border-color: var(--hrmp-gray-200);
}

#hrmp-task-detail-modal .atmp-subtask-add {
    margin-top: 0;
    padding: 0 12px 12px;
    flex-direction: column;
    align-items: stretch;
}

#hrmp-task-detail-modal .atmp-subtask-add input {
    min-height: 36px;
}

#hrmp-task-detail-modal .atmp-subtask-add .atmp-btn {
    align-self: flex-end;
    margin-top: 8px;
}

#hrmp-task-detail-modal .atmp-subtask-add .atmp-rich-toolbar-mini {
    border-radius: 8px 8px 0 0;
}

#hrmp-task-detail-modal .atmp-subtask-add .atmp-rich-content-mini {
    border-radius: 0 0 8px 8px;
}

.atmp-task-popup-quick-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.atmp-task-popup-quick-link {
    background: none;
    border: none;
    color: var(--hrmp-gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.atmp-task-popup-quick-link:hover {
    color: var(--hrmp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.atmp-task-popup-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atmp-task-popup-activity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fcfcfd;
}

.atmp-task-popup-activity-header {
    padding: 16px;
    border-bottom: 1px solid var(--hrmp-gray-200);
    background: #fff;
}

.atmp-task-popup-activity-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
}

.atmp-task-popup-activity-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
}

.atmp-task-popup-activity-footer {
    border-top: 1px solid var(--hrmp-gray-200);
    background: #fff;
    padding: 14px;
}

#hrmp-task-detail-modal .atmp-comments-list {
    gap: 10px;
}

#hrmp-task-detail-modal .atmp-comment-item {
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    background: #fff;
}

#hrmp-task-detail-modal .atmp-comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

#hrmp-task-detail-modal .atmp-comment-header {
    margin-bottom: 6px;
}

#hrmp-task-detail-modal .atmp-comment-form {
    margin-top: 0;
    flex-direction: column;
    gap: 8px;
}

#hrmp-task-detail-modal .atmp-comment-form textarea {
    min-height: 72px;
}

#hrmp-task-detail-modal .atmp-comment-form .atmp-btn {
    align-self: flex-end;
}

@media (max-width: 1080px) {
    #hrmp-task-detail-modal .hrmp-modal {
        width: calc(100vw - 24px);
        height: 94vh;
    }

    .atmp-task-popup-layout {
        grid-template-columns: 1fr;
    }

    .atmp-task-popup-main {
        border-right: none;
        border-bottom: 1px solid var(--hrmp-gray-200);
    }

    .atmp-task-popup-activity {
        min-height: 260px;
        max-height: 42vh;
    }
}

@media (max-width: 700px) {
    #hrmp-task-detail-modal .hrmp-modal-header {
        padding: 12px 14px;
    }

    #hrmp-task-detail-modal .hrmp-modal-header h3 {
        font-size: 16px;
    }

    .atmp-task-popup-main {
        padding: 16px 14px 18px;
    }

    .atmp-task-popup-title {
        font-size: 30px;
    }

    .atmp-task-popup-meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .atmp-task-popup-subtask-head {
        flex-wrap: wrap;
    }

    .atmp-task-popup-activity-header,
    .atmp-task-popup-activity-body,
    .atmp-task-popup-activity-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==================== Projects View ==================== */
.atmp-projects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.atmp-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.atmp-project-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.atmp-project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrmp-shadow-md);
}

.atmp-project-color-bar {
    height: 4px;
}

.atmp-project-body {
    padding: 20px;
}

.atmp-project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
    margin-bottom: 6px;
}

.atmp-project-desc {
    font-size: 13px;
    color: var(--hrmp-gray-500);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atmp-project-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--hrmp-gray-500);
}

.atmp-project-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.atmp-project-stats .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.atmp-project-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--hrmp-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atmp-project-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

/* ==================== Activity View ==================== */
.atmp-activity-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.atmp-activity-feed {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
}

.atmp-activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    align-items: flex-start;
}

.atmp-activity-item:last-child {
    border-bottom: none;
}

.atmp-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.atmp-activity-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.atmp-activity-text {
    flex: 1;
    font-size: 14px;
    color: var(--hrmp-gray-700);
}

.atmp-activity-text strong {
    color: var(--hrmp-gray-900);
}

.atmp-activity-time {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    margin-top: 3px;
}

.atmp-activity-change {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
}

.atmp-activity-old {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: line-through;
}

.atmp-activity-new {
    background: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 4px;
}

.atmp-activity-arrow {
    color: var(--hrmp-gray-400);
}

.atmp-load-more-wrap {
    text-align: center;
    padding: 16px;
}

/* ==================== Time Tracking ==================== */
.atmp-time-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.atmp-time-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.atmp-timer-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--hrmp-primary-light);
    border-radius: var(--hrmp-radius-sm);
    border: 1px solid var(--hrmp-primary);
}

.atmp-timer-clock {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--hrmp-primary);
}

.atmp-timer-task-name {
    font-size: 13px;
    color: var(--hrmp-gray-600);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atmp-time-entries-list {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
}

.atmp-time-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    gap: 16px;
}

.atmp-time-entry:last-child {
    border-bottom: none;
}

.atmp-time-entry-info {
    flex: 1;
    min-width: 0;
}

.atmp-time-entry-task {
    font-weight: 600;
    color: var(--hrmp-gray-800);
    font-size: 14px;
}

.atmp-time-entry-desc {
    font-size: 13px;
    color: var(--hrmp-gray-500);
    margin-top: 2px;
}

.atmp-time-entry-dates {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    margin-top: 2px;
}

.atmp-time-entry-duration {
    font-weight: 700;
    font-size: 15px;
    color: var(--hrmp-gray-800);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.atmp-time-entry-actions {
    display: flex;
    gap: 6px;
}

.atmp-time-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ==================== Calendar ==================== */
.atmp-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.atmp-calendar-wrap {
    background: #fff;
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    border: 1px solid var(--hrmp-gray-200);
    padding: 20px;
}

.atmp-calendar-wrap .fc {
    font-family: inherit;
}

.atmp-calendar-wrap .fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--hrmp-gray-800);
}

.atmp-calendar-wrap .fc-button {
    background: #fff !important;
    border: 1px solid var(--hrmp-gray-300) !important;
    color: var(--hrmp-gray-600) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    transition: all 0.2s !important;
}

.atmp-calendar-wrap .fc-button:hover {
    border-color: var(--hrmp-primary) !important;
    color: var(--hrmp-primary) !important;
}

.atmp-calendar-wrap .fc-button-active {
    background: var(--hrmp-primary) !important;
    border-color: var(--hrmp-primary) !important;
    color: #fff !important;
}

.atmp-calendar-wrap .fc-event {
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
}

.atmp-calendar-wrap .fc-daygrid-day-number {
    font-weight: 600;
    color: var(--hrmp-gray-600);
    padding: 8px;
}

.atmp-calendar-wrap .fc-day-today {
    background: var(--hrmp-primary-light) !important;
}

/* ==================== File Upload ==================== */
.atmp-file-upload-zone {
    border: 2px dashed var(--hrmp-gray-300);
    border-radius: var(--hrmp-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--hrmp-gray-50);
}

.atmp-file-upload-zone:hover {
    border-color: var(--hrmp-primary);
    background: var(--hrmp-primary-light);
}

.atmp-file-upload-zone.dragover {
    border-color: var(--hrmp-primary);
    background: var(--hrmp-primary-light);
}

.atmp-file-upload-text {
    font-size: 14px;
    color: var(--hrmp-gray-500);
    margin-top: 8px;
}

.atmp-file-upload-text strong {
    color: var(--hrmp-primary);
}

.atmp-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.atmp-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 8px;
    background: #fff;
}

.atmp-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--hrmp-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hrmp-gray-500);
}

.atmp-file-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.atmp-file-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrmp-gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atmp-file-size {
    font-size: 12px;
    color: var(--hrmp-gray-400);
}

.atmp-file-remove {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-size: 16px;
}

.atmp-file-remove:hover {
    color: var(--hrmp-danger);
}

/* ==================== Rich Editor ==================== */
.atmp-rich-editor {
    border: 1px solid var(--hrmp-gray-300);
    border-radius: var(--hrmp-radius-sm);
    overflow: hidden;
}

.atmp-rich-toolbar {
    display: flex;
    gap: 2px;
    padding: 8px;
    background: var(--hrmp-gray-50);
    border-bottom: 1px solid var(--hrmp-gray-200);
    flex-wrap: wrap;
    position: relative;
}

.atmp-rich-btn {
    min-width: 32px;
    width: auto;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--hrmp-gray-600);
    font-size: 14px;
    transition: all 0.15s;
    white-space: nowrap;
}

.atmp-rich-btn:hover {
    background: #fff;
    border-color: var(--hrmp-gray-300);
}

.atmp-rich-btn.active {
    background: var(--hrmp-primary);
    color: #fff;
    border-color: var(--hrmp-primary);
}

.atmp-rich-separator {
    width: 1px;
    height: 24px;
    background: var(--hrmp-gray-300);
    margin: 4px 6px;
}

.atmp-rich-content {
    min-height: 120px;
    padding: 14px;
    font-size: 14px;
    color: var(--hrmp-gray-700);
    line-height: 1.7;
    outline: none;
}

.atmp-rich-content:focus {
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.atmp-rich-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
    margin: 16px 0 8px;
    line-height: 1.3;
}

.atmp-rich-content h2:first-child {
    margin-top: 0;
}

.atmp-rich-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 12px 0 6px;
    line-height: 1.3;
}

.atmp-rich-content h3:first-child {
    margin-top: 0;
}

.atmp-rich-content p {
    margin-bottom: 8px;
}

.atmp-rich-content ul,
.atmp-rich-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

/* Mini rich editor (subtask input) */
.atmp-rich-toolbar-mini {
    padding: 4px 6px;
    gap: 1px;
}

.atmp-rich-toolbar-mini .atmp-rich-btn {
    min-width: 28px;
    height: 26px;
    font-size: 12px;
    padding: 0 5px;
}

.atmp-rich-content-mini {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
}

/* Heading button small text */
.atmp-rich-btn small {
    font-size: 10px;
    vertical-align: sub;
}

.atmp-rich-link-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    z-index: 30;
    width: 240px;
    padding: 10px;
    border: 1px solid var(--hrmp-gray-300);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    display: none;
}

.atmp-rich-link-popover.open {
    display: block;
}

.atmp-rich-link-input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--hrmp-gray-300);
    border-radius: 6px;
    font-size: 13px;
}

.atmp-rich-link-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.atmp-rich-link-apply,
.atmp-rich-link-cancel {
    border: 1px solid var(--hrmp-gray-300);
    background: #fff;
    color: var(--hrmp-gray-700);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.atmp-rich-link-apply {
    background: var(--hrmp-primary);
    border-color: var(--hrmp-primary);
    color: #fff;
}

/* ==================== Timer Widget ==================== */
.atmp-running-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: var(--hrmp-radius-sm);
    animation: atmpPulse 2s ease infinite;
}

@keyframes atmpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.atmp-running-timer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hrmp-success);
    animation: atmpBlink 1s ease infinite;
}

@keyframes atmpBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.atmp-running-timer-time {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: #065f46;
}

.atmp-running-timer-task {
    font-size: 12px;
    color: #047857;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atmp-running-timer-stop {
    background: var(--hrmp-danger);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.atmp-running-timer-stop:hover {
    background: #dc2626;
}

/* ==================== Tab Buttons ==================== */
.atmp-tab-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hrmp-gray-200);
    padding-bottom: 0;
}

.atmp-tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hrmp-gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.atmp-tab-btn:hover {
    color: var(--hrmp-primary);
}

.atmp-tab-btn.active {
    color: var(--hrmp-primary);
    border-bottom-color: var(--hrmp-primary);
}

/* ==================== Members List ==================== */
.atmp-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atmp-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--hrmp-gray-100);
    border-radius: 8px;
}

.atmp-member-info {
    flex: 1;
}

.atmp-member-name {
    font-weight: 600;
    color: var(--hrmp-gray-800);
    font-size: 14px;
}

.atmp-member-role {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    text-transform: capitalize;
}

.atmp-member-remove {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.atmp-member-item:hover .atmp-member-remove {
    opacity: 1;
}

.atmp-member-remove:hover {
    color: var(--hrmp-danger);
}

/* ==================== Checklist (ClickUp-Style) ==================== */
.atmp-checklist-card {
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

.atmp-checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.atmp-checklist-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atmp-checklist-header-left svg {
    color: var(--hrmp-primary);
    flex-shrink: 0;
}

.atmp-checklist-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin: 0;
}

.atmp-checklist-progress-text {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    font-weight: 500;
}

.atmp-checklist-delete-btn {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.15s;
}

.atmp-checklist-card:hover .atmp-checklist-delete-btn {
    opacity: 1;
}

.atmp-checklist-delete-btn:hover {
    color: var(--hrmp-danger);
}

.atmp-checklist-progress {
    height: 3px;
    background: var(--hrmp-gray-100);
    width: 100%;
}

.atmp-checklist-progress-fill {
    height: 100%;
    background: var(--hrmp-success);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.atmp-checklist-items {
    padding: 8px 12px;
}

.atmp-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    border-radius: 6px;
    transition: background 0.1s;
}

.atmp-checklist-item:hover {
    background: var(--hrmp-gray-50);
}

.atmp-checklist-item.completed .atmp-checklist-item-text {
    text-decoration: line-through;
    color: var(--hrmp-gray-400);
}

.atmp-checklist-check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hrmp-success);
    flex-shrink: 0;
}

.atmp-checklist-item-text {
    flex: 1;
    font-size: 13px;
    color: var(--hrmp-gray-700);
}

.atmp-checklist-item-delete {
    background: none;
    border: none;
    color: var(--hrmp-gray-300);
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.15s;
}

.atmp-checklist-item:hover .atmp-checklist-item-delete {
    opacity: 1;
}

.atmp-checklist-item-delete:hover {
    color: var(--hrmp-danger);
}

.atmp-checklist-add-form {
    display: flex;
    gap: 6px;
    padding: 6px 12px 10px;
}

.atmp-checklist-add-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.atmp-checklist-add-input:focus {
    border-color: var(--hrmp-primary);
}

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

.atmp-task-popup-section-header .atmp-task-popup-section-title {
    margin-bottom: 0;
}

/* ==================== List View Grouping (ClickUp-Style) ==================== */
.atmp-grouped-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.atmp-list-group {
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius-sm);
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

.atmp-list-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    border-bottom: 1px solid var(--hrmp-gray-200);
    transition: background 0.15s;
}

.atmp-list-group-header:hover {
    background: var(--hrmp-gray-100);
}

.atmp-list-group-header.collapsed {
    border-bottom: none;
}

.atmp-group-toggle-icon {
    font-size: 10px;
    color: var(--hrmp-gray-400);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.atmp-list-group-header.collapsed .atmp-group-toggle-icon {
    transform: rotate(-90deg);
}

.atmp-group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

.atmp-group-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    flex: 1;
    letter-spacing: -0.01em;
}

.atmp-group-count {
    font-size: 12px;
    color: var(--hrmp-gray-400);
    background: var(--hrmp-gray-100);
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.atmp-list-group-body {
    padding: 0;
}

.atmp-list-table-grouped {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.atmp-list-table-grouped thead th {
    background: #fff;
    border-top: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hrmp-gray-400);
    padding: 6px 12px;
}

/* ==================== Subtask Expansion Rows ==================== */
.atmp-col-expand {
    width: 28px;
    padding: 0 4px !important;
    text-align: center;
}

.atmp-expand-btn {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.atmp-expand-btn:hover {
    background: var(--hrmp-gray-100);
    color: var(--hrmp-gray-600);
}

.atmp-expand-btn.expanded {
    color: var(--hrmp-primary);
}

.atmp-subtask-row {
    background: var(--hrmp-gray-50);
}

.atmp-subtask-row:hover {
    background: var(--hrmp-gray-100);
}

.atmp-subtask-row td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: 13px;
}

.atmp-subtask-completed {
    opacity: 0.6;
}

.atmp-subtask-indent-line {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--hrmp-gray-300);
    border-bottom: 2px solid var(--hrmp-gray-300);
    border-bottom-left-radius: 4px;
    margin-left: 6px;
}

.atmp-subtask-cell-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px !important;
}

.atmp-subtask-list-check {
    width: 14px;
    height: 14px;
    accent-color: var(--hrmp-success);
    cursor: pointer;
    flex-shrink: 0;
}

.atmp-subtask-list-title {
    font-size: 13px;
    color: var(--hrmp-gray-600);
}

.atmp-subtask-list-title.line-through {
    text-decoration: line-through;
    color: var(--hrmp-gray-400);
}

.atmp-subtask-loading-cell {
    text-align: center;
    padding: 8px !important;
}

/* ==================== More options menu ==================== */
.atmp-subtask-more-dropdown {
    right: auto;
    left: -120px;
    min-width: 150px;
}

@media (max-width: 768px) {
    .atmp-subtask-meta {
        display: none;
    }

    .atmp-list-group-header {
        padding: 8px 12px;
    }

    .atmp-group-name {
        font-size: 13px;
    }

    .atmp-subtask-cell-title {
        padding-left: 4px !important;
    }
}

/* ==================== Quick Add Task ==================== */
.atmp-quick-add-wrap {
    padding: 10px 16px;
    border-top: 1px solid var(--hrmp-gray-100, #f3f4f6);
    background: rgba(248,250,252,0.5);
}

.atmp-quick-add-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px dashed var(--hrmp-gray-300, #cbd5e1);
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: var(--hrmp-gray-700, #374151);
    transition: all 0.2s ease;
    outline: none;
}

.atmp-quick-add-input::placeholder {
    color: var(--hrmp-gray-400, #9ca3af);
    font-style: italic;
}

.atmp-quick-add-input:focus {
    border-color: var(--hrmp-primary, #6366f1);
    border-style: solid;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.atmp-quick-add-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Confirm Dialog ==================== */
.atmp-confirm-overlay {
    z-index: 100010;
}

.atmp-confirm-dialog {
    max-width: 420px !important;
    border-radius: var(--hrmp-radius, 12px) !important;
}

.atmp-confirm-dialog .hrmp-modal-body {
    padding: 24px !important;
}

.atmp-confirm-message {
    font-size: 15px;
    color: var(--hrmp-gray-700, #374151);
    line-height: 1.6;
    margin: 0;
}

.atmp-confirm-dialog .hrmp-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hrmp-btn-danger,
.atmp-btn-danger {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
}

.hrmp-btn-danger:hover,
.atmp-btn-danger:hover {
    background: #dc2626 !important;
}

/* ==================== Row Quick Actions ==================== */
.atmp-col-actions {
    width: 100px;
    text-align: right;
}

.atmp-row-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.15s;
}

.atmp-list-row:hover .atmp-row-actions {
    opacity: 1;
}

.atmp-row-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--hrmp-gray-500, #6b7280);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.atmp-row-action-btn:hover {
    background: var(--hrmp-gray-100, #f3f4f6);
    color: var(--hrmp-gray-700, #374151);
}

.atmp-row-action-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ==================== Kanban Card Actions ==================== */
.atmp-kanban-card {
    position: relative;
}

.atmp-kanban-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 5;
}

.atmp-kanban-card:hover .atmp-kanban-card-actions {
    opacity: 1;
}

.atmp-kanban-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--hrmp-gray-500, #6b7280);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.atmp-kanban-card-more:hover {
    background: #fff;
    color: var(--hrmp-gray-800, #1f2937);
}

/* Kanban card menu dropdown */
.atmp-kanban-card-menu {
    position: absolute;
    top: 36px;
    right: 8px;
    z-index: 10001;
    background: #fff;
    border: 1.5px solid var(--hrmp-gray-200, #e5e7eb);
    border-radius: 12px;
    box-shadow: var(--hrmp-shadow-xl);
    min-width: 180px;
    padding: 4px 0;
    animation: atmpDropdownIn 0.15s ease;
}

.atmp-kanban-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--hrmp-gray-700, #374151);
    cursor: pointer;
    transition: background 0.1s;
}

.atmp-kanban-menu-item:hover {
    background: var(--hrmp-gray-50, #f9fafb);
}

.atmp-kanban-menu-danger {
    color: #ef4444;
}

.atmp-kanban-menu-danger:hover {
    background: #fef2f2;
}

.atmp-kanban-menu-divider {
    height: 1px;
    background: var(--hrmp-gray-100, #f3f4f6);
    margin: 4px 0;
}

.atmp-kanban-menu-label {
    padding: 4px 14px;
    font-size: 11px;
    color: var(--hrmp-gray-400, #9ca3af);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Kanban inline add */
.atmp-kanban-add-inline {
    padding: 8px;
    border-top: 1px solid var(--hrmp-gray-100, #f3f4f6);
}

.atmp-kanban-quick-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px dashed var(--hrmp-gray-200, #e5e7eb);
    border-radius: var(--hrmp-radius-sm, 8px);
    background: transparent;
    font-size: 13px;
    color: var(--hrmp-gray-700, #374151);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.atmp-kanban-quick-input:focus {
    border-color: var(--hrmp-primary, #4f46e5);
    border-style: solid;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

/* Kanban empty state improved */
.atmp-kanban-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    color: var(--hrmp-gray-300, #d1d5db);
    font-size: 13px;
}

/* ==================== Empty State Illustrated ==================== */
.atmp-empty-state-illustrated {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.atmp-empty-state-illustrated svg {
    margin-bottom: 16px;
    opacity: 0.6;
}

.atmp-empty-state-illustrated h3 {
    font-size: 18px;
    color: var(--hrmp-gray-700, #374151);
    margin: 0 0 8px;
    font-weight: 600;
}

.atmp-empty-state-illustrated p {
    font-size: 14px;
    color: var(--hrmp-gray-400, #9ca3af);
    margin: 0 0 20px;
    line-height: 1.5;
}

.atmp-empty-state-illustrated .atmp-btn {
    margin-top: 4px;
}

/* ==================== Keyboard Shortcuts Modal ==================== */
.atmp-shortcuts-modal {
    max-width: 380px !important;
}

.atmp-shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atmp-shortcut-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--hrmp-gray-600, #4b5563);
}

.atmp-shortcut-item kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    background: var(--hrmp-gray-100, #f3f4f6);
    border: 1px solid var(--hrmp-gray-200, #e5e7eb);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrmp-gray-700, #374151);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==================== Sidebar Badge ==================== */
.atmp-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--hrmp-gray-100);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hrmp-gray-500);
    margin-left: auto;
}

/* ==================== Task Detail Header Buttons ==================== */
.atmp-btn-icon-danger {
    color: var(--hrmp-gray-400, #9ca3af);
    transition: color 0.15s;
}

.atmp-btn-icon-danger:hover {
    color: #ef4444 !important;
}

/* ==================== Bulk Delete Button ==================== */
.atmp-bulk-bar .atmp-btn-danger {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==================== Animation ==================== */
@keyframes atmpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
