/* Base styles and custom properties */
:root {
    --primary-color: #00a8cc;
    --secondary-color: #0066cc;
    --accent-color: #ff6b6b;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
}

/* Reset and base typography */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Utility classes for Bluesky-themed UI */
.bluesky-gradient {
    background: linear-gradient(135deg, #00a8cc 0%, #0066cc 100%);
}

.card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.loading {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form and input styling */
.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

/* Authentication section styling */
.auth-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    display: none;
}

.auth-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    display: none;
}

.auth-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #eff6ff;
    border-radius: 0.25rem;
}

.auth-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

/* Search options styling */
.search-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Warning and notification styling */
.pagination-warning {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    display: none;
}

/* Output container and actions */
.output-container {
    position: relative;
    margin-top: 1rem;
}

.output-container pre {
    min-height: 100px;
}

.output-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.action-button {
    background: #4b5563;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button:hover {
    background: #374151;
}

/* Code and output display */
pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow: auto;
    max-height: 600px;
    white-space: pre-wrap;
    margin-top: 0;
    font-family: 'Courier New', Courier, monospace;
}

/* Copy feedback */
.copy-feedback {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: none;
    z-index: 1000;
}

/* Error styles */
#error {
    display: none;
}
