#productNotes .app-container {
    max-width: 2000px;
    margin: 0 auto;
    background-color: var(--tool-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
#productNotes .header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7209b7 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#productNotes .header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
#productNotes .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}
#productNotes .logo i {
    font-size: 32px;
    color: #ffd700;
}
#productNotes .logo h1 {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #d4e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#productNotes .controls {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}
#productNotes .btn {
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#productNotes .btn-primary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
[data-theme="light"] #productNotes .btn-primary {
    background: transparent;
    color: var(--text-color);
}
[data-theme="dark"] #productNotes .btn-primary {
    background: transparent;
    color: var(--text-color);
}
#productNotes .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
#productNotes .btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    backdrop-filter: blur(5px);
}
#productNotes .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color);
    transform: translateY(-2px);
}
#productNotes .btn-edit {
    transition: all 0.3s ease;
    background: linear-gradient(to right, #ff9800, #e68a00);
    color: var(--text-color);
}
#productNotes .btn-edit:hover {
    background: linear-gradient(to right, #e68a00, #d67d00);
    transform: translateY(-2px);
    opacity: 0.8;
}
#productNotes .main-content {
    padding: 25px;
    background-color: var(--tool-bg);
    display: flex;
    flex-direction: column;
}
#productNotes .table-container {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--tool-bg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
#productNotes .product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1000px;
}
#productNotes .product-table th {
    background: var(--primary-color);
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
}
#productNotes .product-table th:hover {
    background: null;
}
#productNotes .product-table th i {
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.7;
}
#productNotes .product-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    position: relative;
}
#productNotes .product-table tr {
    background-color: var(--tool-bg);
    transition: background-color 0.2s;
}
#productNotes .stats-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    margin-top: 20px;
}
#productNotes .stats-toggle::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}
#productNotes .stats-toggle.collapsed::after {
    transform: rotate(-90deg);
}
#productNotes .stats-container {
    display: none;  /* Hidden by default */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--tool-bg);
    border-bottom: 1px solid var(--border-color);
}
#productNotes .stats-container.visible {
    display: grid;
}
#productNotes .product-table tr:nth-child(even) {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}
#productNotes .product-table tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}
#productNotes .folder-row {
    background: var(--tool-bg) !important;
    font-weight: 700;
}
#productNotes.folder-toggle {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    text-align: center;
    line-height: 26px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
#productNotes .folder-row.expanded .folder-toggle {
    transform: rotate(90deg);
}
#productNotes .folder-icon {
    font-size: 18px;
    margin-right: 12px;
}
#productNotes .folder-icon-top {
    color: #ffd700 !important;
}
#productNotes .folder-icon-sub {
    color: var(--primary-color) !important;
}
#productNotes .folder-icon-deep {
    color: #f44336 !important;
}
#productNotes .product-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
#productNotes .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#productNotes .action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}
#productNotes .action-btn.delete-btn:hover, #productNotes .action-btn.delete-folder-btn:hover {
    background: #d32f2f !important;
    color: white;
}
#productNotes .highlight {
    background-color: #ffd700;
    color: #000;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 4px;
    animation: highlightPulse 1.5s ease-in-out infinite;
}
@keyframes highlightPulse {
0%, 100% {
background-color: #ffd700;
}
50% {
background-color: #ffec8b;
}
}
#productNotes .match-highlight {
    background-color: rgba(76, 175, 80, 0.3) !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}
#productNotes .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}
#productNotes .stats-card {
    background: var(--tool-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}
#productNotes .stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.2);
}
#productNotes .stats-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.15);
    font-size: 22px;
    color: var(--primary-color);
}
#productNotes .stats-content {
    flex: 1;
}
#productNotes .stats-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
    background: linear-gradient(to right, #aab4e0, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#productNotes .stats-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
}
#productNotes .footer {
    padding: 20px 30px;
    background-color: #1f2433;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    position: relative;
}
#productNotes .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}
#productNotes .table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
#productNotes .search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}
#productNotes .search-box input {
    padding: 14px 20px 14px 45px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--tool-bg);
    color: var(--text-color);
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}
#productNotes .search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
    outline: none;
}
#productNotes .search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}
#productNotes .path-hint {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
}
.folder-path-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #aab4e0;
    font-size: 14px;
}
/* Modal styles */
#productNotes .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}
#productNotes .modal-content {
    background: var(--tool-bg);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    border: 1px solid var(--border-color);
    scrollbar-width: none;
}
#productNotes .modal-content::-webkit-scrollbar {
display: none;
}
#productNotes .modal-header {
    padding: 5px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7209b7 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}
#productNotes .modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
#productNotes .modal-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}
#productNotes .close-modal {
    position: relative;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}
