/* ========================================
   UNIFIED STYLE TEMPLATE
   Based on tellor-supply-analytics styles
   ======================================== */

/* ========================================
   1. FOUNDATION STYLES
   ======================================== */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables - Tellor Hub Color Scheme */
:root {
    /* Primary Colors - Tellor Hub Style */
    --primary-teal: #003421;
    --primary-teal-dark: #d4e8d3;
    --primary-teal-light: #b2ffdf;
    --accent-mint: #7dd3d3;
    --accent-cyan: #5cbcbc;
    
    /* Background Colors */
    --bg-primary: linear-gradient(135deg, #e8f4f4 0%, #d1eded 30%, #a6d9d9 60%, #7bb8b8 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: #f8fcfc;
    --bg-dark: rgba(248, 252, 252, 0.8);
    --bg-mint: #b8e6e6;
    
    /* Border Colors */
    --border-primary: #2e7d7d;
    --border-secondary: rgba(46, 125, 125, 0.3);
    
    /* Text Colors */
    --text-primary: #08020a;
    --text-secondary: #0e0812;
    --text-tertiary: #ddd7f6;
    --text-muted: #6b9999;
    --text-white: #ffffff;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(26, 95, 95, 0.1);
    --shadow-md: 0 6px 25px rgba(26, 95, 95, 0.2);
    --shadow-lg: 0 20px 40px rgba(26, 95, 95, 0.3);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
}

/* Base Body Styles */
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Main App Container */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Area */
.main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    width: 100%;
}

/* ========================================
   2. TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

h1 { font-size: 2rem; color: var(--text-primary); }
h2 { font-size: 1.5rem; color: var(--text-tertiary); }
h3 { font-size: 1.25rem; color: var(--text-tertiary); }
h4 { font-size: 1rem; color: var(--text-tertiary); }

/* Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-mono { font-family: var(--font-mono); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-uppercase { text-transform: uppercase; }

/* Color Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-orange); }

/* ========================================
   3. BUTTON SYSTEM
   ======================================== */

.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.25px;
    border-radius: var(--border-radius);
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--text-white);
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background: var(--primary-teal-dark);
    border-color: var(--primary-teal-dark);
    box-shadow: 0 0 15px rgba(26, 95, 95, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(46, 125, 125, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--text-secondary);
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(46, 125, 125, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1rem;
}

/* ========================================
   4. CARD SYSTEM
   ======================================== */

.card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(26, 95, 95, 0.1);
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 6px 25px rgba(26, 95, 95, 0.2);
}

.card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--primary-teal);
    color: var(--text-white);
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: var(--spacing-xl);
}

.card-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-tertiary);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-secondary);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(26, 95, 95, 0.1);
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.stat-card:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 0 20px rgba(26, 95, 95, 0.2);
}

.stat-card.clickable {
    cursor: pointer;
    position: relative;
    transition: all var(--transition-medium) ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    border: 2px solid var(--primary-teal);
    border-radius: 4px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    text-shadow: none;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.stat-subtitle {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.25px;
    margin-top: var(--spacing-xs);
    opacity: 0.8;
}

/* ========================================
   5. FORM SYSTEM
   ======================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.25px;
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    border-radius: 6px;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 5px rgba(26, 95, 95, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
    transition: border-color var(--transition-fast);
    border-radius: 6px;
}

.search-box:focus-within {
    border-color: var(--primary-teal);
    box-shadow: 0 0 10px rgba(26, 95, 95, 0.3);
}

.search-box i {
    color: var(--text-secondary);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   6. TABLE SYSTEM
   ======================================== */

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--bg-secondary);
}

.data-table th {
    background: var(--primary-teal);
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 600;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-secondary);
    vertical-align: middle;
    text-align: center;
    background: var(--bg-secondary);
}

.data-table tr:hover {
    background: rgba(26, 95, 95, 0.1);
}

/* ========================================
   7. BADGE SYSTEM
   ======================================== */

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.25px;
    border: 1px solid;
    border-radius: var(--border-radius);
}

