/* HR Management Portal - Frontend Styles */

:root {
    --hrmp-primary: #6366f1;
    --hrmp-primary-hover: #4f46e5;
    --hrmp-primary-light: rgba(99, 102, 241, 0.08);
    --hrmp-primary-glow: rgba(99, 102, 241, 0.25);
    --hrmp-success: #10b981;
    --hrmp-warning: #f59e0b;
    --hrmp-danger: #ef4444;
    --hrmp-info: #3b82f6;
    --hrmp-gray-50: #f8fafc;
    --hrmp-gray-100: #f1f5f9;
    --hrmp-gray-200: #e2e8f0;
    --hrmp-gray-300: #cbd5e1;
    --hrmp-gray-400: #94a3b8;
    --hrmp-gray-500: #64748b;
    --hrmp-gray-600: #475569;
    --hrmp-gray-700: #334155;
    --hrmp-gray-800: #1e293b;
    --hrmp-gray-900: #0f172a;
    --hrmp-radius: 14px;
    --hrmp-radius-sm: 10px;
    --hrmp-radius-xs: 6px;
    --hrmp-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --hrmp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --hrmp-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.04);
    --hrmp-shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -6px rgba(0,0,0,0.06);
    --hrmp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
.hrmp-portal *, .hrmp-portal *::before, .hrmp-portal *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hrmp-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--hrmp-gray-700);
    -webkit-font-smoothing: antialiased;
}

/* Login */
.hrmp-login-prompt {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--hrmp-gray-50);
    border-radius: var(--hrmp-radius);
}

.hrmp-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--hrmp-shadow-lg);
}

.hrmp-login-icon {
    width: 72px;
    height: 72px;
    background: var(--hrmp-primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.hrmp-login-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    margin-bottom: 8px;
}

.hrmp-login-card p {
    color: var(--hrmp-gray-500);
    margin-bottom: 32px;
    font-size: 15px;
}

/* Buttons */
.hrmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--hrmp-radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}

.hrmp-btn-primary {
    background: var(--hrmp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.hrmp-btn-primary:hover {
    background: var(--hrmp-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    color: #fff;
    text-decoration: none;
}

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

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

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

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

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

/* Layout */
.hrmp-layout {
    display: flex;
    min-height: 100vh;
    background: var(--hrmp-gray-50);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--hrmp-gray-200);
}

/* Sidebar - Light theme */
.hrmp-sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid var(--hrmp-gray-200);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.hrmp-sidebar-logo {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--hrmp-gray-200);
    margin-bottom: 8px;
}

.hrmp-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--hrmp-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrmp-sidebar-logo span {
    font-size: 17px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    letter-spacing: -0.3px;
}

/* Navigation */
.hrmp-nav {
    flex: 1;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.hrmp-nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hrmp-gray-400);
    padding: 16px 14px 6px;
    margin-top: 4px;
}

.hrmp-nav-section-label:first-child {
    margin-top: 0;
    padding-top: 8px;
}

.hrmp-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--hrmp-gray-600);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
    position: relative;
}

.hrmp-nav-item svg {
    opacity: 0.6;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.hrmp-nav-item:hover {
    background: var(--hrmp-gray-100);
    color: var(--hrmp-gray-800);
}

.hrmp-nav-item:hover svg {
    opacity: 1;
}

.hrmp-nav-item.active {
    background: var(--hrmp-primary-light);
    color: var(--hrmp-primary);
    font-weight: 600;
}

.hrmp-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--hrmp-primary);
    border-radius: 0 3px 3px 0;
}

.hrmp-nav-item.active svg {
    stroke: var(--hrmp-primary);
    opacity: 1;
}

/* Parent nav item open state */
.hrmp-nav-parent.open {
    background: var(--hrmp-gray-50);
    color: var(--hrmp-gray-800);
}

.hrmp-nav-parent.open svg {
    opacity: 0.9;
}

