* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background: var(--bg-color, #f5f5f5);
    color: var(--text-color, #333);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --primary-color: #8774e1;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

#user-info {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--secondary-color);
}

.value {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--primary-color);
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.btn-primary {
    background: var(--primary-color, #8774e1);
    color: white;
}

.btn-primary:hover {
    background: #6a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(135, 116, 225, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color, #6c757d);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.status {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.status.loading {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.status.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.debug {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.debug h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

body.dark-theme pre {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    button {
        flex: 100%;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .label {
        font-size: 14px;
    }
}