/* My Assets Page Styles */

.main-content {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 80px;
}

.assets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    min-width: 1200px !important;
    width: 100% !important;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    min-width: 1200px !important;
    width: 100% !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.title-section {
    text-align: left;
}

.clear-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.clear-all-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

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

.clear-all-btn svg {
    width: 16px;
    height: 16px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Assets Overview Cards */
.assets-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    min-height: 140px;
    min-width: 1200px !important;
    width: 100% !important;
}

.overview-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 400px;
    min-width: 400px;
    flex-shrink: 0;
    height: 100px;
    min-height: 100px;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Responsive design for overview cards */
@media (max-width: 900px) {
    .assets-overview {
        flex-direction: column;
        align-items: center;
    }
    
    .overview-card {
        width: 100%;
        max-width: 400px;
        min-width: auto;
        height: 100px;
        min-height: 100px;
    }
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.tokens-icon {
    background: linear-gradient(135deg, #8b7cf6, #7c3aed);
}

.shares-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 8px;
}

.card-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2;
}

.card-value small {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.card-change {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    margin-top: auto;
    display: block;
}

.card-change.positive {
    color: #10b981;
}

.card-change.negative {
    color: #ef4444;
}

/* Token Icon */
.token-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Tabs */
.assets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    min-width: 1200px !important;
    width: 100% !important;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-btn.active {
    color: #8b7cf6;
    background: white;
    border-bottom: 2px solid #8b7cf6;
}

/* Tab Content */
.tab-content {
    display: none;
    min-width: 1200px !important;
    width: 100% !important;
}

.tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: #6b7280;
    min-width: 1200px !important;
    width: 100% !important;
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state a {
    color: #8b7cf6;
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Assets Table */
.assets-table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
}

.assets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.assets-table thead {
    background: #f9fafb;
}

.assets-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assets-table th:last-child {
    text-align: center;
}

.assets-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.assets-table tbody tr:hover {
    background: #f9fafb;
}

.assets-table tbody tr:last-child {
    border-bottom: none;
}

.assets-table td {
    padding: 16px;
    vertical-align: middle;
}

.assets-table td:last-child {
    text-align: center;
}

/* Model Name */
.model-name {
    font-weight: 600;
    color: #1f2937;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #8b7cf6;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Token/Share Quantity */
.quantity {
    font-weight: 600;
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

/* Estimated Uses */
.estimated-uses {
    color: #059669;
    font-weight: 600;
}

/* Price Display */
.price-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #8b7cf6;
    font-family: 'Courier New', monospace;
}

/* Market Change */
.market-change {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.market-change.positive {
    color: #10b981;
}

.market-change.negative {
    color: #ef4444;
}

.market-change svg {
    width: 12px;
    height: 12px;
}

/* Pool Ownership */
.pool-ownership {
    font-weight: 600;
    color: #f59e0b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.use-btn {
    background: #8b7cf6;
    color: white;
}

.use-btn:hover {
    background: #7c3aed;
}

.sell-btn {
    background: #ef4444;
    color: white;
}

.sell-btn:hover {
    background: #dc2626;
}

.trade-btn {
    background: #10b981;
    color: white;
}

.trade-btn:hover {
    background: #059669;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #8b7cf6;
}

.dropdown-item.active {
    background: #f3f4f6;
    color: #8b7cf6;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Table Width Consistency */
#tokensTable,
#sharesTable {
    width: 100%;
    min-width: 1200px !important;
}

#tokensTable .assets-table,
#sharesTable .assets-table {
    min-width: 1200px !important;
    width: 100% !important;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .assets-container {
        min-width: 1000px !important;
        padding: 20px;
    }
    
    .page-header,
    .assets-overview,
    .assets-tabs,
    .tab-content,
    .empty-state {
        min-width: 1000px !important;
    }
    
    #tokensTable,
    #sharesTable,
    #tokensTable .assets-table,
    #sharesTable .assets-table {
        min-width: 1000px !important;
    }
}

@media (max-width: 1200px) {
    .assets-container {
        min-width: 900px !important;
        padding: 20px;
    }
    
    .page-header,
    .assets-overview,
    .assets-tabs,
    .tab-content,
    .empty-state {
        min-width: 900px !important;
    }
    
    #tokensTable,
    #sharesTable,
    #tokensTable .assets-table,
    #sharesTable .assets-table {
        min-width: 900px !important;
    }
    
    .assets-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .assets-container {
        min-width: 800px !important;
        padding: 16px;
    }
    
    .page-header,
    .assets-overview,
    .assets-tabs,
    .tab-content,
    .empty-state {
        min-width: 800px !important;
    }
    
    #tokensTable,
    #sharesTable,
    #tokensTable .assets-table,
    #sharesTable .assets-table {
        min-width: 800px !important;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .overview-card {
        padding: 16px;
    }
    
    .card-value {
        font-size: 20px;
    }
    
    .assets-table-container {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Workflow 相关样式 */
.workflow-models {
    font-size: 12px;
    color: #6b7280;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.workflow-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.workflow-status.active {
    background: #d1fae5;
    color: #065f46;
}

.privacy-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;   /* 控制两个按钮之间的间距 */
}