.hrmp-nav-arrow {
    margin-left: auto;
    opacity: 0.4;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.hrmp-nav-item.active .hrmp-nav-arrow,
.hrmp-nav-parent.open .hrmp-nav-arrow {
    opacity: 0.7;
    transform: rotate(180deg);
}

/* Sidebar Submenu */
.hrmp-sidebar .hrmp-nav-submenu {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    list-style: none !important;
    float: none !important;
    position: static !important;
}

.hrmp-sidebar .hrmp-nav-submenu.open {
    max-height: 120px !important;
    padding: 2px 6px 6px 6px !important;
}

.hrmp-sidebar .hrmp-nav-submenu .hrmp-nav-sub-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 7px 12px 7px 40px !important;
    margin: 1px 0 !important;
    border-radius: 6px !important;
    border: none !important;
    background: none !important;
    color: var(--hrmp-gray-500) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100% !important;
    text-align: left !important;
    position: relative;
    box-sizing: border-box !important;
    float: none !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    max-width: none !important;
    outline: none !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.hrmp-sidebar .hrmp-nav-sub-item svg {
    opacity: 0.5;
    flex-shrink: 0;
    width: 15px !important;
    height: 15px !important;
    transition: opacity 0.15s ease;
    display: inline-block !important;
}

.hrmp-sidebar .hrmp-nav-sub-item span {
    display: inline !important;
    float: none !important;
}

.hrmp-sidebar .hrmp-nav-sub-item:hover {
    background: var(--hrmp-gray-100) !important;
    color: var(--hrmp-gray-700) !important;
}

.hrmp-sidebar .hrmp-nav-sub-item:hover svg {
    opacity: 0.8;
}

.hrmp-sidebar .hrmp-nav-sub-item.active {
    color: var(--hrmp-primary) !important;
    background: var(--hrmp-primary-light) !important;
    font-weight: 600 !important;
}

.hrmp-sidebar .hrmp-nav-sub-item.active svg {
    stroke: var(--hrmp-primary) !important;
    opacity: 1;
}

.hrmp-sidebar .hrmp-nav-sub-item.active::before {
    display: none;
}

/* User Section */
.hrmp-sidebar-user {
    padding: 14px;
    border-top: 1px solid var(--hrmp-gray-200);
}

.hrmp-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--hrmp-gray-50);
    border-radius: 10px;
    margin-bottom: 8px;
}

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

.hrmp-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.hrmp-user-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrmp-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hrmp-user-role {
    display: block;
    font-size: 11px;
    color: var(--hrmp-gray-400);
    text-transform: capitalize;
}

.hrmp-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--hrmp-gray-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s ease;
    width: 100%;
}

.hrmp-logout-btn svg {
    opacity: 0.5;
}

.hrmp-logout-btn:hover {
    background: #fef2f2;
    color: var(--hrmp-danger);
    text-decoration: none;
}

.hrmp-logout-btn:hover svg {
    stroke: var(--hrmp-danger);
    opacity: 1;
}

/* Main Content */
.hrmp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

/* Header */
.hrmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid var(--hrmp-gray-200);
}

.hrmp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hrmp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--hrmp-gray-600);
    border-radius: 8px;
}

.hrmp-mobile-toggle:hover {
    background: var(--hrmp-gray-100);
}

.hrmp-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    text-transform: capitalize;
    letter-spacing: -0.3px;
}

.hrmp-page-subtitle {
    color: var(--hrmp-gray-400);
    font-size: 13px;
    margin-top: 2px;
}

.hrmp-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.hrmp-search-box svg {
    position: absolute;
    left: 12px;
    color: var(--hrmp-gray-400);
    pointer-events: none;
}

.hrmp-search-box input {
    padding: 9px 14px 9px 38px;
    background: var(--hrmp-gray-50);
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 10px;
    font-size: 13px;
    width: 240px;
    color: var(--hrmp-gray-800);
    outline: none;
    transition: all var(--hrmp-transition);
}

.hrmp-search-box input:focus {
    background: #fff;
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 3px var(--hrmp-primary-light);
}

/* Content */
.hrmp-content {
    flex: 1;
    padding: 24px 32px 32px;
}

/* Loading */
.hrmp-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.hrmp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hrmp-gray-200);
    border-top-color: var(--hrmp-primary);
    border-radius: 50%;
    animation: hrmpSpin 0.7s linear infinite;
}

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

/* Stats Grid */
.hrmp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.hrmp-stat-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    padding: 24px;
    border: 1px solid var(--hrmp-gray-200);
    box-shadow: var(--hrmp-shadow);
    transition: transform 0.2s;
}

.hrmp-stat-card:hover {
    transform: translateY(-2px);
}

