
/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* Custom button color classes (standard CSS) */
.btn-blue {
	background-color: #2563eb;
	color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}
.btn-blue:hover {
	background-color: #1d4ed8;
}
.btn-green {
	background-color: #16a34a;
	color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}
.btn-green:hover {
	background-color: #15803d;
}
.btn-red {
	background-color: #dc2626;
	color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}
.btn-red:hover {
	background-color: #b91c1c;
}

/* Profile hover effects */
.user-info {
    position: relative;
    overflow: visible;
}

.user-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-info .logout-btn-container {
    z-index: 1000;
}

.user-info:hover .logout-btn-container {
    animation: slideInRight 0.2s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating logout button effects */
.floating-logout-btn {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.floating-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Profile picture glow effect */
.user-info .w-8.h-8 {
    transition: all 0.2s ease-in-out;
}

.user-info:hover .w-8.h-8 {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-yellow {
	background-color: #eab308;
	color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}
.btn-yellow:hover {
	background-color: #ca8a04;
}
.btn-gray {
	background-color: #6b7280;
	color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
	border-radius: 0.375rem;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}
.btn-gray:hover {
	background-color: #4b5563;
}

/* Scrolling Animation Styles */
.scroll-container {
    position: relative;
    overflow: hidden;
}

.animate-scroll-horizontal {
    animation: scroll-horizontal 180s linear infinite;
    display: inline-block;
    white-space: nowrap;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ensure smooth scrolling performance */
.animate-scroll-horizontal {
    will-change: transform;
}

/* Optional: Pause animation on hover */
.scroll-container:hover .animate-scroll-horizontal {
    animation-play-state: paused;
}

/* Navigation consistency fixes */
nav a {
    transition: background-color 0.2s ease-in-out;
    box-sizing: border-box;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

/* Prevent layout shifts on navigation hover/active states */
aside {
    min-width: 12rem; /* w-48 equivalent */
}

@media (min-width: 1024px) {
    aside {
        min-width: 13rem; /* lg:w-52 equivalent */
    }
}

/* Custom classes for replaced inline styles */
.status-bar-width {
    width: 88%;
}

.progress-bar-zero {
    width: 0%;
}

.max-content-height {
    max-height: calc(90vh - 120px);
}

/* Utility class for hidden elements */
.hidden-element {
    display: none;
}

/* Prevent flash of content during authentication check */
html:not(.auth-checked) body.auth-loading {
    visibility: hidden;
}

html.auth-checked body.auth-loading,
body.auth-checked {
    visibility: visible;
}

/* Tasklist page styles */
.tasklist-page {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 10% 10%, #fef3c7 0%, #f8fafc 45%, #e0f2fe 100%);
}

.tasklist-hero {
    background: linear-gradient(120deg, #e0f2fe 0%, #fef9c3 55%, #fde68a 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 1rem;
    margin-bottom: 1rem;
}

.tasklist-hero h2 {
    font-size: 1.75rem;
}

.tasklist-hero p {
    font-size: 0.95rem;
}

.tasklist-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.tasklist-overview {
    margin-bottom: 1rem;
}

#stage-summary {
    gap: 0.5rem;
}

.tasklist-tab {
    border: 1px solid #cbd5f5;
    color: #334155;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.tasklist-tab:hover {
    background: #e2e8f0;
}

.tasklist-tab-active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.25);
}

.tasklist-stage-summary {
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.tasklist-page-no-scroll {
    overflow: hidden;
}

.tasklist-scrollable-content {
    margin-top: 0;
    padding-top: var(--tasklist-fixed-offset, 110px);
    position: relative;
    z-index: 0;
    scroll-padding-top: var(--tasklist-fixed-offset, 110px);
}

.tasklist-stage-not-started {
    background: #f1f5f9;
    color: #475569;
}

.tasklist-stage-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.tasklist-stage-blocked {
    background: #fee2e2;
    color: #b91c1c;
}

.tasklist-stage-review {
    background: #fef3c7;
    color: #92400e;
}

.tasklist-stage-completed {
    background: #dcfce7;
    color: #166534;
}

.tasklist-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tasklist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tasklist-card:hover {
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.tasklist-card:hover::before {
    opacity: 1;
}

.tasklist-action-btn {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.tasklist-action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tasklist-action-btn:active {
    transform: translateY(0);
}

.tasklist-action-btn-compact {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
    border: 1px solid #60a5fa;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    align-self: flex-start;
    line-height: 1;
}

.tasklist-action-btn-compact:hover {
    background: #2563eb;
    border-color: #3b82f6;
}

.tasklist-action-btn-compact:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .tasklist-action-btn-compact {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }
}

.tasklist-secondary-btn {
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.tasklist-secondary-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.tasklist-secondary-btn:active {
    transform: scale(0.98);
}

.tasklist-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1;
}

.tasklist-badge[data-stage="Not Started"] {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.tasklist-badge[data-stage="In Progress"] {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.tasklist-badge[data-stage="Blocked"] {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.tasklist-badge[data-stage="Review"] {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.tasklist-badge[data-stage="Completed"] {
    background: #d1fae5;
    color: #166534;
    border: 1px solid #86efac;
}

.tasklist-priority {
    border-radius: 0.375rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1;
}

.tasklist-priority-low {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.tasklist-priority-medium {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.tasklist-priority-high {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.tasklist-tag-badge {
    border-radius: 0.375rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e0f2fe;
    color: #075985;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: 1px solid #7dd3fc;
    line-height: 1;
}

.tasklist-tag-badge[data-tag="CEO"] {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.tasklist-tag-badge[data-tag="Priority 1"] {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
}

.tasklist-tag-badge[data-tag="CEO Priority 2"] {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

.tasklist-log {
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.tasklist-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tasklist-log-toggle {
    background: #ffffff;
    border: 1px solid #cbd5f5;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tasklist-log-toggle:hover {
    background: #e0f2fe;
}

.tasklist-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tasklist-log-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.tasklist-log-empty {
    color: #64748b;
    font-size: 0.85rem;
}

.tasklist-log-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tasklist-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.tasklist-modal.tasklist-modal-open {
    display: flex;
}

.tasklist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.tasklist-modal-panel {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    width: min(520px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    border: 1px solid #e2e8f0;
}

.tasklist-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 9999px;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #475569;
    cursor: pointer;
}

.tasklist-modal-close:hover {
    background: #e2e8f0;
}

body.tasklist-modal-open {
    overflow: hidden;
}

.print-only {
    display: none;
}

.tasklist-print-wrap {
    padding: 1.5rem;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.tasklist-print-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tasklist-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.tasklist-print-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.tasklist-print-summary th,
.tasklist-print-summary td {
    border: 1px solid #cbd5f5;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.tasklist-print-summary th {
    background: #eef2ff;
    color: #1e293b;
    font-weight: 700;
}

.tasklist-print-table th,
.tasklist-print-table td {
    border: 1px solid #cbd5f5;
    padding: 0.5rem 0.6rem;
    vertical-align: top;
    text-align: left;
}

.tasklist-print-table th {
    background: #eef2ff;
    color: #1e293b;
    font-weight: 700;
}

.tasklist-print-title {
    font-weight: 700;
    color: #0f172a;
    width: 30%;
}

.tasklist-print-dept-name {
    width: 10%;
}

.tasklist-print-tag {
    width: 10%;
    font-weight: 600;
    font-size: 0.8rem;
}

.tasklist-print-priority {
    width: 8%;
    font-size: 0.8rem;
    text-align: center;
}

.tasklist-print-table[data-show-dept="false"] .tasklist-print-dept-name {
    display: none;
}

.tasklist-print-history-item {
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

/* Collapsible buttons for compact display */
.collapsible-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.375rem 0.375rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    max-width: 32px;
}

.collapsible-btn:hover {
    max-width: 200px;
    padding: 0.375rem 0.75rem;
    gap: 0.375rem;
    background: #c7d2fe;
    border-color: #a5b4fc;
}

.collapsible-btn .collapsible-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.collapsible-btn .collapsible-text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.collapsible-btn:hover .collapsible-text {
    opacity: 1;
}

.collapsible-btn:active {
    transform: scale(0.95);
}

.collapsible-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.collapsible-btn.locked {
    opacity: 0.6;
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.collapsible-btn.locked:hover {
    background: #fcd34d;
    border-color: #f59e0b;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    html:not(.auth-checked) body.auth-loading {
        visibility: visible !important;
    }

    body.auth-loading {
        visibility: visible !important;
    }

    body > *:not(#tasklist-print) {
        display: none !important;
    }

    #tasklist-print {
        display: block !important;
        position: static;
        width: 100%;
        overflow: visible !important;
    }

    #tasklist-print * {
        visibility: visible !important;
    }

    .tasklist-print-table {
        page-break-inside: auto;
    }

    .tasklist-print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .tasklist-print-table thead {
        display: table-header-group;
    }
}

/* Additional task card enhancements */
.tasklist-card h4 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0;
    word-break: break-word;
}

.tasklist-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tasklist-meta::before {
    content: '👤';
    font-size: 0.85rem;
}

.tasklist-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tasklist-update-actions {
    padding-top: 0.25rem;
}

.tasklist-update-editor {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.625rem;
}

.tasklist-update-controls {
    margin-bottom: 0.5rem;
}

.tasklist-update-controls label {
    display: block;
    margin-bottom: 0.25rem;
}

.tasklist-update-controls input,
.tasklist-update-controls select {
    width: 100%;
}

/* Improved log item styling */
.tasklist-log-item {
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.tasklist-log-item:hover {
    background: #fefefe;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tasklist-log-meta .text-sm {
    line-height: 1.4;
    margin-bottom: 0.125rem;
}

.tasklist-log-meta .text-xs {
    color: #64748b;
}

/* Task list spacing */
#task-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .tasklist-card {
        padding: 0.875rem;
    }
    
    .tasklist-card h4 {
        font-size: 0.95rem;
    }
    
    .tasklist-badge,
    .tasklist-priority,
    .tasklist-tag-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .tasklist-action-btn,
    .tasklist-secondary-btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.875rem;
    }
    
    .tasklist-log {
        padding: 0.625rem;
    }
}

/* Enhanced button group layout */
.tasklist-update-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Print button styling */
.print-hidden {
    transition: all 0.2s ease;
}

/* Enhanced modal styling */
.tasklist-modal-panel input,
.tasklist-modal-panel select,
.tasklist-modal-panel textarea {
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.tasklist-modal-panel input:focus,
.tasklist-modal-panel select:focus,
.tasklist-modal-panel textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Improved spacing for form elements */
.tasklist-modal-panel label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

/* Status badges hover effects */
.tasklist-badge:hover,
.tasklist-priority:hover,
.tasklist-tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Empty state styling */
#task-empty {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Task card animations */
.tasklist-card {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Department tabs improvements */
.tasklist-tab {
    position: relative;
    transition: all 0.2s ease;
}

.tasklist-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.tasklist-tab-active::after {
    transform: scaleX(1);
}

/* Improved button icons */
.tasklist-action-btn span,
.tasklist-secondary-btn span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading states */
.tasklist-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Better focus states */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Improved scrollbar for tasklist */
.tasklist-scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.tasklist-scrollable-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.tasklist-scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tasklist-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Task count animation */
#task-count {
    transition: all 0.2s ease;
}

/* Stage summary improvements */
.tasklist-stage-summary {
    transition: all 0.2s ease;
    cursor: default;
}

.tasklist-stage-summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Log toggle button improvements */
.tasklist-log-toggle {
    position: relative;
    overflow: hidden;
}

.tasklist-log-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.tasklist-log-toggle:hover::before {
    width: 100%;
    height: 100%;
}

/* Modal animations */
.tasklist-modal.tasklist-modal-open .tasklist-modal-panel {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Print optimizations */
@media print {
    .tasklist-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better spacing for mobile */
@media (max-width: 640px) {
    #task-list {
        gap: 0.75rem;
    }
    
    .tasklist-log-list {
        gap: 0.5rem;
    }
}