/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* shadcn-inspired Theme with rgb(100, 255, 218) accent */
    --gradient-start: #020817;
    --gradient-mid: #0f172a;
    --gradient-end: #1e293b;
    --bg-primary: #020817;
    --bg-secondary: #0f172a;
    --bg-modal: rgba(15, 23, 42, 0.95);
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --bg-surface: rgba(15, 23, 42, 0.6);
    --bg-surface-hover: rgba(30, 41, 59, 0.86);
    --accent-primary: rgb(100, 255, 218);
    --accent-primary-rgb: 100, 255, 218;
    --accent-hover: rgb(80, 235, 198);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(100, 255, 218, 0.15);
    --border-hover: rgba(100, 255, 218, 0.3);
    --border-subtle: rgba(148, 163, 184, 0.16);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 0.3);
    --status-bar-bg: rgba(15, 23, 42, 0.95);
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --ring-color: rgba(100, 255, 218, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Central Modal - shadcn style */
.modal {
    background: var(--bg-modal);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}





/* Home Page Styles */
.home-center {
    max-width: 600px;
    margin: 0 auto;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin: 0 auto 0.75rem auto;
    display: block;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.home-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    text-align: center;
}

.home-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 40px 0;
    text-align: center;
    line-height: 1.6;
}

/* Methods List - Minimal Style */
.methods-minimal {
    margin: 0 0 40px 0;
}

.method-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    margin-bottom: 4px;
}

.method-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.method-item:hover .method-code {
    color: var(--accent-primary);
    opacity: 1;
}

.method-item:hover .method-name {
    color: var(--accent-primary);
}

.method-code {
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
    line-height: 1;
    min-width: 60px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.method-content {
    flex: 1;
}

.method-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.method-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

.method-status {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-item:hover .method-status {
    color: var(--accent-primary);
    opacity: 1;
}

/* Home Stats - Minimal */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 0 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Method Pages */
.method-header {
    margin-bottom: 32px;
    text-align: center;
}

.method-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.method-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.method-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Placeholder for unimplemented methods */
.method-placeholder {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.method-placeholder h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.method-placeholder p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Methods Overview */
.methods-overview {
    max-width: 800px;
    margin: 0 auto;
}

.method-category {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.method-category:last-of-type {
    border-bottom: none;
}

.method-category h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.method-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.method-category li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 16px;
}

.method-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    opacity: 0.5;
}

.implementation-note {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-top: 32px;
}

.implementation-note p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.implementation-note p:first-child {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

/* Quick Start Buttons */
.quick-start {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}

.quick-start-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.quick-start-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.quick-start-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.quick-start-btn.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

/* Common Card Style - shadcn Inspired */
.card-base {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.card-base:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 20px;
    color: var(--accent-primary);
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.card-base:hover .card-icon {
    color: var(--accent-hover);
    background: rgba(var(--accent-primary-rgb), 0.2);
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.card-base:hover .card-title {
    color: var(--accent-primary);
}

.card-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.card-badge {
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    background: rgba(var(--accent-primary-rgb), 0.1);
    white-space: nowrap;
}

.card-base:hover .card-badge {
    background: rgba(var(--accent-primary-rgb), 0.2);
}






/* Home Styles */
.home-center {
    text-align: center;
    padding: 40px 0;
}

.home-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.home-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 32px;
    font-weight: 300;
}

.quick-start {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.quick-start-btn {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.quick-start-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.quick-start-btn.secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.quick-start-btn.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.quick-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: var(--status-bar-bg);
    border-top: 1px solid var(--border-color);
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.status-left,
.status-right {
    display: flex;
    gap: 16px;
}

.status-item {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-item.connected {
    color: var(--accent-primary);
    position: relative;
}

.status-item.connected::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.status-item.connecting {
    color: var(--warning-color);
    animation: pulse 1.5s infinite;
}

.status-item.disconnected {
    color: var(--text-muted);
}

.status-item.error {
    color: var(--error-color);
}

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

.status-item.status-connected {
    color: var(--success-color);
}

.status-item.status-waiting {
    color: var(--warning-color);
}

.status-item.status-transferring {
    color: var(--accent-primary);
}

.status-item.status-error {
    color: var(--error-color);
}

.status-item.status-disconnected {
    color: var(--text-muted);
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20vh;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.command-palette.hidden {
    display: none;
}

.command-palette-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
}

#commandInput {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    border-bottom: 1px solid var(--border-color);
}

#commandInput::placeholder {
    color: var(--text-muted);
}

.command-results {
    max-height: 300px;
    overflow-y: auto;
}

.command-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.command-item:hover {
    background: var(--bg-card-hover);
}

.command-item:last-child {
    border-bottom: none;
}

.command-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Connection Modal */
#connectionModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    animation: modalFadeIn 0.3s ease;
}

/* Transfer modal is styled via .transfer-modal class below */
#transferModal {
    /* Container element - styling applied via .transfer-modal class */
}

.connection-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease;
    padding: 24px;
    position: relative;
}

.connection-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.connection-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.connection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(24px);
    background: rgba(0, 0, 0, 0.8);
}

.connection-modal.active {
    display: flex;
}

.connection-method-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.connection-method-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.connection-method-option:last-child {
    margin-bottom: 0;
}

.connection-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Transfer Modal */
.transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(24px);
    background: rgba(0, 0, 0, 0.8);
}

.transfer-modal.active {
    display: flex;
}