.hrmp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.hrmp-stat-icon svg { stroke: #fff; }
.hrmp-stat-blue .hrmp-stat-icon { background: var(--hrmp-info); }
.hrmp-stat-amber .hrmp-stat-icon { background: var(--hrmp-warning); }
.hrmp-stat-green .hrmp-stat-icon { background: var(--hrmp-success); }

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

.hrmp-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    line-height: 1.2;
    margin-top: 4px;
}

/* Dashboard Grid */
.hrmp-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* Cards */
.hrmp-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    border: 1px solid var(--hrmp-gray-200);
    box-shadow: var(--hrmp-shadow);
    overflow: hidden;
}

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

.hrmp-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
}

.hrmp-card-header a {
    color: var(--hrmp-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.hrmp-card-body {
    padding: 0;
}

.hrmp-card-body-padded {
    padding: 20px;
}

/* Task List Item */
.hrmp-task-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    transition: background 0.2s;
}

.hrmp-task-list-item:hover {
    background: var(--hrmp-gray-50);
}

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

.hrmp-task-list-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.hrmp-task-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hrmp-task-dot-completed { background: var(--hrmp-success); }
.hrmp-task-dot-in-progress { background: var(--hrmp-warning); }
.hrmp-task-dot-todo { background: var(--hrmp-gray-300); }

.hrmp-task-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--hrmp-gray-900);
}

.hrmp-task-info p {
    font-size: 13px;
    color: var(--hrmp-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.hrmp-task-list-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hrmp-status-select {
    padding: 5px 28px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--hrmp-gray-100);
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: 20px;
    color: var(--hrmp-gray-700);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' 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");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: all var(--hrmp-transition);
}

.hrmp-status-select:hover {
    border-color: var(--hrmp-gray-300);
    background-color: #fff;
}

.hrmp-status-select:focus {
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 3px var(--hrmp-primary-light);
}

/* Badge */
.hrmp-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.hrmp-badge-completed { background: #d1fae5; color: #065f46; }
.hrmp-badge-in-progress { background: #fef3c7; color: #92400e; }
.hrmp-badge-todo { background: var(--hrmp-gray-100); color: var(--hrmp-gray-600); }
.hrmp-badge-pending { background: #f3f4f6; color: #374151; }
.hrmp-badge-review { background: #ede9fe; color: #5b21b6; }
.hrmp-badge-cancelled { background: #fee2e2; color: #991b1b; }
.hrmp-badge-active { background: #d1fae5; color: #065f46; }
.hrmp-badge-high { background: #fee2e2; color: #991b1b; }
.hrmp-badge-medium { background: #fef3c7; color: #92400e; }
.hrmp-badge-low { background: #dbeafe; color: #1e40af; }

/* Procedure Sidebar Item */
.hrmp-proc-sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--hrmp-gray-100);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.hrmp-proc-sidebar-item:hover {
    border-color: var(--hrmp-primary);
    background: #eef2ff;
}

.hrmp-proc-sidebar-item.active {
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 1px var(--hrmp-primary);
    background: #fff;
}

.hrmp-proc-sidebar-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
}

.hrmp-proc-sidebar-item p {
    font-size: 12px;
    color: var(--hrmp-gray-500);
    margin-top: 4px;
}

/* Manage Procedures Button */
.hrmp-manage-procs-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed var(--hrmp-primary);
    background: none;
    color: var(--hrmp-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.hrmp-manage-procs-btn:hover {
    background: #eef2ff;
}

/* Procedure Detail */
.hrmp-proc-detail {
    background: #fff;
    border-radius: var(--hrmp-radius);
    border: 1px solid var(--hrmp-gray-200);
    padding: 32px;
}

.hrmp-proc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
}

.hrmp-proc-detail h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
    margin-bottom: 6px;
}

.hrmp-proc-detail .hrmp-proc-meta {
    font-size: 14px;
    color: var(--hrmp-gray-500);
}

.hrmp-proc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hrmp-proc-action-btn {
    background: none;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: var(--hrmp-gray-500);
    transition: all 0.2s;
}

.hrmp-proc-action-btn:hover {
    border-color: var(--hrmp-primary);
    color: var(--hrmp-primary);
    background: #eef2ff;
}

/* Procedure Content Sections */
.hrmp-proc-section {
    margin-bottom: 24px;
}

.hrmp-proc-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hrmp-gray-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hrmp-gray-100);
}

.hrmp-proc-text p {
    color: var(--hrmp-gray-700);
    line-height: 1.7;
    font-size: 15px;
}

.hrmp-proc-links {
    list-style: none;
    padding: 0;
}

.hrmp-proc-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.hrmp-proc-links li:last-child { border-bottom: none; }

.hrmp-proc-links a {
    color: var(--hrmp-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.hrmp-proc-links a:hover { color: var(--hrmp-primary-hover); text-decoration: underline; }

.hrmp-proc-list {
    list-style: none;
    padding: 0;
}

.hrmp-proc-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--hrmp-gray-700);
    font-size: 15px;
}

.hrmp-proc-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hrmp-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 15px;
}

.hrmp-proc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: var(--hrmp-radius-sm);
    overflow: hidden;
    border: 1px solid var(--hrmp-gray-200);
}

.hrmp-proc-table th {
    background: var(--hrmp-gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--hrmp-gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--hrmp-gray-200);
}

.hrmp-proc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    color: var(--hrmp-gray-700);
}

.hrmp-proc-table tr:last-child td { border-bottom: none; }
.hrmp-proc-table tr:hover td { background: var(--hrmp-gray-50); }

/* Procedure Empty View */
.hrmp-proc-empty {
    background: #fff;
    border-radius: var(--hrmp-radius);
    border: 2px dashed var(--hrmp-gray-200);
    padding: 60px 20px;
    text-align: center;
}

.hrmp-proc-empty svg {
    margin-bottom: 16px;
    color: var(--hrmp-gray-300);
}

.hrmp-proc-empty p {
    color: var(--hrmp-gray-500);
    font-size: 15px;
}

/* Task Cards Grid */
.hrmp-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.hrmp-tasks-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.hrmp-tasks-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hrmp-task-layout-switch {
    display: inline-flex;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.hrmp-layout-btn {
    border: none;
    background: transparent;
    color: var(--hrmp-gray-600);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hrmp-layout-btn:hover {
    background: var(--hrmp-gray-100);
    color: var(--hrmp-gray-800);
}

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

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

.hrmp-task-card {
    background: #fff;
    border-radius: var(--hrmp-radius);
    border: 1px solid var(--hrmp-gray-200);
    padding: 22px;
    box-shadow: var(--hrmp-shadow);
    transition: all var(--hrmp-transition);
    position: relative;
    overflow: hidden;
}

.hrmp-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hrmp-primary), #818cf8);
    opacity: 0;
    transition: opacity var(--hrmp-transition);
}

.hrmp-task-card:hover {
    box-shadow: var(--hrmp-shadow-md);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
}

.hrmp-task-card:hover::before {
    opacity: 1;
}

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

.hrmp-task-card-actions {
    display: flex;
    gap: 4px;
}

.hrmp-task-card-actions button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--hrmp-gray-400);
    border-radius: 6px;
    transition: all 0.2s;
}

