/**
 * Main Styles
 * Core application styles and global configurations
 */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Content container */
.content-container {
    height: calc(100vh - 2rem);
    overflow: hidden;
    background-color: #f8fafc;
}

.scrollable-content {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 4rem;
}

/* Scrollbar styling */
.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Input styles */
.search-input {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Tab styles */
.tab-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-button:not(.active):hover {
    color: #3b82f6;
    border-bottom-color: #93c5fd;
}

/* Code block wrapper for API docs */
.code-block-wrapper {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.code-block-wrapper:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.3);
}

/* Search form toggle button */
.toggle-search-form {
    display: none;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.toggle-search-form:hover {
    transform: scale(1.05);
}

.toggle-search-form:active {
    transform: scale(0.95);
}
