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

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

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

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

/* Text Selection */
::selection {
    background: rgba(0, 122, 204, 0.2);
}

.dark ::selection {
    background: rgba(14, 99, 156, 0.2);
}

/* Editor Styles */
pre {
    tab-size: 2;
    white-space: pre;
    line-height: 1.5;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* Signature Output */
#signatureOutput {
    color: #1e1e1e;
}

.dark #signatureOutput {
    color: #d4d4d4;
}

/* Verification Status */
#verificationStatus {
    color: #1e1e1e;
}

.dark #verificationStatus {
    color: #d4d4d4;
}

/* Syntax Highlighting */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a737d;
}

.dark .token.comment,
.dark .token.prolog,
.dark .token.doctype,
.dark .token.cdata {
    color: #8b949e;
}

.token.punctuation {
    color: #24292e;
}

.dark .token.punctuation {
    color: #c9d1d9;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
    color: #005cc5;
}

.dark .token.property,
.dark .token.tag,
.dark .token.boolean,
.dark .token.number,
.dark .token.constant,
.dark .token.symbol {
    color: #79c0ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
    color: #032f62;
}

.dark .token.selector,
.dark .token.attr-name,
.dark .token.string,
.dark .token.char,
.dark .token.builtin {
    color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d73a49;
}

.dark .token.operator,
.dark .token.entity,
.dark .token.url,
.dark .language-css .token.string,
.dark .style .token.string {
    color: #f97583;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #d73a49;
}

.dark .token.atrule,
.dark .token.attr-value,
.dark .token.keyword {
    color: #ff7b72;
}

.token.function,
.token.class-name {
    color: #6f42c1;
}

.dark .token.function,
.dark .token.class-name {
    color: #d2a8ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Indicator */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dark .loading::after {
    background: rgba(30, 30, 30, 0.8);
}

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

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

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

/* Button Hover Effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Error and Success Messages */
.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.dark .error-message {
    background-color: #7f1d1d;
    color: #fecaca;
}

.success-message {
    background-color: #dcfce7;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.dark .success-message {
    background-color: #14532d;
    color: #bbf7d0;
} 