#productNotes .close-modal:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}
#productNotes .modal-body {
    padding: 25px;
}
#productNotes .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
#productNotes .form-group {
    margin-bottom: 20px;
}
#productNotes .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 16px;
}
#productNotes .form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--tool-bg);
    color: var(--text-color);
}
#productNotes .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
    background: var(--tool-bg);
}
#productNotes .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(67, 97, 238, 0.2);
}
#productNotes .btn-cancel {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    padding: 12px 20px;
}
#productNotes .btn-cancel:hover {
    background: rgba(255,255,255,0.2);
}
#productNotes .btn-save {
    background: linear-gradient(to right, #4caf50, #449d48);
    color: white;
    padding: 12px 25px;
}
#productNotes .btn-save:hover {
    background: linear-gradient(to right, #449d48, #3d8b40);
}
/* Updated no-products state */
#productNotes .no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--tool-bg);
    border-radius: 12px;
    margin-top: 20px;
    border: 2px dashed var(--border-color);
    min-height: 300px;
}
#productNotes .no-products i {
    font-size: 20px;
}
#productNotes .no-products h3, #productNotes .no-products p {
    color: var(--text-color);
}
#productNotes .no-products h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 26px;
    font-weight: 600;
}
#productNotes .no-products p {
    margin-bottom: 25px;
    color: #aab4e0;
    font-size: 18px;
    max-width: 500px;
    line-height: 1.6;
}
/* Smaller button for no-products state */
#productNotes .btn-sm {
    padding: 10px 20px;
    font-size: 15px;
}
#productNotes .glow {
    animation: glowEffect 2s infinite alternate;
}
@keyframes glowEffect {
from {
box-shadow: 0 0 5px rgba(67, 97, 238, 0.5);
}
to {
box-shadow: 0 0 20px rgba(67, 97, 238, 0.8);
}
}

/* Responsive adjustments */
@media (max-width: 768px) {
#productNotes .table-controls {
    flex-direction: column;
    align-items: stretch;
}
#productNotes .search-box {
    max-width: 100%;
}
#productNotes .controls {
    flex-wrap: wrap;
    justify-content: center;
}
#productNotes .btn {
    padding: 10px 15px;
    font-size: 14px;
}
#productNotes .modal-body {
    padding: 20px;
}
#productNotes .form-row {
    grid-template-columns: 1fr;
}
#productNotes .modal-body {
    padding: 15px;
}
#productNotes .form-actions {
    padding-top: 15px;
    margin-top: 10px;
}
}
/* Action buttons mini style */
#productNotes.action-btn.mini {
    width: 30px;
    height: 30px;
    font-size: 14px;
}
/* Updated column widths */
#productNotes .product-table th:nth-child(1), #productNotes .product-table td:nth-child(1) {
    width: 20%;
}
#productNotes .product-table th:nth-child(2), #productNotes .product-table td:nth-child(2) {
    width: 25%;
}
#productNotes .product-table th:nth-child(3), #productNotes .product-table td:nth-child(3) {
    width: 8%;
}
#productNotes .product-table th:nth-child(4), #productNotes .product-table td:nth-child(4) {
    width: 8%;
}
#productNotes .product-table th:nth-child(5), #productNotes .product-table td:nth-child(5) {
    width: 7%;
}
#productNotes .product-table th:nth-child(6), #productNotes .product-table td:nth-child(6) {
    width: 8%;
}
#productNotes .product-table th:nth-child(7), #productNotes .product-table td:nth-child(7) {
    width: 8%;
}
#productNotes .product-table th:nth-child(8), #productNotes .product-table td:nth-child(8) {
    width: 8%;
}
/* Folder row colspan fix */
#productNotes .folder-row td {
    padding-left: 15px !important;
}
/* Folder hierarchy visualization */
#productNotes .folder-hierarchy {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20px;
    background: linear-gradient(to right, rgba(67, 97, 238, 0.15), transparent);
    pointer-events: none;
}
#productNotes .folder-row .folder-toggle {
    position: relative;
    z-index: 2;
}
#productNotes .folder-row .folder-icon {
    position: relative;
    z-index: 2;
}
#productNotes .folder-row .folder-name {
    position: relative;
    z-index: 2;
}
/* Product hierarchy visualization */
#productNotes .product-row .folder-indent {
    display: inline-block;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(67, 97, 238, 0.1), transparent);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}
/* Improved folder icons */
#productNotes .folder-icon-top {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
#productNotes .folder-icon-sub {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.3);
}
#productNotes .folder-icon-deep {
    color: #f44336 !important;
    text-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}
@keyframes slideDown {
from {
transform: translate(-50%, -100%);
opacity: 0;
}
to {
transform: translate(-50%, 0);
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translate(-50%, 0);
opacity: 1;
}
to {
transform: translate(-50%, -100%);
opacity: 0;
}
}
#productNotes .description-column {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: help;
}
#productNotes .description-column:hover::after {
    content: attr(title);
    position: fixed;  /* Use fixed positioning */
    left: var(--mouse-x, 0); /* Dynamic position based on mouse */
    top: var(--mouse-y, 0); /* Dynamic position based on mouse */
    transform: translate(-50%, -120%); /* Position above cursor */
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-color);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    z-index: 1000;
    pointer-events: none;
}
/* Add arrow pointer */
#productNotes .description-column:hover::before {
    content: '';
    position: fixed;
    left: var(--mouse-x, 0);
    top: var(--mouse-y, 0);
    transform: translate(-50%, -100%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--border-color);
    z-index: 1001;
    pointer-events: none;
}