.hrmp-task-card-actions button:hover {
    color: var(--hrmp-primary);
    background: var(--hrmp-gray-100);
}

.hrmp-task-card-actions button.delete-btn:hover {
    color: var(--hrmp-danger);
    background: #fef2f2;
}

.hrmp-task-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrmp-gray-900);
    margin-bottom: 8px;
}

.hrmp-task-card p {
    font-size: 14px;
    color: var(--hrmp-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.hrmp-task-card-footer span {
    font-size: 12px;
    color: var(--hrmp-gray-400);
}

/* Task List Layout */
.hrmp-task-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrmp-task-list-row {
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hrmp-task-list-row:hover {
    box-shadow: var(--hrmp-shadow-md);
    transform: translateY(-1px);
}

.hrmp-task-list-row-main {
    min-width: 0;
    flex: 1;
}

.hrmp-task-list-row-main h4 {
    font-size: 16px;
    color: var(--hrmp-gray-900);
    font-weight: 700;
    margin-bottom: 6px;
}

.hrmp-task-list-row-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.hrmp-task-context {
    color: var(--hrmp-gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hrmp-task-list-row-side {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.hrmp-task-list-row-meta {
    font-size: 12px;
    color: var(--hrmp-gray-500);
}

/* Task Table Layout */
.hrmp-task-table-wrap {
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius);
    box-shadow: var(--hrmp-shadow);
    overflow-x: auto;
}

.hrmp-task-table-view {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.hrmp-task-table-view th {
    background: var(--hrmp-gray-50);
    color: var(--hrmp-gray-600);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--hrmp-gray-200);
}

.hrmp-task-table-view td {
    padding: 12px;
    border-bottom: 1px solid var(--hrmp-gray-100);
    color: var(--hrmp-gray-700);
    vertical-align: top;
}

.hrmp-task-table-view tbody tr:last-child td {
    border-bottom: none;
}

.hrmp-task-table-row {
    cursor: pointer;
    transition: background 0.2s;
}

.hrmp-task-table-row:hover {
    background: var(--hrmp-gray-50);
}

.hrmp-task-context-cell {
    max-width: 340px;
    color: var(--hrmp-gray-600);
    font-size: 13px;
    line-height: 1.45;
}

/* Procedures Layout */
.hrmp-procedures-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Modals */
.hrmp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hrmp-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--hrmp-shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    animation: hrmpModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hrmp-modal-large { max-width: 800px; }
.hrmp-modal-xl { max-width: 900px; }

@keyframes hrmpModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.hrmp-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--hrmp-gray-900);
}

.hrmp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 8px;
    transition: all 0.2s;
}

.hrmp-modal-close:hover {
    color: var(--hrmp-gray-700);
    background: var(--hrmp-gray-100);
}

.hrmp-modal-body { padding: 28px; }
.hrmp-modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--hrmp-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Forms */
.hrmp-form-group {
    margin-bottom: 18px;
}

.hrmp-form-group label {
    display: block;
    font-weight: 600;
    color: var(--hrmp-gray-700);
    margin-bottom: 6px;
    font-size: 14px;
}

.hrmp-form-group .required { color: var(--hrmp-danger); }

.hrmp-form-group input[type="text"],
.hrmp-form-group input[type="number"],
.hrmp-form-group input[type="url"],
.hrmp-form-group input[type="date"],
.hrmp-form-group select,
.hrmp-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius-sm);
    font-size: 14px;
    color: var(--hrmp-gray-800);
    transition: all var(--hrmp-transition);
    background: #fff;
    font-family: inherit;
}

