/* Custom styles to supplement Tailwind */

/* Custom Scrollbar for a cleaner minimal look */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.4); /* gray-400 with opacity */
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.4); /* gray-500 with opacity */
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}
.dark ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.7);
}

/* Diff Tree Rendering Styles */
.diff-tree {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem;
}

.diff-node {
    margin-left: 1.5rem;
    position: relative;
}

.diff-node::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(156, 163, 175, 0.2);
}

.dark .diff-node::before {
    background-color: rgba(107, 114, 128, 0.2);
}

.diff-line {
    display: flex;
    align-items: flex-start;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.diff-line:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .diff-line:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.diff-key {
    font-weight: 600;
    color: #4B5563; /* gray-600 */
    margin-right: 0.5rem;
}

.dark .diff-key {
    color: #9CA3AF; /* gray-400 */
}

.diff-value {
    color: #059669; /* emerald-600 */
}

.dark .diff-value {
    color: #34D399; /* emerald-400 */
}

.diff-type {
    color: #2563EB; /* blue-600 */
    font-style: italic;
}

.dark .diff-type {
    color: #60A5FA; /* blue-400 */
}

/* Diff Status Highlighting */
.status-added {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-left: 3px solid #10B981;
    margin-left: -3px; /* Compensate for border to keep alignment */
    width: calc(100% + 3px);
}

.status-removed {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-left: 3px solid #EF4444;
    margin-left: -3px;
    width: calc(100% + 3px);
    opacity: 0.8;
}

.status-modified {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-left: 3px solid #F59E0B;
    margin-left: -3px;
    width: calc(100% + 3px);
}

/* Required tag */
.tag-required {
    font-size: 0.65rem;
    text-transform: uppercase;
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700;
}

/* Modification details */
.mod-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.mod-old {
    color: #EF4444;
    text-decoration: line-through;
}

.mod-arrow {
    color: #6B7280;
}

.mod-new {
    color: #10B981;
}

/* Toast animation */
.toast-show {
    transform: translate(-50%, 0) !important;
    opacity: 1 !important;
}
