/* Fonts */
@font-face {
    font-family: 'Menlo';
    src: url('/public/Menlo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Menlo';
    src: url('/public/Menlo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Menlo';
    src: url('/public/Menlo-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Menlo';
    src: url('/public/Menlo-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Menlo', 'Monaco', 'Ubuntu Mono', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
}

/* Navigation */
.nav-container {
    background-color: #111111;
    border-bottom: 2px solid #333333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-image: linear-gradient(90deg, #333, #666, #333) 1;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wallet {
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    filter: invert(1); /* Make the black logo white */
    opacity: 0.9;
}

.nav-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-brand h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-subtitle {
    color: #888888;
    font-size: 0.8rem;
    font-weight: normal;
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #333333;
    border-radius: 2px;
    transition: all 0.2s ease;
    background-color: #1a1a1a;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    border-color: #555555;
    background-color: #252525;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* App Layout */
.app-layout {
    display: flex;
    height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #111111;
    border-right: 2px solid #333333;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.sidebar-icon {
    color: #cccccc;
    display: flex;
    align-items: center;
}

.sidebar-header h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.add-factory-btn {
    background: none;
    border: 1px solid #333333;
    color: #cccccc;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-factory-btn:hover {
    border-color: #555555;
    color: #ffffff;
    background-color: #1a1a1a;
}

.factory-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.factory-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.factory-item:hover {
    background-color: #252525;
    border-color: #555555;
}

.factory-item.selected {
    background-color: #1e40af;
    border-color: #3b82f6;
}

.factory-icon {
    font-size: 0.9rem;
    color: #cccccc;
    width: 12px;
    height: 12px;
}

.factory-name {
    color: #e0e0e0;
    font-size: 0.8rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main container */
.main-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Responsive height layout for debate view */
.debate-view {
    height: calc(100vh - 160px); /* Account for header and padding */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.debate-view-header {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.debate-view-content {
    flex: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.debate-main-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 0; /* Important for flexbox children */
    overflow: visible;
}

/* Arguments section with natural height */
.arguments-section {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    max-height: 70vh;
    overflow: visible;
}

.arguments-section .section-title {
    flex-shrink: 0;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    border-bottom: 1px solid #333;
}

.arguments-list-thin {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
}

.add-argument-form-compact {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #333;
    background-color: #1a1a1a;
}

/* Resolution section with natural height */
.resolution-section {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    max-height: 70vh;
    overflow: visible;
}

.resolution-section .section-title {
    flex-shrink: 0;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    border-bottom: 1px solid #333;
}

.prompts-row {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 50vh;
}

.resolution-controls {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #333;
}

/* Responsive breakpoint for mobile */
@media (max-width: 768px) {
    .debate-main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .arguments-section,
    .resolution-section {
        min-height: 300px;
    }

    .debate-view {
        height: calc(100vh - 120px);
    }
}

/* Loading and error states */
.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-text {
    color: #888;
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.error-text {
    color: #ef4444;
    font-size: 0.9rem;
}

.error-container {
    border: 1px solid #dc2626;
    border-radius: 6px;
    background-color: rgba(220, 38, 38, 0.1);
}

/* Smooth transitions */
.debate-view-question {
    transition: opacity 0.3s ease;
}

.debate-arguments {
    transition: opacity 0.3s ease;
}

.arguments-section,
.resolution-section {
    transition: all 0.3s ease;
}

/* Smooth transition for side selection */
.argument-side-selection {
    transition: all 0.3s ease;
    opacity: 1;
}

.argument-side-selection.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Enhanced button hover effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Smooth transitions for cards */
.debate-card {
    transition: all 0.2s ease;
}

.debate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Character count smooth updates */
.character-count-compact {
    transition: color 0.3s ease;
}

/* Argument items smooth appearance */
.argument-item {
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.argument-item:nth-child(1) { animation-delay: 0.1s; }
.argument-item:nth-child(2) { animation-delay: 0.2s; }
.argument-item:nth-child(3) { animation-delay: 0.3s; }
.argument-item:nth-child(n+4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contracts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Cards */
.card {
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    background-image:
        linear-gradient(135deg, transparent 24%, #222222 25%, #222222 26%, transparent 27%, transparent 74%, #222222 75%, #222222 76%, transparent 77%);
    background-size: 20px 20px;
}

.card:hover {
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

/* Status items */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
}

.status-label {
    color: #aaaaaa;
    font-weight: bold;
}

.status-value {
    color: #ffffff;
    font-family: monospace;
}

.status-connected {
    color: #4ade80;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #333333;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #252525;
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-primary {
    border-color: #3b82f6;
    background-color: #1e40af;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #60a5fa;
}

.btn-secondary {
    border-color: #6b7280;
}

.btn-secondary:hover {
    border-color: #9ca3af;
}

.btn-wallet {
    border-color: #f59e0b;
    background-color: #d97706;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.btn-wallet:hover {
    background-color: #f59e0b;
    border-color: #fbbf24;
}

.btn-wallet.connected {
    border-color: #10b981;
    background-color: #059669;
}

.btn-wallet.connected:hover {
    background-color: #10b981;
    border-color: #34d399;
}

/* Forms */
.contract-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #cccccc;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-input, .form-textarea, .form-select {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.75rem;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.9rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #555555;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Result display removed - using toast notifications */

/* Transaction Tracker */
.transaction-tracker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 450px;
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    z-index: 200;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.transaction-tracker.has-pending {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.transaction-tracker-header {
    padding: 0.75rem 1rem;
    background-color: #111111;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 2px 2px 0 0;
}

.transaction-tracker.has-pending .transaction-tracker-header {
    background-color: #1b2332;
    border-bottom-color: #60a5fa;
}

.transaction-count {
    color: #cccccc;
    font-weight: bold;
    font-size: 0.9rem;
}

.transaction-tracker.has-pending .transaction-count {
    color: #60a5fa;
}

.transaction-toggle {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.transaction-toggle:hover {
    color: #ffffff;
}

.transaction-tracker-body {
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 1rem;
}

.transaction-tracker.expanded .transaction-tracker-body {
    display: block;
}

.transaction-list {
    margin-bottom: 1rem;
}

/* Transaction Log Items */
.transaction-log-item {
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.transaction-log-item.write {
    border-left: 3px solid #60a5fa;
}

.transaction-log-item.read {
    border-left: 3px solid #10b981;
}

.transaction-log-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.transaction-method {
    color: #ffffff;
    font-family: monospace;
    font-weight: bold;
    background-color: #2a2a2a;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.transaction-to {
    color: #888888;
    font-size: 0.8rem;
}

.transaction-address {
    color: #60a5fa;
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
}

.transaction-address:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Status Badges */
.transaction-status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.transaction-status-badge.pending {
    background-color: #f59e0b;
    color: #000000;
}

.transaction-status-badge.accepted {
    background-color: #3b82f6;
    color: #ffffff;
}

.transaction-status-badge.finalized {
    background-color: #10b981;
    color: #ffffff;
}

.transaction-timestamp {
    color: #666666;
    font-size: 0.7rem;
    font-style: italic;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.transaction-type {
    color: #60a5fa;
    font-weight: bold;
    font-size: 0.85rem;
}

.transaction-status {
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}

.transaction-status.pending {
    background-color: #f59e0b;
    color: #000000;
}

.transaction-status.confirmed {
    background-color: #10b981;
    color: #000000;
}

.transaction-status.failed {
    background-color: #ef4444;
    color: #ffffff;
}

.transaction-hash {
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.transaction-timestamp {
    color: #666666;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Add Argument Form */
.add-argument-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 4px;
}

.form-title {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.argument-textarea {
    width: 100%;
    min-height: 80px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
    color: #e0e0e0;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.argument-textarea:focus {
    outline: none;
    border-color: #60a5fa;
}

.argument-side-selection {
    margin-bottom: 0.75rem;
}

.argument-side-selection label {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.side-options {
    display: flex;
    gap: 1rem;
}

.side-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #e0e0e0;
    font-size: 0.8rem;
    cursor: pointer;
}

.side-option input[type="radio"] {
    margin: 0;
}

.argument-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-count {
    color: #666666;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Compact Add Argument Form */
.add-argument-form-compact {
    margin-top: 1rem;
}

.argument-input-container {
    position: relative;
    display: flex;
    align-items: stretch;
}

.argument-textarea-compact {
    flex: 1;
    min-height: 60px;
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 2px 0 0 2px;
    color: #ffffff;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    border-right: none;
    transition: all 0.2s ease;
}

.argument-textarea-compact:focus {
    outline: none;
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.btn-submit-inline {
    border: 2px solid #3b82f6;
    background-color: #1e40af;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-submit-inline:hover {
    background-color: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.character-count-compact {
    text-align: right;
    margin-top: 0.25rem;
}

.character-count-compact span {
    color: #666666;
    font-size: 0.7rem;
    font-family: monospace;
}

.error-stack summary {
    color: #cccccc;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.error-stack pre {
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: #999999;
    overflow-x: auto;
    max-height: 150px;
    overflow-y: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-center, .nav-wallet {
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .app-layout {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #333333;
    }

    .main-container {
        padding: 1rem;
    }

    .dashboard-grid, .contracts-container {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .error-tracker {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 20px;
    }
}

/* Dialog styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog {
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    min-width: 400px;
    max-width: 90vw;
}

.dialog-large {
    min-width: 900px;
    max-width: 95vw;
    max-height: 90vh;
}

.dialog-overlay-large .dialog-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333333;
}

.dialog-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

.dialog-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-close:hover {
    color: #ffffff;
}

.dialog-content {
    padding: 1.5rem;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Contract Methods Explorer */
.contract-methods {
    max-height: 400px;
    overflow-y: auto;
}

.no-contract-selected {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 2rem;
}

.method-item {
    border: 1px solid #333333;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    background-color: #0f0f0f;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #333333;
}

.method-header:hover {
    background-color: #1a1a1a;
}

.method-name {
    font-weight: bold;
    color: #ffffff;
    font-family: monospace;
}

.method-type {
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.method-type.readonly {
    background-color: #1e40af;
    color: #ffffff;
}

.method-type.writable {
    background-color: #059669;
    color: #ffffff;
}

.method-type.payable {
    background-color: #d97706;
    color: #ffffff;
}

.method-details {
    padding: 1rem;
    border-top: 1px solid #333333;
    display: none;
}

.method-details.expanded {
    display: block;
}

.method-params {
    margin-bottom: 1rem;
}

.method-params h4 {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.param-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-family: monospace;
    font-size: 0.8rem;
}

.param-name {
    color: #e0e0e0;
}

.param-type {
    color: #60a5fa;
}

.method-return {
    margin-bottom: 1rem;
}

.method-return h4 {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.return-type {
    font-family: monospace;
    color: #34d399;
    font-size: 0.8rem;
}

.method-execute {
    display: flex;
    gap: 0.5rem;
}

.method-execute .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Debate-specific styles */
.factory-item.active {
    background-color: #1e40af;
    border-color: #3b82f6;
}

.factory-header {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.factory-address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.factory-address {
    color: #666666;
    font-size: 0.7rem;
    font-family: monospace;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.method-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333333;
}

.method-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.method-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.debate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.debates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.debate-card {
    background-color: #0f0f0f;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.debate-card:hover {
    border-color: #555555;
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.debate-address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.debate-address {
    color: #666666;
    font-size: 0.75rem;
    font-family: monospace;
}

.debate-question {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 60px;
}

.debate-mode {
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.debate-creator {
    color: #94a3b8;
    font-size: 0.7rem;
    font-family: monospace;
    margin-bottom: 0.25rem;
}

.debate-created-at {
    color: #666666;
    font-size: 0.7rem;
    font-style: italic;
}

/* Copy button styles */
.copy-btn, .wallet-copy-btn, .copy-address-btn {
    background-color: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.copy-btn:hover, .wallet-copy-btn:hover, .copy-address-btn:hover {
    color: #ffffff;
    background-color: #1a1a1a;
}

.copy-btn svg, .wallet-copy-btn svg, .copy-address-btn svg {
    opacity: 1;
}

.copy-btn:active, .wallet-copy-btn:active, .copy-address-btn:active {
    background-color: #333333;
}

/* Wallet address in navbar */
.wallet-address-text {
    margin-right: 0.25rem;
}

.btn-wallet.connected {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Form help text */
.form-help {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Account info text */
.account-info {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 3px;
    text-align: center;
}

.no-debates, .no-arguments {
    grid-column: 1 / -1;
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 2rem;
    border: 1px dashed #333333;
    border-radius: 4px;
}

.debates-header {
    margin-bottom: 2rem;
}

.debate-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.factory-address {
    cursor: pointer;
    transition: color 0.2s ease;
}

.factory-address:hover {
    color: #60a5fa;
}

/* Radio button styles */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #333333;
    border-radius: 4px;
    background-color: #0f0f0f;
    transition: all 0.2s ease;
    flex: 1;
}

.radio-option:hover {
    border-color: #555555;
    background-color: #1a1a1a;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #ffffff;
    font-weight: bold;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background-color: #1e40af;
}

.radio-label {
    color: #cccccc;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Side inputs styling */
.side-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

#side-names-group {
    transition: opacity 0.3s ease;
}

#side-names-group.hidden {
    display: none;
}

.argument-side-selection {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.side-selection-label {
    display: block;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.side-toggle-container {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.side-toggle-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.side-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #444;
    background-color: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.side-toggle-btn:hover {
    border-color: #666;
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.side-toggle-btn:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.side-icon {
    font-size: 1.2rem;
    filter: grayscale(0.7);
    transition: filter 0.3s ease;
}

.side-text {
    color: #cccccc;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

/* Selected state */
#side-s1:checked ~ label[for="side-s1"],
#side-s2:checked ~ label[for="side-s2"] {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* When selected, brighten icon and text */
#side-s1:checked ~ label[for="side-s1"] .side-icon,
#side-s2:checked ~ label[for="side-s2"] .side-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

#side-s1:checked ~ label[for="side-s1"] .side-text,
#side-s2:checked ~ label[for="side-s2"] .side-text {
    color: #ffffff;
    font-weight: bold;
}

/* Arguments by side layout */
.arguments-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.side-arguments {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    background-color: #1a1a1a;
}

.side-title {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.side-arguments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.argument-side {
    background-color: #333;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .arguments-by-side {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Debate list side tags */
.debate-sides {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.25rem 0;
    font-size: 0.75rem;
    line-height: 1.2;
}

.side-tag {
    color: #cccccc;
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.debate-vs {
    color: #888;
    font-size: 0.6rem;
    margin: 0.05rem 0;
    font-weight: normal;
}

/* Wallet dropdown styles */
.wallet-container {
    position: relative;
}

.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    min-width: 150px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.wallet-dropdown-item {
    padding: 0.75rem 1rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.wallet-dropdown-item:hover {
    background-color: #252525;
    color: #ffffff;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.toast {
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.toast-message {
    color: #ffffff;
    font-size: 0.9rem;
    flex: 1;
    margin-right: 0.5rem;
}

.toast-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #ffffff;
}

/* Toast type variants */
.toast-success {
    border-color: #10b981;
}

.toast-success .toast-message {
    color: #4ade80;
}

.toast-error {
    border-color: #ef4444;
}

.toast-error .toast-message {
    color: #f87171;
}

.toast-warning {
    border-color: #f59e0b;
}

.toast-warning .toast-message {
    color: #fbbf24;
}

.toast-info {
    border-color: #3b82f6;
}

.toast-info .toast-message {
    color: #60a5fa;
}

/* Debate View Styles */
.debate-view {
    width: 100%;
    height: 100%;
}

.debate-view-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.debate-title-section {
    flex: 1;
}

.debate-view-content {
    display: grid;
    gap: 1.5rem;
}

.debate-question-section {
    margin-bottom: 1rem;
}

.debate-question-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.debate-meta {
    color: #666666;
    font-family: monospace;
    font-size: 0.9rem;
}

.contract-address-display {
    color: #60a5fa;
    cursor: pointer;
    text-decoration: underline;
}

.contract-address-display:hover {
    color: #93c5fd;
}

.debate-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.arguments-section, .resolution-section {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 1rem;
}

.resolution-section {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

/* Arguments Section */
.arguments-list-thin {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 0.5rem;
}

.argument-item {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.argument-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.argument-author {
    color: #60a5fa;
    font-family: monospace;
    font-size: 0.8rem;
}

.argument-side {
    background-color: #333333;
    color: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}

.argument-side.s1,
.argument-side.s2 {
    background-color: #333333;
}

.argument-content {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.argument-timestamp {
    color: #666666;
    font-size: 0.7rem;
    font-family: monospace;
}

/* Resolution Interface */
.resolution-interface {
    display: grid;
    gap: 1rem;
}

.prompts-section {
    display: grid;
    gap: 0.75rem;
}

.prompt-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prompt-label {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: bold;
}

.prompt-input {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.5rem;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 60px;
}

.prompt-input:focus {
    outline: none;
    border-color: #555555;
}

.resolution-methods {
    display: grid;
    gap: 0.5rem;
}

.resolution-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    text-align: left;
}

.resolution-btn-non-comparative {
    border-color: #059669;
    background-color: #064e3b;
}

.resolution-btn-comparative {
    border-color: #dc2626;
    background-color: #7f1d1d;
}

.resolution-btn-strict {
    border-color: #d97706;
    background-color: #92400e;
}

/* Resolution Outcome */
.resolution-outcome {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 1rem;
    margin-top: 1rem;
}

.outcome-result {
    color: #4ade80;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.outcome-reasoning {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.outcome-method {
    color: #666666;
    font-size: 0.8rem;
    font-family: monospace;
}

/* Existing Resolutions */
.existing-resolutions {
    border-top: 1px solid #333333;
    padding-top: 1rem;
}

.resolutions-toggle {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resolutions-toggle:hover {
    color: #ffffff;
}

.resolutions-list {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.resolutions-list.expanded {
    display: grid;
}

.resolution-summary {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.75rem;
}

.resolution-wallet {
    color: #60a5fa;
    font-family: monospace;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.resolution-result {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.resolution-method {
    color: #666666;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* New Debate View Layout */
.prompts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.prompt-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prompt-field label {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Resolution Layout */
.prompts-row {
    display: flex;
    gap: 1rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.prompt-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prompt-field label {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.prompt-input-inline {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.5rem;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.8rem;
    flex: 1;
    min-height: 120px;
    height: 100%;
    resize: vertical;
}

.prompt-input-inline:focus {
    outline: none;
    border-color: #555555;
}

.resolution-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resolution-dropdown {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.5rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    flex: 1;
}

.resolution-dropdown:focus {
    outline: none;
    border-color: #555555;
}

.resolution-history {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 1rem;
}

.resolution-list {
    display: grid;
    gap: 0.75rem;
}

.resolution-item {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.resolution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.resolution-winning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resolution-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: bold;
}

.resolution-winner {
    color: #60a5fa;
    font-weight: bold;
    font-size: 0.9rem;
}

.resolution-date {
    color: #666666;
    font-size: 0.8rem;
    font-family: monospace;
}

.resolution-reasoning {
    margin-bottom: 0.75rem;
}

.resolution-reasoning .resolution-label {
    display: block;
    margin-bottom: 0.25rem;
}

.reasoning-text {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
}

.resolution-prompts {
    margin-bottom: 0;
}

.resolution-prompts .resolution-label {
    display: block;
    margin-bottom: 0.25rem;
}

.prompts-display {
    width: 100%;
    min-height: 80px;
    max-height: 120px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 2px;
    color: #cccccc;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    resize: none;
    overflow-y: auto;
    cursor: default;
}

.prompts-display:focus {
    outline: none;
    border-color: #333333;
}

/* Resolution Detail Dialog */
.resolution-detail {
    display: grid;
    gap: 1rem;
}

.detail-row {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 2px;
    padding: 0.75rem;
}

.detail-row strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.detail-row:not(:has(strong)) {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Wallet Connection Dialog */
.wallet-options {
    display: grid;
    gap: 1rem;
}

.wallet-option {
    background-color: #0f0f0f;
    border: 2px solid #333333;
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-option:hover {
    border-color: #555555;
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.wallet-option-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #333333;
}

.wallet-option-content h4 {
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.wallet-option-content p {
    color: #cccccc;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.create-account-form {
    margin-top: 1rem;
}

.create-account-form h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}