* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.results-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-section {
    position: relative;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.preview-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.preview-section pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.results pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.error {
    color: #e74c3c;
    padding: 1rem;
    background-color: #fde8e8;
    border-radius: 4px;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.moderation-results {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.overall-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.status-label {
    font-weight: bold;
    font-size: 1.1rem;
}

.status-good {
    color: #2ecc71;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #eafaf1;
    border-radius: 4px;
}

.status-bad {
    color: #e74c3c;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #fde8e8;
    border-radius: 4px;
}

.flags-container {
    margin-top: 1rem;
}

.flags-container h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 6px;
    transition: transform 0.2s;
}

.flag-item:hover {
    transform: translateY(-2px);
}

.flag-active {
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
}

.flag-inactive {
    background-color: #f1f8f1;
    border: 1px solid #c8e6c9;
    color: #2ecc71;
}

.flag-icon {
    font-size: 1.2rem;
}

.flag-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.preview-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.censored {
    filter: blur(20px);
    transition: filter 0.3s ease;
}

.censor-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.censor-toggle:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.censor-toggle .hide-text {
    display: none;
}

.censor-toggle.active .show-text {
    display: none;
}

.censor-toggle.active .hide-text {
    display: inline;
}

/* Ensure the preview content maintains position */
#previewContent {
    position: relative;
    transition: filter 0.3s ease;
}

#previewContent img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background-color: #e8f0fe;
    border: 1px solid #d1e3ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3498db;
    font-weight: 500;
}

.tab-button:hover {
    background-color: #d1e3ff;
    transform: translateY(-1px);
}

.tab-button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Wallet Summary */
.wallet-summary {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Transaction List */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tx-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    transition: transform 0.2s;
}

.tx-item:hover {
    transform: translateX(5px);
}

.tx-item.safe {
    border-left-color: #2ecc71;
}

.tx-item.flagged {
    border-left-color: #e74c3c;
}

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tx-id {
    font-family: monospace;
    font-size: 0.9rem;
}

.tx-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.tx-type {
    font-size: 0.8rem;
    color: #666;
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.tx-flags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #fff3f3;
    color: #e74c3c;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.error-tx {
    border-left-color: #95a5a6 !important;
    opacity: 0.7;
}

.status-error {
    color: #95a5a6;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.tx-error-message {
    color: #95a5a6;
    font-size: 0.9rem;
    font-style: italic;
}

.error-summary {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 6px;
    color: #856404;
}

.tx-id a {
    color: inherit;
    text-decoration: none;
}

.tx-id a:hover {
    text-decoration: underline;
}

/* Progress Wave Animation */
.progress-wave {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.wave {
    width: 8px;
    height: 32px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2);
    }
}

/* Transaction Item Improvements */
.tx-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tx-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.tx-link:hover {
    color: #3498db;
}

.tx-view {
    font-size: 0.8rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s;
}

.tx-link:hover .tx-view {
    opacity: 1;
}

.no-content-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Loading message styles */
.loading-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Risk assessment styles */
.risk-assessment {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.risk-assessment .risk-icon {
    font-size: 1.5rem;
}

.risk-assessment p {
    color: #856404;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

/* Update loading status styles */
#loadingStatus {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Info Box Styles */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.info-box p {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-box .info-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Demo Section Styles */
.demo-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.demo-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.demo-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-button {
    padding: 0.5rem 1rem;
    background-color: #e8f0fe;
    color: #3498db;
    border: 1px solid #d1e3ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.demo-button:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

.demo-wallet {
    background-color: #f0fdf4;
    color: #22c55e;
    border-color: #bbf7d0;
}

.demo-wallet:hover {
    background-color: #22c55e;
    color: white;
}

/* Add these new styles */
.image-container {
    position: relative;
    width: 100%;
    height: auto;
    display: inline-block;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.blur-overlay {
    position: absolute;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.blur-overlay.visible {
    opacity: 1;
}

/* Footer styles */
.footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #666;
    font-size: 1.1rem;
}

.footer-content a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #3498db;
}

.footer-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0.2);
    transition: filter 0.3s ease;
}

.footer-content a:hover .footer-logo {
    filter: brightness(0.4);
} 