/* styles.css */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #402019;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #F05032;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Diff View Specifics */
.diff-line {
    display: flex;
    padding: 0 4px;
    min-width: max-content;
}

.diff-line.add {
    background-color: rgba(46, 160, 67, 0.15);
    color: #e6ffed;
}

.diff-line.remove {
    background-color: rgba(248, 81, 73, 0.15);
    color: #ffeef0;
}

.diff-line.context {
    color: #AFA29E;
}

.diff-line.header {
    color: #00CEC9;
    background-color: rgba(0, 206, 201, 0.1);
    padding: 4px 8px;
    margin-top: 8px;
    border-radius: 4px;
    font-weight: bold;
}

.diff-line-marker {
    width: 20px;
    flex-shrink: 0;
    user-select: none;
    text-align: center;
    opacity: 0.7;
}

.diff-line-content {
    white-space: pre;
    flex: 1;
}

.file-header {
    position: sticky;
    top: -16px;
    background: #0d1117;
    z-index: 5;
    padding: 8px 0;
    border-bottom: 1px solid #30363d;
    margin-bottom: 8px;
    font-weight: bold;
    color: #c9d1d9;
}