* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.admin-container {
    min-height: 100vh;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 2em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 600;
    font-size: 1.1em;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: white;
    color: #667eea;
}

.admin-nav {
    background: white;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    background: none;
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: #667eea;
}

.nav-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.admin-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.05em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3em;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.95em;
    margin-top: 5px;
}

.add-token-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.add-token-section h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

.add-token-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.add-token-form input {
    flex: 1;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.add-token-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.help-text {
    color: #666;
    font-size: 0.95em;
}

.help-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}

.tokens-list-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tokens-list-section h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-item {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e8ebff;
    transition: all 0.3s ease;
}

.token-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.token-info {
    flex: 1;
}

.token-number {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.token-value {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.95em;
    word-break: break-all;
}

.token-actions {
    display: flex;
    gap: 10px;
}

.btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #ee5a6f;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .add-token-form {
        flex-direction: column;
    }

    .token-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .token-actions {
        width: 100%;
    }

    .btn-remove {
        width: 100%;
    }
}


/* Estilos para gerenciamento de usuários */
.add-user-form {
    display: grid;
    gap: 15px;
}

.add-user-form input,
.add-user-form select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.add-user-form input:focus,
.add-user-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-edit {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