.badge-success {
    background: rgba(26, 95, 95, 0.2);
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.badge-danger {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.badge-info {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.badge-warning {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: #ffd700;
}

/* ========================================
   8. MODAL SYSTEM
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-tertiary);
    border: 2px solid var(--text-primary);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
}

.modal-header {
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
}

.modal-header h3 {
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--accent-orange);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.modal-body {
    padding: var(--spacing-2xl);
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    background: var(--bg-tertiary);
}

/* ========================================
   9. LOADING SYSTEM
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity var(--transition-medium);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-primary);
    border-top: 4px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-lg);
}

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

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   10. GRID SYSTEM
   ======================================== */

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Gap utilities */
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* ========================================
   11. LAYOUT UTILITIES
   ======================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Spacing utilities */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ========================================
   12. ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideDown { animation: slideDown 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

/* Mobile First Approach */
@media (max-width: 768px) {
    .main {
        padding: var(--spacing-lg);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--spacing-lg);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   14. DARK THEME VARIANTS
   ======================================== */

.theme-dark {
    --bg-primary: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    --bg-secondary: rgba(15, 15, 25, 0.95);
    --bg-tertiary: #0a0a1a;
}

.theme-light {
    --bg-primary: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: #f8f8f8;
    --text-primary: #2d2d2d;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6b6b6b;
}

/* ========================================
   15. COMPONENT EXAMPLES
   ======================================== */

/* Navigation Component */
.nav {
    background: var(--primary-teal);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

/* Footer Component */
.footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-secondary);
    padding: var(--spacing-2xl);
    text-align: center;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-secondary);
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
}

.hero-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========================================
   16. ACCESSIBILITY
   ======================================== */

/* Focus styles */
*:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-tertiary: #ffffff;
        --border-primary: #ffffff;
    }
}

/* ========================================
   CUSTOMIZATION GUIDE
   ========================================
   
   To customize this template for your project:
   
   1. Update CSS Custom Properties (variables) in :root
   2. Modify color scheme by changing the color variables
   3. Adjust spacing by modifying the spacing variables
   4. Change fonts by updating the font variables
   5. Add your own components following the established patterns
   6. Use the utility classes for rapid prototyping
   
   Color Scheme Examples:
   - Blue Theme: Replace green with blue tones
   - Red Theme: Replace green with red tones
   - Corporate: Use more muted, professional colors
   - Neon: Use bright, vibrant colors
   
   ======================================== */

/* ========================================
   ASCII ART HEADER STYLES
   ======================================== */

.ascii-art-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 3px solid var(--primary-teal);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ascii-art {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    padding: var(--spacing-md);
    white-space: pre;
    overflow-x: auto;
    text-align: left;
    background: transparent;
    border: none;
}

/* Responsive ASCII art */
@media (max-width: 768px) {
    .ascii-art {
        font-size: 0.6rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 0.5rem;
        line-height: 1;
        padding: var(--spacing-sm);
    }
}

/* ========================================
   TELLOR HUB SPECIFIC STYLES
   ======================================== */

/* Tellor Hub Main Container */
.tellor-hub-container {
    background: var(--bg-mint);
    border: 2px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

/* Tellor Hub Header */
.tellor-hub-header {
    background: var(--primary-teal);
    color: var(--text-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.tellor-hub-header .back-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-fast);
}

.tellor-hub-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tellor Hub Navigation Tabs */
.tellor-hub-tabs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tellor-hub-tab {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 120px;
    justify-content: center;
}

.tellor-hub-tab.active {
    background: var(--primary-teal);
    color: var(--text-white);
    border-color: var(--primary-teal);
}

.tellor-hub-tab:hover {
    background: var(--primary-teal-light);
    color: var(--text-white);
    border-color: var(--primary-teal-light);
}

/* Tellor Hub Content Area */
.tellor-hub-content {
    background: var(--bg-mint);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
}

.tellor-hub-content h2 {
    color: var(--primary-teal);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.tellor-hub-content .subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Form Styles for Tellor Hub */
.tellor-hub-form {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-end;
    justify-content: center;
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.tellor-hub-form .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

.tellor-hub-form input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    color: var(--text-primary);
}

.tellor-hub-form input::placeholder {
    color: var(--text-muted);
}

/* Transactions Table */
.transactions-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-xl);
    overflow: hidden;
}

.transactions-header {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-secondary);
}

.transactions-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-secondary);
}

.transactions-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-primary);
}

.transactions-table tr:hover {
    background: rgba(26, 95, 95, 0.05);
}

/* Connect Wallet Message */
.connect-wallet-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.connect-wallet-message h4 {
    color: var(--primary-teal);
    margin-bottom: var(--spacing-md);
}

/* Front-End Code Button */
.front-end-code-btn {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--accent-cyan);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.front-end-code-btn:hover {
    background: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CLI COMMANDS SECTION
   ======================================== */

.cli-command-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.cli-command-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.cli-command-item:hover {
    border-color: var(--border-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.cli-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cli-code {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(204, 197, 205, 0.4);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.cli-code code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    min-width: auto;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.copy-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-primary);
}

.cli-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
}

/* Responsive adjustments for CLI section */
@media (max-width: 768px) {
    .cli-code {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .cli-code code {
        word-break: break-all;
        margin-bottom: var(--spacing-xs);
    }
    
    .copy-btn {
        align-self: flex-end;
    }
}