.hrmp-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.hrmp-form-group input:focus,
.hrmp-form-group select:focus,
.hrmp-form-group textarea:focus {
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 3px var(--hrmp-primary-light);
    outline: none;
}

.hrmp-form-group input::placeholder,
.hrmp-form-group textarea::placeholder {
    color: var(--hrmp-gray-400);
}

.hrmp-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hrmp-col-3 { flex: 0 0 calc(25% - 12px); }
.hrmp-col-4 { flex: 0 0 calc(33.33% - 11px); }
.hrmp-col-6 { flex: 0 0 calc(50% - 8px); }
.hrmp-col-8 { flex: 0 0 calc(66.66% - 6px); }

/* Content Builder */
.hrmp-content-builder {
    border: 2px dashed var(--hrmp-gray-300);
    border-radius: var(--hrmp-radius);
    padding: 16px;
    background: var(--hrmp-gray-50);
}

.hrmp-builder-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hrmp-builder-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--hrmp-gray-300);
    border-radius: var(--hrmp-radius-sm);
    background: #fff;
    color: var(--hrmp-gray-700);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hrmp-builder-btn:hover {
    border-color: var(--hrmp-primary);
    color: var(--hrmp-primary);
    background: #eef2ff;
}

.hrmp-builder-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hrmp-builder-section {
    background: #fff;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: var(--hrmp-radius-sm);
    padding: 16px;
}

.hrmp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hrmp-gray-100);
}

.hrmp-section-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hrmp-primary);
}

.hrmp-section-remove {
    background: none;
    border: none;
    color: var(--hrmp-gray-400);
    cursor: pointer;
    padding: 2px;
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
}

.hrmp-section-remove:hover {
    color: var(--hrmp-danger);
    background: #fef2f2;
}

.hrmp-section-title-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hrmp-section-title-input:focus {
    border-color: var(--hrmp-primary);
    outline: none;
}

.hrmp-link-items, .hrmp-list-items { display: flex; flex-direction: column; gap: 8px; }
.hrmp-link-item, .hrmp-list-item { display: flex; gap: 8px; align-items: center; }
.hrmp-link-item input, .hrmp-list-item input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--hrmp-gray-200);
    border-radius: 6px; font-size: 13px;
}
.hrmp-link-item input:focus, .hrmp-list-item input:focus { border-color: var(--hrmp-primary); outline: none; }

