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

body {
    font-family: 'Arial', sans-serif;
    background: url('tile-background.png') repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

/* App Container */
.app-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    width: 280px;
    padding: 30px 25px;
    border-radius: 20px 0 0 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.token-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #ecf0f1;
    text-align: center;
    font-weight: bold;
}

.contract-info {
    margin-bottom: 25px;
}

.contract-label {
    display: block;
    font-weight: bold;
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contract-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    text-align: center;
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    width: 100%;
}

.copy-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

.dex-link {
    text-align: center;
}

.dex-button {
    display: inline-block;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.dex-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: center;
    max-width: none;
    width: 100%;
}

/* Legacy styles for backward compatibility */
h1 {
    color: #333;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-style: italic;
}

.input-section {
    margin-bottom: 30px;
}

#nameInput {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

#nameInput:focus {
    border-color: #667eea;
}

#checkButton {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

#checkButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#checkButton:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 30px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.percentage-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.percentage {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.percentage-symbol {
    font-size: 2rem;
    margin-left: 5px;
    color: #fff;
}

.result-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: bold;
}

#tryAgainButton {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#tryAgainButton:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.loading-section {
    margin-top: 30px;
    text-align: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Token Info Section */
.token-info-section {
    margin-bottom: 40px;
}

.token-info-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ecf0f1;
    text-align: center;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-address .label {
    font-weight: bold;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.contract-address .address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

.dex-link {
    text-align: center;
}

.dex-button {
    display: inline-block;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.dex-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: center;
    max-width: none;
    width: 100%;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contract-label {
    font-weight: bold;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.contract-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-break: break-all;
}

.top-bar .copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    white-space: nowrap;
}

.top-bar .copy-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

.top-bar .dex-link {
    margin: 0;
}

.top-bar .dex-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    display: inline-block;
}

.top-bar .dex-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        border-radius: 20px;
        max-width: 500px;
    }

    .sidebar {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 25px;
        min-height: auto;
    }

    .main-content {
        padding: 30px 25px;
    }

    .token-info h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .contract-info {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .percentage {
        font-size: 3rem;
    }
}
