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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0b0d;
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #27272a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    color: #71717a;
    font-size: 1.1rem;
}

.wallet-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.wallet-address {
    font-family: monospace;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #f4f4f5;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #f4f4f5;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d4d4d8;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
}

.input-field::placeholder {
    color: #52525b;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #71717a;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

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

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

#connectWallet {
    min-width: 150px;
}

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

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

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

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.status-message.success {
    background-color: #065f46;
    color: #6ee7b7;
    border: 1px solid #047857;
}

.status-message.error {
    background-color: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

.status-message.pending {
    background-color: #78350f;
    color: #fde047;
    border: 1px solid #92400e;
}

.tx-hash {
    font-family: monospace;
    font-size: 0.875rem;
    color: #71717a;
    word-break: break-all;
}

.tx-hash a {
    color: #3b82f6;
    text-decoration: none;
}

.tx-hash a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #52525b;
    font-size: 0.875rem;
}

.delegation-status {
    padding: 15px;
    background-color: #09090b;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.delegation-status p {
    margin-bottom: 10px;
}

.delegation-status code {
    background-color: #18181b;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
    color: #3b82f6;
}

.token-list {
    font-family: monospace;
    color: #a1a1aa;
    word-break: break-all;
}

.token-count {
    color: #71717a;
    font-style: italic;
}

.approval-message {
    margin-bottom: 20px;
    color: #a1a1aa;
    line-height: 1.6;
}

#approvalCard {
    background-color: #1e293b;
    border-color: #3b82f6;
}

#approvalCard h2 {
    color: #3b82f6;
}

@media (max-width: 640px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .wallet-info {
        flex-direction: column;
    }
}