.hrmp-item-remove {
    background: none; border: none; color: var(--hrmp-gray-400);
    cursor: pointer; padding: 4px; font-size: 16px; flex-shrink: 0;
}
.hrmp-item-remove:hover { color: var(--hrmp-danger); }

.hrmp-add-item-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border: 1px dashed var(--hrmp-gray-300);
    border-radius: 6px; background: none; color: var(--hrmp-primary);
    font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 6px;
}
.hrmp-add-item-btn:hover { border-color: var(--hrmp-primary); background: #eef2ff; }

.hrmp-table-builder { overflow-x: auto; }
.hrmp-table-builder table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hrmp-table-builder th, .hrmp-table-builder td { border: 1px solid var(--hrmp-gray-200); padding: 0; }
.hrmp-table-builder input { width: 100%; padding: 8px 10px; border: none; font-size: 13px; background: transparent; }
.hrmp-table-builder input:focus { background: #eef2ff; outline: none; }
.hrmp-table-builder th input { font-weight: 600; background: var(--hrmp-gray-50); }
.hrmp-table-controls { display: flex; gap: 8px; margin-top: 8px; }

.hrmp-builder-hint {
    text-align: center;
    color: var(--hrmp-gray-400);
    font-size: 13px;
    margin: 12px 0 0;
    font-style: italic;
}

/* Filter Buttons */
.hrmp-task-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hrmp-filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 20px;
    background: #fff;
    color: var(--hrmp-gray-600);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Toast */
.hrmp-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: var(--hrmp-radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    z-index: 100001;
    animation: hrmpModalIn 0.3s ease;
    box-shadow: var(--hrmp-shadow-md);
}

.hrmp-toast-success { background: var(--hrmp-success); }
.hrmp-toast-error { background: var(--hrmp-danger); }

/* Empty State */
.hrmp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--hrmp-gray-400);
}

.hrmp-empty p { font-size: 15px; margin-top: 12px; }

/* ==================== View Switcher Tabs ==================== */
.atmp-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--hrmp-gray-100);
    border: 1px solid var(--hrmp-gray-200);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}

.atmp-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--hrmp-gray-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.atmp-view-tab svg {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.atmp-view-tab:hover {
    color: var(--hrmp-gray-700);
    background: rgba(255,255,255,0.7);
}

.atmp-view-tab:hover svg {
    opacity: 0.8;
}

.atmp-view-tab.active {
    background: #fff;
    color: var(--hrmp-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.atmp-view-tab.active svg {
    stroke: var(--hrmp-primary);
    opacity: 1;
}

/* ==================== Task View Header ==================== */
.atmp-task-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.atmp-task-view-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.atmp-task-view-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .hrmp-sidebar { display: none; }
    .hrmp-sidebar.open { display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: 99999; box-shadow: var(--hrmp-shadow-xl); width: 250px; background: #fff; }
    .hrmp-mobile-toggle { display: block; }
    .hrmp-stats-grid { grid-template-columns: 1fr; }
    .hrmp-dashboard-grid { grid-template-columns: 1fr; }
    .hrmp-procedures-layout { grid-template-columns: 1fr; }
    .hrmp-tasks-grid { grid-template-columns: 1fr; }
    .hrmp-header { padding: 16px 20px; }
    .hrmp-content { padding: 16px 20px 20px; }
    .hrmp-search-box input { width: 180px; }
    .hrmp-col-3, .hrmp-col-4, .hrmp-col-6, .hrmp-col-8 { flex: 0 0 100%; }
    .hrmp-task-list-row { flex-direction: column; }
    .hrmp-task-list-row-side { min-width: 0; width: 100%; align-items: flex-start; }
    .atmp-view-switcher { overflow-x: auto; }
    .atmp-task-view-header { flex-direction: column; align-items: stretch; }
}

@media (max-width: 600px) {
    .hrmp-search-box { display: none; }
    .hrmp-proc-detail { padding: 20px; }
    .hrmp-proc-detail h2 { font-size: 22px; }
    .atmp-view-tab span { display: none; }
    .atmp-view-tab { padding: 9px 14px; }
}

/* ==================== Task Labels ==================== */

.hrmp-task-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.hrmp-label-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.hrmp-labels-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}

.hrmp-label-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    user-select: none;
}

.hrmp-label-option:hover {
    border-color: var(--label-color, #6366f1);
}

.hrmp-label-option.selected {
    border-color: var(--label-color, #6366f1);
    background: color-mix(in srgb, var(--label-color, #6366f1) 10%, white);
}

.hrmp-label-option input[type="checkbox"] {
    display: none;
}

.hrmp-label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hrmp-add-label-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1.5px dashed #d1d5db;
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #9ca3af;
    transition: all 0.15s;
}

.hrmp-add-label-btn:hover {
    border-color: var(--hrmp-primary);
    color: var(--hrmp-primary);
}

/* ==================== User Select ==================== */

.hrmp-user-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    appearance: auto;
    cursor: pointer;
    transition: border-color 0.15s;
}

.hrmp-user-select:focus {
    outline: none;
    border-color: var(--hrmp-primary);
    box-shadow: 0 0 0 3px var(--hrmp-primary-light);
}

/* ==================== Progress Bar ==================== */

.hrmp-subtask-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.hrmp-progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.hrmp-progress-bar-lg {
    height: 8px;
}

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

.hrmp-progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

/* ==================== Task Detail Modal ==================== */

.hrmp-task-detail {
    padding: 24px 28px;
    overflow-y: auto;
    height: 100%;
}

.hrmp-task-detail-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hrmp-task-detail-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hrmp-task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 24px;
}

.hrmp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.hrmp-meta-item svg {
    flex-shrink: 0;
}

/* ==================== Subtasks ==================== */

.hrmp-detail-section {
    margin-bottom: 24px;
}

.hrmp-detail-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 12px;
}

.hrmp-subtask-progress-bar {
    margin-bottom: 12px;
}

.hrmp-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hrmp-subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    transition: background 0.15s;
}

