@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --primary-color: #58a6ff;
    --secondary-color: #161b22;
    --border-color: #30363d;
    --card-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-orange: #f17b5b;
    --accent-green: #1e7e34;
    --success: #238636;
    --danger: #cf222e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Dashboard Enhancements */
.dashboard-card {
    padding: 30px;
    height: 100%;
}

.stat-card {
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.dashboard-list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.dashboard-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-row:hover .team-initials {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
}

.team-row:hover .row-arrow {
    transform: translateX(5px);
    color: var(--primary-color) !important;
}

.team-initials {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.task-row {
    border-left: 4px solid transparent;
}

.status-border-todo { border-left-color: #8b949e; }
.status-border-in_progress { border-left-color: var(--primary-color); }
.status-border-done { border-left-color: #3fb950; }
.status-border-blocked { border-left-color: #f85149; }

.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill-todo { background: rgba(139, 148, 158, 0.1); color: #8b949e; border: 1px solid rgba(139, 148, 158, 0.2); }
.status-pill-in_progress { background: rgba(88, 166, 255, 0.1); color: var(--primary-color); border: 1px solid rgba(88, 166, 255, 0.2); }
.status-pill-done { background: rgba(63, 185, 80, 0.1); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.2); }
.status-pill-blocked { background: rgba(248, 81, 73, 0.1); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.2); }

/* Action Buttons */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #8b949e;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.2;
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Existing Typography */
h1,
h2,
h3 {
    color: #ffffff;
    font-weight: 400;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    background-color: #3182ce;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.5);
}

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

.container-full {
    width: 100%;
    padding: 0 20px;
}

.container-full.planner-full {
    padding: 0;
}

/* Navbar Styles */
.navbar {
    margin: 16px auto;
    width: calc(100% - 32px);
    max-width: 1400px;
    height: 72px;
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: sticky;
    top: 16px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    height: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link iconify-icon {
    font-size: 1.25rem;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(88, 166, 255, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Impersonation Selector */
.impersonation-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px 8px;
    gap: 8px;
    transition: border-color 0.2s;
}

.impersonation-container:focus-within {
    border-color: var(--primary-color);
}

.impersonation-search {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px;
    width: 140px;
    outline: none;
}

.impersonation-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 12px;
    cursor: pointer;
    outline: none;
    max-width: 200px;
    transition: background 0.2s;
}

.impersonation-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #a371f7);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    padding: 12px;
    display: none;
    z-index: 1001;
    animation: dropdownSlide 0.2s ease-out;
}

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

.user-menu.active .user-dropdown {
    display: block;
}

.dropdown-header {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-header-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.dropdown-header-email {
    font-size: 0.85rem;
    color: #8b949e;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-item iconify-icon {
    font-size: 1.2rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-header {
    padding: 8px 12px;
}

.dropdown-header-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.dropdown-header-email {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
}

/* Project Planner / Gantt Grid */
.planner-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.planner-header-actions {
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.planner-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.planner-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.planner-filter-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #8b949e;
    white-space: nowrap;
}

.planner-filter-select .multi-select-input {
    padding: 4px 6px;
    min-height: 30px;
}

.planner-filter-select .multi-input {
    min-width: 120px;
    font-size: 0.85rem;
    padding: 2px;
}

.planner-filter-select .selected-pill {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.gantt-grid-container {
    flex: 1;
    overflow: auto;
    position: relative;
}

.gantt-table {
    display: grid;
    grid-template-columns: minmax(var(--label-min, 360px), max-content) repeat(var(--day-count, 7), minmax(var(--cell-min, 36px), 1fr));
    min-width: 100%;
}

.gantt-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a1b26;
    display: contents;
    font-size: 0.845rem; /* Increased 30% from 0.65rem */
}

.month-header .header-cell {
    top: 0;
    height: 30px;
    padding: 6px 10px;
    font-size: 0.676rem; /* Increased 30% from 0.52rem */
    z-index: 12;
}

.day-header .header-cell {
    top: 30px;
    z-index: 11;
}

.month-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    text-align: center;
}

.header-cell {
    padding: 15px;
    border-right: 1px solid var(--glass-border);
    border-bottom: 2px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1b26;
    position: sticky;
    top: 0;
    z-index: 9;
}

.header-label {
    position: sticky;
    left: 0;
    z-index: 11;
    background: #1a1b26;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.884rem; /* Increased 30% from 0.68rem */
    color: var(--primary-color);
    border-right: 2px solid var(--glass-border);
    justify-content: flex-start;
    padding-left: 30px;
}

.gantt-row {
    display: contents;
}

.gantt-cell {
    padding: 10px;
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
    min-width: 0;
    /* allow shrinking */
}

.gantt-label-cell {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #1a1b26;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 400;
    border-right: 2px solid var(--glass-border);
    font-size: 0.78rem; /* Increased 30% from 0.6rem */
}

.label-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.label-text {
    font-weight: 400;
    white-space: normal;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    font-size: 0.78rem; /* Increased 30% from 0.6rem */
}

.row-actions {
    flex-shrink: 0;
}

.row-team .gantt-cell {
    background: rgba(77, 166, 255, 0.08);
    color: #4da6ff;
    font-weight: 400;
    border-bottom: 2px solid rgba(77, 166, 255, 0.2);
}

.row-project .gantt-cell {
    background: rgba(255, 255, 255, 0.03);
}

.row-resource .gantt-cell {
    background: transparent;
}

.gantt-table:hover .gantt-cell:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 6;
}

.row-hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.hour-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-size: 0.845rem; /* Increased 30% from 0.65rem */
    font-weight: 400;
    outline: none;
    cursor: text;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.cap-bar {
    z-index: 1;
}

.hour-input:focus {
    border-bottom: 2px solid var(--primary-color);
}

.cap-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-over {
    background: #ff4d4d;
    width: 100%;
    box-shadow: 0 0 15px #ff4d4d;
}

.status-at {
    background: #4dff88;
    width: 100%;
}

.status-under {
    background: #4da6ff;
    width: 50%;
    opacity: 0.7;
}

.weekend {
    background: rgba(0, 0, 0, 0.15) !important;
}

.expand-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.2s;
}

.expand-btn:hover {
    background: var(--primary-color);
    color: black;
}

.expanded .expand-btn {
    transform: rotate(90deg);
}

.day-num {
    font-size: 0.93rem; /* Increased 30% from 0.715rem */
    font-weight: 400;
}

.day-name {
    font-size: 0.59rem; /* Increased 30% from 0.455rem */
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 400;
}

.nav-btn {
    background: var(--primary-color);
    border: none;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.2s transform;
}

.nav-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.planner-wrapper.compact .gantt-cell {
    padding: 3px;
}
.planner-wrapper.compact .hour-input {
    font-size: 0.76rem; /* Increased 30% from 0.585rem */
}
.planner-wrapper.compact .header-cell {
    padding: 4px;
}
.planner-wrapper.compact .day-num {
    font-size: 0.76rem; /* Increased 30% from 0.585rem */
}
.planner-wrapper.compact .gantt-label-cell {
    font-size: 0.59rem; /* Increased 30% from 0.455rem */
}
.planner-wrapper.compact .expand-btn {
    width: 18px;
    height: 18px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.resource-card {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.resource-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.resource-handle {
    font-size: 1.1rem;
    font-weight: 400;
}

.resource-type {
    color: #8b949e;
    font-size: 0.85rem;
}

.resource-actions {
    display: flex;
    gap: 10px;
}

.btn-danger-outline {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.multi-select {
    position: relative;
}

.multi-select-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.multi-input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    flex: 1;
    min-width: 160px;
    padding: 6px;
}

.selected-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.35);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.selected-pill button {
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.multi-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #111827; /* System color matched to modal-card */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 1000; /* Increased z-index to ensure visibility */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.multi-dropdown.open {
    display: block;
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dropdown-item.active,
.dropdown-item:hover {
    background: #1e293b; /* Solid background for hover/active */
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-backdrop.open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    background: #111827;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* New UI Enhancements */
.action-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.52rem; /* Increased 30% from 0.4rem */
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.455rem; /* Increased 30% from 0.35rem */
    padding: 1px 2px;
}

.action-link:hover {
    color: var(--primary-color);
}

.action-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.52rem; /* Increased 30% from 0.4rem */
    cursor: pointer;
    transition: all 0.2s;
}

.action-icon-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-icon-btn.action-icon-danger {
    color: var(--danger);
    border-color: rgba(207, 34, 46, 0.35);
}

.action-icon-btn.action-icon-danger:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.action-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem; /* Increased 30% from 0.5rem */
    padding: 0 2px;
}

.action-icon-link:hover {
    color: var(--primary-color);
}

.action-icon-symbol {
    font-size: 0.585rem; /* Increased 30% from 0.45rem */
    line-height: 1;
}

.action-icon-label {
    font-size: 0.455rem; /* Increased 30% from 0.35rem */
    letter-spacing: 0.5px;
}

.action-icon {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 0.52rem; /* Increased 30% from 0.4rem */
    cursor: pointer;
    padding: 0 2px;
}

.action-icon:hover {
    color: #ff6b6b;
}

.new-item-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.78rem; /* Increased 30% from 0.6rem */
    line-height: 1.2;
    outline: none;
}

.new-item-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.new-item-input:focus {
    border-color: var(--primary-color);
}

.aggregated-hours {
    font-size: 0.59rem; /* Increased 30% from 0.455rem */
    color: #8b949e;
    font-weight: 400;
}

/* Dashboard styles */
.dashboard-list-item {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
}

.dashboard-list-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.dashboard-task-item {
    border-left: 4px solid var(--primary-color);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header-nav {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.page-header-title {
    margin-bottom: 5px;
}

.page-header-description {
    color: #8b949e;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
}

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

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

/* Task Grid & Cards */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.task-card {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

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

.task-card-title {
    font-size: 1.1rem;
}

.task-card-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--secondary-color);
    color: var(--primary-color);
}

.task-card-description {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 20px;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-card-assignee {
    font-size: 0.8rem;
    color: #8b949e;
}

.task-card-edit-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.no-tasks-message {
    text-align: center;
    padding: 40px;
    color: #8b949e;
}

/* Resources */
.project-resources-header {
    margin-bottom: 20px;
}

.selected-resources-list {
    list-style: none;
    padding: 0;
}

.selected-resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.resource-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.8rem;
}

/* Floating Timer Modal (Archived) */

.remove-resource-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

.no-resources-message {
    color: #8b949e;
}

.resource-autocomplete-wrapper {
    margin-top: 20px;
    position: relative;
}

.resource-autocomplete-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
    color: white;
}

.resource-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color, #0d1117); /* Fallback if var not defined */
    background-color: #0d1117; /* Explicit fallback */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 100%;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:hover {
    background: rgba(255,255,255,0.1);
}

.back-link-wrapper {
    margin-top: 40px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* Team Detail Styles */
.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

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

.project-card {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.project-card-title {
    margin-bottom: 10px;
}

.project-card-description {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 20px;
}

.project-card-link {
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.no-projects-message {
    text-align: center;
    padding: 40px;
    color: #8b949e;
}

.team-members-list {
    list-style: none;
}

.team-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.8rem;
}
