/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f3f3;
}

.dark ::-webkit-scrollbar-track {
    background: #252526;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #424242;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #4f4f4f;
}

/* Diff highlighting styles */
.diff-added {
    background-color: #e6ffed;
    color: #22863a;
}

.dark .diff-added {
    background-color: #1b4b2b;
    color: #85e89d;
}

.diff-removed {
    background-color: #ffeef0;
    color: #cb2431;
}

.dark .diff-removed {
    background-color: #4b1b1b;
    color: #f97583;
}

/* Line numbers */
.line-number {
    color: #6b6b6b;
    user-select: none;
    padding-right: 1rem;
    text-align: right;
    min-width: 3rem;
}

.dark .line-number {
    color: #858585;
}

/* Diff output styles */
#diffOutput {
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
}

/* Resize handle styles */
#resizeHandle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Responsive styles */
@media (max-width: 768px) {
    .flex {
        flex-direction: column;
    }

    #resizeHandle {
        display: none;
    }

    #leftSection,
    #rightSection {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .dark #leftSection,
    .dark #rightSection {
        border-bottom-color: #252526;
    }
}

/* Animation for theme transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus styles for better accessibility */
button:focus,
textarea:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

.dark button:focus,
.dark textarea:focus {
    outline-color: #0e639c;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

.dark [data-tooltip]:before {
    background-color: #d4d4d4;
    color: #1e1e1e;
}

/* Button hover effects */
button {
    transition: transform 0.1s ease;
}

button:active {
    transform: scale(0.95);
}

/* Custom selection color */
::selection {
    background-color: #007acc;
    color: #ffffff;
}

.dark ::selection {
    background-color: #0e639c;
    color: #ffffff;
}

/* Diff separator */
.separator {
    color: #6b6b6b;
    text-align: center;
    padding: 4px 0;
    font-style: italic;
    background-color: #f3f3f3;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.dark .separator {
    color: #858585;
    background-color: #252526;
    border-top: 1px solid #3c3c3c;
    border-bottom: 1px solid #3c3c3c;
} 