.hrmp-subtask-item:hover {
    background: #f3f4f6;
}

.hrmp-subtask-item.completed {
    opacity: 0.6;
}

.hrmp-subtask-item.completed .hrmp-subtask-title {
    text-decoration: line-through;
    color: #9ca3af;
}

.hrmp-subtask-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

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

.hrmp-subtask-title {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.hrmp-subtask-assignee {
    font-size: 11px;
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.hrmp-subtask-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.hrmp-subtask-delete:hover {
    color: #ef4444;
}

.hrmp-add-subtask-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.hrmp-subtask-input {
    flex: 1;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s;
}

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

.hrmp-btn-sm {
    padding: 6px 16px !important;
    font-size: 13px !important;
}

/* ==================== Comments ==================== */

.hrmp-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrmp-comment-item {
    display: flex;
    gap: 10px;
}

.hrmp-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrmp-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hrmp-comment-body {
    flex: 1;
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 14px;
}

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

.hrmp-comment-header strong {
    font-size: 13px;
    color: #111827;
}

.hrmp-comment-header span {
    font-size: 11px;
    color: #9ca3af;
}

.hrmp-comment-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    font-size: 16px;
    padding: 0;
    margin-left: auto;
    line-height: 1;
    transition: color 0.15s;
}

.hrmp-comment-delete:hover {
    color: #ef4444;
}

.hrmp-comment-body p {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.hrmp-add-comment-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: flex-end;
}

.hrmp-comment-input {
    flex: 1;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
}

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

.hrmp-empty-subtle {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 13px;
}

/* ==================== Overdue / Due Date ==================== */

.hrmp-task-overdue {
    border-left: 3px solid #ef4444;
}

.hrmp-overdue-text {
    color: #ef4444 !important;
    font-weight: 600;
}

.hrmp-due-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.hrmp-assignee-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #eef2ff;
    border-radius: 12px;
    color: #4338ca;
    font-weight: 500;
    white-space: nowrap;
}

.hrmp-task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hrmp-task-card-user {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.hrmp-task-card-user svg {
    color: var(--hrmp-primary);
}

/* ==================== Google Sign-In ==================== */

#hrmp-google-signin-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ==================== Task Card Clickable ==================== */

.hrmp-task-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.hrmp-task-list-item {
    cursor: pointer;
    transition: background 0.15s;
}

.hrmp-task-list-item:hover {
    background: #f9fafb;
    border-radius: 8px;
}