.transfer-modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease;
    padding: 24px;
}
.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.transfer-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.transfer-header .close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.transfer-header .close-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.transfer-body {
    min-height: 200px;
}

/* File Selection */
.file-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-surface);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--bg-surface-hover);
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.drop-zone-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.browse-link {
    color: var(--accent-primary);
    cursor: pointer;
    text-decoration: underline;
}

.browse-link:hover {
    color: var(--accent-hover);
}

/* Selected Files List */
.selected-files {
    max-height: 300px;
    overflow-y: auto;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.selected-file-item:hover {
    background: var(--bg-card-hover);
}

.selected-file-item .file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.selected-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.selected-file-item .file-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-file-item .file-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: var(--error-color);
    color: white;
}

.total-size {
    text-align: right;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* File Selection Actions */
.file-selection-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Receiver Waiting */
.receiver-waiting {
    text-align: center;
    padding: 40px 20px;
}

.waiting-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.receiver-waiting h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.receiver-waiting p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Transfer Progress */
.current-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.current-file-info .file-icon {
    font-size: 32px;
}

.file-details {
    flex: 1;
}

.file-details .file-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-details .file-progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.overall-progress {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: right;
}

.transfer-analytics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 6px;
}

.analytics-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: 'Space Grotesk', monospace;
}

.transfer-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Transfer Completion */
.transfer-completion {
    text-align: center;
    padding: 40px 20px;
}

.completion-message h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.completion-message p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.auto-close-timer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.auto-close-timer #countdown {
    color: var(--accent-primary);
    font-weight: 600;
}

.completion-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}


.transfer-progress {
    margin-bottom: 20px;
}

.transfer-file-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
}

.transfer-file-item:last-child {
    margin-bottom: 0;
}

.transfer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home-name {
        font-size: 2rem;
    }

    .method-header h2 {
        font-size: 24px;
    }

    .method-name {
        font-size: 16px;
    }

    .method-desc {
        font-size: 12px;
    }

    .home-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .status-bar {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .status-left,
    .status-right {
        justify-content: center;
    }

    .method-placeholder {
        padding: 40px 16px;
    }

    .connection-modal-content,
    .transfer-modal-content {
        width: 95%;
        padding: 16px;
    }
}




/* Connected Button State */
.quick-start-btn.connected {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    position: relative;
}

.quick-start-btn.connected::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.6);
}

/* Connection Method UI Styles */
.method-icon {
    font-size: 24px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.method-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 300;
}

.method-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Role Selection Styles */
.role-selection {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.role-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex: 1;
    max-width: 200px;
}

.role-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.role-btn.selected {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.role-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex: 1;
    max-width: 200px;
}

.role-button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Connection Step Styles */
.connection-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.connection-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.connection-step.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.connection-step.completed {
    background: var(--success-color);
    color: var(--bg-primary);
    border-color: var(--success-color);
}

.connection-step-icon {
    font-size: 14px;
}

/* Copy Button Styles */
.copy-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

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

.copy-btn.copied {
    background: var(--success-color);
}

/* API Key Method Styles */
.api-key-sender,
.api-key-receiver {
    padding: 20px;
}

.pin-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pin-value {
    font-size: 32px;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-primary);
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    letter-spacing: 4px;
    text-align: center;
    min-width: 200px;
}

.connection-data-section {
    margin-bottom: 24px;
}

.connection-data-section h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.connection-data-display {
    display: flex;
    gap: 8px;
}

.connection-data-text {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    resize: vertical;
    min-height: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.connection-data-input {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    resize: vertical;
    min-height: 100px;
}

.instructions {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.instructions ol {
    margin-left: 20px;
    margin-top: 8px;
}

.instructions li {
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.status-message {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

/* JWT Method Styles */
.jwt-sender,
.jwt-receiver {
    padding: 20px;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.token-value {
    font-size: 14px;
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-primary);
    background: var(--bg-card);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    flex: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.token-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
}

.expiry-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.response-token-display {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.response-token-display h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

/* Link Method Styles */
.link-sender,
.link-receiver {
    padding: 20px;
}

.link-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.link-value {
    font-size: 14px;
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-primary);
    background: var(--bg-card);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.qr-section {
    margin-bottom: 20px;
}

.qr-section h3,
.qr-section h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.link-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
}

.response-link-display {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.response-link-display h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.jwt-input {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    resize: vertical;
    min-height: 120px;
}

/* Enhanced copy button styles for different states */
.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: var(--success-color);
    color: var(--bg-primary);
}

.copy-btn.copied i:before {
    content: "\f00c"; /* check icon */
}

/* Input Field Styles */
.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.input-field.error {
    border-color: var(--error-color);
}

.input-field.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* QR Display Container Styles */
.qr-display-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
    box-shadow: var(--shadow-md);
}

.qr-display-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.qr-display-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 12px;
    font-weight: 300;
}

/* Progress Bar Enhancements */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Modal Close Button Styles */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .transfer-wizard {
        max-width: 100%;
    }

    .situation-selector {
        gap: 10px;
    }

    .situation-card {
        padding: 18px;
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .situation-methods {
        margin-left: 0;
    }

    .methods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .method-card {
        padding: 20px 16px;
    }
    
    .method-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .method-modal-header {
        padding: 16px 20px;
    }
    
    .method-modal-body {
        padding: 20px;
    }
    
    .modal-method-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
